开发者

How different are EF 4.0 and EF 4.1?

开发者 https://www.devze.com 2023-04-11 01:27 出处:网络
I guess that EF4.1 is recent to EF4.0, but I didn\'t find any boo开发者_运维百科k on EF4.1, but 2 books on EF4.0.

I guess that EF4.1 is recent to EF4.0, but I didn't find any boo开发者_运维百科k on EF4.1, but 2 books on EF4.0.

can I still buy the book on EF4.0 expecting that I will get most of the concept??

Thanks for helping.


According to The ADO.NET Team blog, there are two main features:

  • The DbContext API is a simplified abstraction over ObjectContext and a number of other types that were included in previous releases of the ADO.NET Entity Framework. The DbContext API surface is optimized for common tasks and coding patterns. DbContext can be used with Database First, Model First and Code First development.
  • Code First is a new development pattern for the ADO.NET Entity Framework and provides an alternative to the existing Database First and Model First patterns. Code First is focused around defining your model using C#/VB.NET classes, these classes can then be mapped to an existing database or be used to generate a database schema. Additional configuration can be supplied using Data Annotations or via a fluent API.

EF 4.0 books are good unless you are using one of those 2 features, because you won't find them in there.

But you have plenty of resources online about those new features (especially Code First).

You even have official tutorials:

  • Using DbContext
  • Code First walkthrough
0

精彩评论

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

关注公众号