c# - Type or namespace of 'ModelBuilder' cannot be found (are you missing a using directive or assembly reference?) -
In this, it introduces the 'Model Maker' type I use ASP.Net 4, MVC3, and EF 4.1 I'm getting, and I get a red squillline line under the 'model maker' type. Can not find this type, has that name changed? What context should I add to use it?
Using the system; Using System.Data.Entity; Using System.Data.Entity.ModelConfiguration; ... Protected Override Zero OnModelCreating (Modelbuilder Modalbuilder) {modelBuilder.Entity & lt; Movie & gt; (). Property (P => P. value). Publication (18, 2); }
The name has been changed from CTP5 to EF 4.1. This thing is now called DbModelbuilder .
Comments
Post a Comment