开发者

Entity Framework without creating .edmx

Hi is Entity Framework 4 really need to generate .edmx o开发者_运维问答r 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜