MigrationScaffolder.ScaffoldInitialCreate 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
为与之前运行的数据库初始值设定项对应的基于代码的初始迁移搭建基架。
命名空间: System.Data.Entity.Migrations.Design
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
Public Overridable Function ScaffoldInitialCreate As ScaffoldedMigration
用法
Dim instance As MigrationScaffolder
Dim returnValue As ScaffoldedMigration
returnValue = instance.ScaffoldInitialCreate()
public virtual ScaffoldedMigration ScaffoldInitialCreate()
public:
virtual ScaffoldedMigration^ ScaffoldInitialCreate()
abstract ScaffoldInitialCreate : unit -> ScaffoldedMigration
override ScaffoldInitialCreate : unit -> ScaffoldedMigration
public function ScaffoldInitialCreate() : ScaffoldedMigration
返回值
类型:System.Data.Entity.Migrations.Design.ScaffoldedMigration
已搭建基架的迁移。