简体   繁体   中英

Entity Framework without creating .edmx

Hi is Entity Framework 4 really need to generate .edmx or not ?

Thanks in Regards

No, you can use the Code First approach:

http://msdn.microsoft.com/en-us/data/gg685467

No Version 4.1 supports "Code First Development". Means you can define your Db by annotating your entities or using a Fluent API.

Here's a nice set of articles to help get you familar with Entity Framework Code First.

Just a few nice to knows for you also:

The latest version of Entity Framework 4.1 comes with Code First (use to be separate).

With the latest MVC3 tools update, the latest version of Entity Framework is included as part of the MVC3 template. Makes it a tad faster for getting going.

You can install the latest Entity Framework 4.1 with NuGet using install-package EntityFramework .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM