Managing Packages for a Solution
Now, let's make a database model.
- Right-click at Solution in file explorer > Add > Class Library Project > name it with DatabaseModels.
- Because this project will need access to database, let's add a reference to Entity Framework in it as well.
- Right-click on Solution > manage NuGet package for solutions.
- Click on EF > in right panet (project) > tick at DatabaseModels > install.
- Uninstall EF in JsonToDB project.
- Go to app.config > remove EF manually.
- Beware of having multiple project that dependent of each other and using different version of same library could be problematic.
- On "Manage NuGet Packages", there are "Consolidate" bar. It is really helpful to tells us how many different of packages that are used in projects of solution.