.net - Move model first to code first EF 5 -


how can move model first approach code first approach of entity framework development? need enable ef migrations.

try opening model first design , right clicking in white area. select add code generation item. works on ef 4.1 , later. select under code "ado.net dbcontext generator.

this create class files model if working in code first. create own context , (optional) initializer if working in code first. idea move class files class library, if regenerate model changes not lost.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -