Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DbContext code generation stategy fails with Entity framework 5 and VS 2012

I have a WPF project in .NET framework 4.5 (VS 2012) and downloaded Entity Framework 5 using NuGet package to the solution.All the documentation regarding Entity Framework 5 says that the Default Code Generation Strategy would be None(ie DbContext code generation). But in my case, while adding new ADO.Net Entity Data Model, the Code Generation Strategy is Default(ie the EF designer generates context class derived from ObjectContext and entity classes derived from EntityObject.).But I want to follow the DbConext code generation mechanism. I'm following Database First approach. Do I miss any settings? or is it that I need to install T4 Template separately?

Thanks.

like image 332
Dennis Jose Avatar asked Sep 03 '12 10:09

Dennis Jose


1 Answers

I have uninstalled VS 2012 RC and installed VS 2012 RTM and now everything works fine.

like image 182
Dennis Jose Avatar answered Sep 23 '22 13:09

Dennis Jose