a question

a question

Old forum URL: forums.lhotka.net/forums/t/12033.aspx

ramona posted on Saturday, June 22, 2013


I used CSLA 4.3.12   in   VS 2012 .

when I generate the Entity framework , I have error which means

can not convert DBContext  Entity Framework to  ObjectContext  Entity Framework...

How to convert my Entity framework to ObjectContext   ,which CSLA can run it ???



JonnyBee replied on Sunday, June 23, 2013


The EF helper classes in CSLA 4.3.12 only provides support for the EF version included in .NET 4.0. 

The Model First DBContext was introduced later and is not supported out of the box.

For CSLA 4.5 there is 2 new assemblies to provide support for the latest versions of EF4 and EF5 (as these are different reference assemblies).

You can grab the code for the corresponding one of these and compile with references to CSLA 4.3.12 to get the helper class for DBContext.

ramona replied on Tuesday, June 25, 2013

thanks for your kind answer.

would you please tell me where is CSLA 4.5( for VS2012 ) , to download ?

Unfortunately I couldn't find it.


JonnyBee replied on Tuesday, June 25, 2013


Goto http://www.cslanet.com/ and select "Download ZIP File" to get the latest source code.

The link points to https://github.com/MarimerLLC/csla where you can also select the same "Zip" button to download source code. 

Copyright (c) Marimer LLC