Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

New Post: separate a assembly for migrations

$
0
0

Is it possible to create migrations in the different project from where contexts are defined? I though that what -ProjectName and -StartUpProjectName are for. I tried running enable-migrations command with specifying those two parameters:

Enable-Migrations -ContextTypeName CarContext -MigrationsDirectory Cars -verbose -StartUpProjectName EFContexts -ProjectName EFMigrations

but i get the following exception: The context type 'CarContext' was not found in the assembly 'EFMigrations'.

So is it possible?


Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>