EF code migration in reference dll coming through nuget
We have a situation. Our company has Framework build on .net which is used
by products developed using that Framework. Now this Framework is using EF
code first. We want to implement EF Code Migration though generated
migrations definitions because our entities are there in one of the
Framework project. So I have implemented it. But the situation is this
Framework we are distributing to other products as Nuget package
(internal).
Now the situation is lets say ProductA is consuming the package which has
xyz.dll which has migrations enabled in it. Now the developers of
"ProductA" wants to upgrade the database created by Framework EF code
first using that xyz.dll migrations, but this dll is only added as
referenced dll. So running command in package manager console like
Update-Database is not working because project is not in the current
solution and its in reference dll
How to solve this?
Thanks
No comments:
Post a Comment