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:

  1. cc.dataaccess -- dbcontext in here.
  2. cc.model - poco classes
  3. 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

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -