EF基礎命令

PM> get-help entityframework
TOPIC
about_EntityFrameworkapp

SHORT DESCRIPTION
Provides information about Entity Framework commands.ide

LONG DESCRIPTION
This topic describes the Entity Framework commands. Entity Framework is
Microsoft's recommended data access technology for new applications.orm

The following Entity Framework cmdlets are used with Entity Framework
Migrations.ip

Cmdlet Description
----------------- ---------------------------------------------------
Enable-Migrations Enables Code First Migrations in a project.get

Add-Migration Scaffolds a migration script for any pending model
changes.cmd

Update-Database Applies any pending migrations to the database.it

Get-Migrations Displays the migrations that have been applied to
the target database.io

The following Entity Framework cmdlets are used by NuGet packages that
install Entity Framework providers. These commands are not usually used as
part of normal application development.form

Cmdlet Description
------------------------------ ---------------------------------------
Add-EFProvider Adds or updates an Entity Framework
provider entry in the project config
file.sed

Add-EFDefaultConnectionFactory Adds or updates an Entity Framework
default connection factory in the
project config file.

Initialize-EFConfiguration Initializes the Entity Framework
section in the project config file and
sets defaults.

SEE ALSO Enable-Migrations Add-Migration Update-Database Get-Migrations

相關文章
相關標籤/搜索