.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
Post a Comment