IScaffoldingModelFactory.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(DatabaseModel, ModelReverseEngineerOptions) |
从 IModel 创建一个 DatabaseModel。 |
Create(String, TableSelectionSet) |
Create(DatabaseModel, ModelReverseEngineerOptions)
- Source:
- IScaffoldingModelFactory.cs
- Source:
- IScaffoldingModelFactory.cs
- Source:
- IScaffoldingModelFactory.cs
从 IModel 创建一个 DatabaseModel。
public Microsoft.EntityFrameworkCore.Metadata.IModel Create (Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel databaseModel, Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions options);
abstract member Create : Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel * Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function Create (databaseModel As DatabaseModel, options As ModelReverseEngineerOptions) As IModel
参数
- databaseModel
- DatabaseModel
数据库模型。
- options
- ModelReverseEngineerOptions
创建模型时要使用的选项。
返回
模型。
适用于
Create(String, TableSelectionSet)
public Microsoft.EntityFrameworkCore.Metadata.IModel Create (string connectionString, Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet tableSelectionSet);
abstract member Create : string * Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function Create (connectionString As String, tableSelectionSet As TableSelectionSet) As IModel
参数
- connectionString
- String
- tableSelectionSet
- TableSelectionSet