ef core add-migration separate assembly for data and domainmodel -


i have 3 projects in (vs2017 , ef core) , want run add-migration.

  • web - startup
  • core - domainmodel - here entitys
  • data - context , migrations here. , dependes on ef core

the domainmodel have entities , want have migrationfiles/ output folder in data project context file.

i want avoid having dependecies between domainmodel , entity framework. entityframeworkscore have dependecies data. suggestions how run add-migration setup migrationfiles in data instead of core/domainmodel?

add-migration -name initmigration -outputdir migrations -context mydbcontext -project business\core

according @joakimja solution run:

add-migration command without -context mydbcontext -project business\core arguments.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -