Tooltip: Adding a package to your Visual Studio project with PMC

Package Management Console is an easy way to insert a package to your project, in my case I wanted to convert my simple console app to an entity framework app with a database connection.

Here's a simple walk through:

Go into Tools -> Library package manager -> Package manager console. The PMC opens up in the lower section of VS.

The following options are availablePMC1

Now type "Install-Package EntityFramework" and The EF package will be installed within your project.

Entity Framework has the following Cmdlets available.7

Now we just need to implement EF in our project

Using System.Data.Entity;

and add the references System.Data.Entity and Microsoft.Data.Entity.

Solution Explorer

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: