Last post Aug 23, 2012 03:44 AM by Servellia
Aug 23, 2012 03:44 AM|Servellia|LINK
I am trying to recreate the following sample application:
On trying to create the DataBase Context I get the following error:
The type 'System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089'."
As far as my logical thinking goes, the template is referencing entity framework 5 RC, so I do not understand why this 'demo' project wants me to use 4.0 instead or where I did go wrong. Up until this point I just created the models and the database initializer
Am I supposed to delete the existing .dll reference to System.Data.Entity and reference the dll from the .net 4.0 folder?
/edit: Under references there was an entry EntityFramework, but I had to manually reference the Assembly to get things work.