Entity Framework 4.0 Resources – documentation links, best blog posts and more

32 篇文章 0 订阅

Some of the links are to early posts which came out pre VS2010 Beta 1. These should be treated with caution as a lot changed since they were written – but they often start with a good introduction to the topic and hence I felt they were worth including.

General Resources

Documentation

Overview blog posts/articles

Team Blogs

Community Bloggers

Screencasts and Podcasts

Slidedecks

Misc

Improvements to the Tools/Designer

Persistence Ignorance

You can use your own custom data classes together with your data model without making any modifications to the data classes themselves. This means that you can use "plain old" CLR objects (POCO), such as existing domain objects, with your Entity Framework application. For more information, see Persistence Ignorant Objects (Entity Framework).

And from the community:

Code-only

In NET 4.0 Beta 1 we introduced Model-First which allowed you to begin by creating an entity data model, then use it to create an empty database and classes. The subsequent CTP introduced Code Only.

And from the community:

Deferred Loading of Related Objects (aka Lazy Loading)

With deferred loading, also known as lazy loading, related objects are automatically loaded from the data source when you access a navigation property. For more information, see Shaping Query Results (Entity Framework).

Foreign Key associations

Foreign Keys are now surfaced.

Query Improvements

N-Tier

In Beta 1 we added an improved API for reporting changes: ChangeObjectState, ChangeRelationshipState, ApplyOriginalValues. In the CTP we added Self-tracking entities: serialize changes alongside current state in the object graph

Improving Testability of the Entity Framework

Unit testing EF v1 is tricky (Check out Julies post on this). Things get a lot better with EF 4.0 thanks to a combination of features:

  • POCO  - classes that do not depend on the EF can be easier to test
  • Data Access Guidance and the Repository pattern – work in progress  http://dataguidance.codeplex.com/ 
  • New IObjectSet<T>  interface makes it easier to fake an object
  • Template based code generation – control the code gen 
  • LINQ to Entities improvements make LINQ to Entities and LINQ to Objects closer – which can simplify testing
  • Sneak Preview: Entity Framework 4.0 Testability Improvements
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值