2

I'm looking at using ADO.NET Data Services with silverlight. I've been looking at the Data Model and Data Service Implementations (ADO.NET Data Services/Silverlight) topic on msdn. In their example, they build a data model generated from a database, and query entities in the datamodel. In my case I want to use stored procedures, so I"ve created the data model and added stored procedures instead of tables & views, but now I'm not sure how to execute them. Does anyone have a sample?

Jeremy
  • 44,950
  • 68
  • 206
  • 332

1 Answers1

2

Just specify the stored procedures when you build your Entity Framework model. There's lots of documentation about this. You can also see a screencast.

As a point of clarification, I don't think there is anything Data-Services specific about your question. It's more of an Entity Framework question.

Craig Stuntz
  • 125,891
  • 12
  • 252
  • 273
  • Strictly speaking, ADO.NET isn't specific to Entity Framework... but in this case, I agree that the questions are about EF, not Astoria – Marc Gravell Dec 11 '08 at 21:09