I have Entity Data model using auto generate from database. Now, I want to Add another table in Entity Data Model . I Right Clicked the .edmx file added Update model from Database and selected my table . everything fine.i see my new Table in Layout Diagram but when i add new Controller with Scaffolding Options i don't find my new table model only i find only old table model . did i miss anything? Assist me.
and i have referred this
when i add new Controller with Scaffolding Options i don’t find my new table model only i find only old table model . did i miss anything?
Rebuild your project before add a new controller. You need to do this every time you update .edmx.
i have builded my solution then it doesn’t work and i closed everything again opened my solution nothing happend.Do i have to delete and generate again the Data Entity model
You do not need to delete it. You case is strange. Can you post your new model class. Make sure it has a primary key.
i don’t have any model class file . I have only the .edmx and below that i have some .tt file and all
Who create the table? Can you post the table definition only for the new table. It may on SQL definition. Need to make sure it has a primary key.
Have you tried running the custom tool right clicking on the .tt file?
Can you check inside the .tt file(expanding it) if the table class has been generated?
Do i have to delete and generate again the Data Entity model
If you really can’t find the problem, then try to do so. Just remove first the generated connection string for your model in your web.config to avoid replication when you generate your edmx model again.