Tuesday, September 20, 2016

Intellisense in Visual Studio Package Manager Console

I think most of the people know about this but for information "TAB" key can be used to get intellisense help whenever needed.

Normally following commands have been used too often while using Package Manager Console.

Installing a Package:
Install-Package PackageName -Version versionNo

Uninstalling a Package:
Unintsall-Package PackageName -Force

-Force parameter can be used if you want to keep other dependent references for a package like in case of installing a newer version of a package.

Enabling Code First Migrations:
Enable-Migrations

This command can be used to enable code first migrations. Migrations folder gets created in the project which contains a Configuration.cs file having a Seed function and contains all the migration files whenever created.

Code First Migration Commands:
These commands can be found at this post: Code First Migration Commands

Let me know if need any further commands information.