DatabaseModelFactory.Create 方法

定义

重载

Create(DbConnection, DatabaseModelFactoryOptions)

使用给定的连接连接到数据库,并为数据库创建 DatabaseModel

Create(String, DatabaseModelFactoryOptions)

使用给定的连接字符串连接到数据库,并为数据库创建 DatabaseModel

Create(DbConnection, DatabaseModelFactoryOptions)

Source:
DatabaseModelFactory.cs
Source:
DatabaseModelFactory.cs
Source:
DatabaseModelFactory.cs

使用给定的连接连接到数据库,并为数据库创建 DatabaseModel

public abstract Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel Create (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Scaffolding.DatabaseModelFactoryOptions options);
abstract member Create : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Scaffolding.DatabaseModelFactoryOptions -> Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel
Public MustOverride Function Create (connection As DbConnection, options As DatabaseModelFactoryOptions) As DatabaseModel

参数

connection
DbConnection

要进行反向工程的数据库连接。

options
DatabaseModelFactoryOptions

指定要读取的元数据的选项。

返回

数据库模型。

实现

适用于

Create(String, DatabaseModelFactoryOptions)

Source:
DatabaseModelFactory.cs
Source:
DatabaseModelFactory.cs
Source:
DatabaseModelFactory.cs

使用给定的连接字符串连接到数据库,并为数据库创建 DatabaseModel

public abstract Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel Create (string connectionString, Microsoft.EntityFrameworkCore.Scaffolding.DatabaseModelFactoryOptions options);
abstract member Create : string * Microsoft.EntityFrameworkCore.Scaffolding.DatabaseModelFactoryOptions -> Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel
Public MustOverride Function Create (connectionString As String, options As DatabaseModelFactoryOptions) As DatabaseModel

参数

connectionString
String

要进行反向工程的数据库的连接字符串。

options
DatabaseModelFactoryOptions

指定要读取的元数据的选项。

返回

数据库模型。

实现

适用于