i search a good tutorial to learn how to use entity framework in the right manner. in particular with asp.net mvc.
Share
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.
I’d point you in the direction of this rather (1) lengthy article from the Entity Framework team.
They’ve done a pretty good job of explaining both the shortcomings of the initial version (v1.0) and also give plenty of ideas into what they are considering for the next version.
FWIW, I’ve done a tiny bit of ASP MVC and I’m not sure you’re going to like mixing the two.
For the (v1.0) version of the Entity Framework you really need to either do one of two things – work with ‘disconnected’ entity sets or retail the data context of an entity set. Either scenario has pitfalls as I’m sure you can appreciate. In short.. I don’t think there is a ‘right manner’ to pick up at this stage. At least not with ASP MVC.
To get started with the Entity Framework, your bet would be to take a look at the official ADO EF samples located (2) here. The easiest to pick up and start learning with, IMHO, are the WinForms based examples, but there are a few ASP.net examples which nmight be helpful.
(1) [http://blogs.msdn.com/efdesign/archive/2008/11/20/n-tier-improvements-for-entity-framework.aspx%5D
(2) [http://code.msdn.microsoft.com/adonetefx%5D