Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

entity framework and asp.net mvc

i search a good tutorial to learn how to use entity framework in the right manner. in particular with asp.net mvc.

like image 911
tartafe Avatar asked May 01 '26 10:05

tartafe


1 Answers

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]
(2) [http://code.msdn.microsoft.com/adonetefx]

like image 139
RobS Avatar answered May 04 '26 00:05

RobS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!