• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
记得承诺过
博客园    首页    新随笔    联系   管理    订阅  订阅

Entity Framework CodeFirst commands

TOPIC
about_EntityFramework

SHORT DESCRIPTION
Provides information about Entity Framework commands.

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

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

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

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

Update-Database Applies any pending migrations to the database.

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

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.

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

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.

posted @ 2014-04-26 20:58  记得承诺过  阅读(194)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3