In ASP.NET mvc 5 i have EFsetup in a class library with my context and entity models etc,and when I run a migration its done through the startup file which is the MVC project, which is nice and keeps my entities seperate. (i used fairly long migrations commands
which is also fine.
I am trying to move over to .Net Core, and i want to have a simialr set, but I can't find any tutorials or clean examples which do this, I have found examples which use a work around by adding a different dummy application project, but I have seem things
which say this has been added in newer versions but I can't find anything.
If anyone has a link to how I can achieve this it would be appriciated.
Participant
1861 Points
2836 Posts
Moving from MVC to Core Help
Feb 21, 2019 03:42 AM|EnenDaveyBoy|LINK
Hi
In ASP.NET mvc 5 i have EFsetup in a class library with my context and entity models etc,and when I run a migration its done through the startup file which is the MVC project, which is nice and keeps my entities seperate. (i used fairly long migrations commands which is also fine.
I am trying to move over to .Net Core, and i want to have a simialr set, but I can't find any tutorials or clean examples which do this, I have found examples which use a work around by adding a different dummy application project, but I have seem things which say this has been added in newer versions but I can't find anything.
If anyone has a link to how I can achieve this it would be appriciated.
Participant
1861 Points
2836 Posts
Re: Moving from MVC to Core Help
Feb 21, 2019 04:35 AM|EnenDaveyBoy|LINK
got it working was missing an assembly reference