Managing Packages for a Solution

Now, let's make a database model.

  1. Right-click at Solution in file explorer > Add > Class Library Project > name it with DatabaseModels.
  2. Because this project will need access to database, let's add a reference to Entity Framework in it as well.
  3. Right-click on Solution > manage NuGet package for solutions.
  4. Click on EF > in right panet (project) > tick at DatabaseModels > install.
  5. Uninstall EF in JsonToDB project.
  6. Go to app.config > remove EF manually.
  7. Beware of having multiple project that dependent of each other and using different version of same library could be problematic.
  8. 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.

results matching ""

    No results matching ""