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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -