c# - How to Enable-Migrations In Code Camper Project -
i have been working way through building apps angular , breeze - part 1 on pluralsight john papa. shortly after getting basic pieces of application wanted make sure ef migrations work, cannot figure out best way start.
the solution has 3 separate projects:
- cc.dataaccess -- dbcontext in here.
- cc.model - poco classes
- cc.web - actual database is
what best way enable-migrations?
you should try following steps:
run enable-migrations command on dataaccess project run add-migration command connectionstringname parameter specified run update-database command
the following ef migrations command reference: http://coding.abel.nu/2012/03/ef-migrations-command-reference/#enable-migrations
Comments
Post a Comment