开发者

EF and design pattern

I’m working on a high volume transactional enterprise application(asp.net, windows app, oracle app as client) which has been designed using n-tire application and SOA architecture .The application was developed in the .NET platform utilizing C#,VB.NET, Framework 3.5 (I’m planning to upgrade to the , Framework 4.0), EF( EF in the data layer level) and WCF(WCF services in the service layer level) Since t开发者_如何转开发his is the first project using EF, and having read about using EF in n-tier and SOA applications, and the features available in the EF Feature, I have the following points:

  • Which design pattern should I use in EF( Simple Entities, Change Set, Self-Tracking Entities and DTOs) in the data layer level
  • In addition Which design pattern should I use in the other tier and layer to get the best practices of EF

Thanks


"In addition Which design pattern should I use in the other tier and layer to get the best practices of EF "

  • I would use the saperation of concerns using IoC at the root of my design patterns. for Data Layer Abstraction purpose I would definately go for Repository patterns. There are some interesting work which you see on the web for e.g. UnitOfWork for transactions etc.

Not sure about your knowledge in Repository pattern but here's a good start.

There is also a good project on the CodePlex called Project Silk which can give you a good heads up for both the above topics among others.

All the best

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜