1. Enable-Migrations :Enables Code First Migrations in a project.
2. Add-Migration :
SYNOPSIS
Scaffolds a migration script for any pending model changes.
SYNTAX
Add-Migration [-Name]
[-ConfigurationTypeName
[-AppDomainBaseDirectory
Add-Migration [-Name]
[-ConfigurationTypeName
[-IgnoreChanges] [-AppDomainBaseDirectory
DESCRIPTION
Scaffolds a new migration script and adds it to the project.
RELATED LINKS
REMARKS
To see the examples, type: "get-help Add-Migration -examples".
For more information, type: "get-help Add-Migration -detailed".
For technical information, type: "get-help Add-Migration -full".
3. Update-Database Applies any pending migrations to the database.
4. Get-Migrations Displays the migrations that have been applied to the target database.
Comments
Post a Comment