Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How do I create a nuget package that contains entity objects and migration files

$
0
0

I've been searching for this on Google and I always get the wrong results. Here is my situation:

I want to create a nuget package that has entity framework objects, migration files, and a data layer. I have tables that the package needs and I want to make sure they are created. Basically, when a user downloads and installs the package, I want the package to be able to read the connection string and create the tables that are needed for the package to run. If the user has to run the Update-Database command, that's okay. It doesn't need to be a separate DB, in fact it shouldn't be. In other words, I want the package to use the existing database, adding the needed tables.

Is this possible? If so, how can I do this?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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