I’ve got a WCF Data Service setup and can access the table data through the browser url.
Have created a simple Stored Proc which takes in a parameter and then returns some columns from various tables via Joins – how can I consume this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using an Entity Framework model you could do this:
config.SetServiceOperationAccessRule("SomeStoredProcedure", ServiceOperationRights.AllRead);to the InitializeService method in SomeDataService.svc.cs.[WebGet] public IQueryable<SomeStoredProcedure_Result> SomeStoredProcedure() { return CurrentDataSource.SomeStoredProcedure(1).AsQueryable(); }The 1 above is a parameter to the stored procedure.
The stored procedure can now be consumed at: