Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity Framework 5 update model from database does not generate table class [closed]

I am using EF5 in VS2012, database first method.

When I add a new table X to the design surface, the table shows, then I save and compile without error. However, no class X is ever generated (under MyModel.tt in solution explorer).

If I right click MyModel.tt and choose "Run Custom Tool", then the classes are generated.

This behavior is different than what I experienced in EF4 and VS 2010, where the classes are automatically generated.

  1. Can I change this behavior so that the table classes are automatically generated?
  2. Why aren't the classes for tables generating automatically?
like image 607
cab0 Avatar asked Oct 04 '12 19:10

cab0


1 Answers

This is a bug in VS2012. More details here: http://entityframework.codeplex.com/workitem/453

like image 150
Pawel Avatar answered Sep 26 '22 06:09

Pawel