Entity Framework with Ntier
I just start studying Entity Framework, do i still have to create Business Logic and Poco models project on my Solution if i used EF as my DataAccess Class?
In my Apps Lately i used to create project into layers as DataAccess,BusinessLogic,PocoModel(entities) and Ui(windows app) using ADO.NET.
开发者_Go百科Do EF on vs 2008 as my dev tool is almost same as vs 2010?.
Thanks in Regards
VS 2008 x VS 2010 makes a big difference because only VS 2010 supports Entity Framework 4 and only Entity Framework 4 has native support for POCOs. If you want to use Entity Framework 1 (.NET 3.5 SP1 + VS 2008) and POCOs you must use EntityObjects
(heavy dependent on EF) and either convert them to POCOs manually or use the adapter. EntityObjects
in EFv1 must be defined in the same assembly as EDMX (entity model).
If you don't use POCOs you can place both data access and business logic into same assembly and reference it from UI. If you use POCOs you can stick with your architecture.
精彩评论