Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi frends,
when we are using the db first approach ,
do we have to all ways generate poco classes by using right click on add codegeneration item. when ever db schema changes.
please conform my doubt.
Posted

1 solution

Sure. Whenever you change your db scheme you sould update your classes.
Here is some refernce
http://msdn.microsoft.com/en-us/data/jj206878.aspx[^]
 
Share this answer
 
Comments
rajacsharp5 31-Dec-13 7:43am    
that means every time db schema chages, we have to delete existes contexts and poco clases.? and re generate?

thanks for revert.
Bohdan Stupak 31-Dec-13 15:20pm    
no, you can just classes 'add code generation menu' by right-clicking on your model and update existing entity classes without deleting any of existing contexts
rajacsharp5 6-Jan-14 11:18am    
Then we have 2 context available?
Bohdan Stupak 6-Jan-14 11:25am    
no. only one

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900