visual studio 2012 - Database first generation Entity Framework 5 System.Data.Entity vs EntityFramework -
trying use visual studio 2012, entity framework 5.0 database first approach generate edmx.
when generate edmx database vs 2012 - says
successfully registered assembly 'system.data.entity, version=4.0.0.0;
web.config
file says
<add assembly="system.data.entity, version=4.0.0.0, culture=neutral.../>
i see
entityframework
,system.data.entity
both listed in references.entityframework
shows in packages folder ,system.data.entity
points .net 4.5 install folder. mean succesfully using ef 5.0?for existing project migrations - when migrate project vs 2010 .net 4.0 , set .net client profile 4.5
system.data.entity
assembly gets upgraded 1 in .net 4.5 install folder. not seeentityframework.dll
@ all. there changes need make in order existing project mgirate ef 5.0 , .net 4.5
am missing here?
the version of system.data.entity.dll assembly same on both .net framework 4 , .net framework 4.5. catch 1 version can installed on machine @ same time if target .net framework 4 in project run app on machine .net framework 4.5 run against .net framework 4.5 (and therefore ef5 version of system.data.entity.dll assembly). regards entityframework.dll - version 6 build on top of system.data.entity.dll (in ef6 code system.data.entity.dll , entityframework.dll merged , further evolved). if used entityframework.dll in vs2010 means had 1 of 4.x versions ef4. continue use ef5 version of system.data.entity.dll not able take advantage of new features introduced in ef5 (like enums, spatial etc.). since decided move .net framework 4.5/ef5 should update entityframework.dll 5.0.0.0. have install nuget extension (http://docs.nuget.org/docs/start-here/installing-nuget) if have not , install entityframework.dll using package manager console (http://www.nuget.org/packages/entityframework/5.0.0). should replace 4.x version have in project 5.0.
Comments
Post a Comment