How do I call a stored procedure exposed as an Entity Framework Function Import through ADO.NET Data Services (Astoria)?

StackOverflow https://stackoverflow.com/questions/278647

Question

I've created an Entity Data Model and imported several stored procedures as Function Imports. I'm exposing the EDM through ADO.NET Data Services (ANDS). Does ANDS automatically expose the functions through its REST API, or do I need to manually add operations to the service?

Was it helpful?

Solution

You will need to expose the sproc through a ServiceOperation. From what I can tell, all mapping to a FunctionImport does is make it usable within the service via CurrentDataSource. Think of it as only a link between the concept and store.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top