IDatabaseModelFactory.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Create(DbConnection, DatabaseModelFactoryOptions) |
Connects to the database using the given connection and creates a DatabaseModel for the database. |
Create(String, DatabaseModelFactoryOptions) |
Connects to the database using the given connection string and creates a DatabaseModel for the database. |
Create(String, TableSelectionSet) | |
Create(DbConnection, IEnumerable<String>, IEnumerable<String>) |
Connects to the database using the given connection and creates a DatabaseModel for the database. |
Create(String, IEnumerable<String>, IEnumerable<String>) |
Connects to the database using the given connection string and creates a DatabaseModel for the database. |
Create(DbConnection, DatabaseModelFactoryOptions)
- Source:
- IDatabaseModelFactory.cs
- Source:
- IDatabaseModelFactory.cs
- Source:
- IDatabaseModelFactory.cs
Connects to the database using the given connection and creates a DatabaseModel for the database.
public 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 Function Create (connection As DbConnection, options As DatabaseModelFactoryOptions) As DatabaseModel
Parameters
- connection
- DbConnection
The connection to the database to reverse engineer.
- options
- DatabaseModelFactoryOptions
The options specifying which metadata to read.
Returns
The database model.
Applies to
Create(String, DatabaseModelFactoryOptions)
- Source:
- IDatabaseModelFactory.cs
- Source:
- IDatabaseModelFactory.cs
- Source:
- IDatabaseModelFactory.cs
Connects to the database using the given connection string and creates a DatabaseModel for the database.
public 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 Function Create (connectionString As String, options As DatabaseModelFactoryOptions) As DatabaseModel
Parameters
- connectionString
- String
The connection string for the database to reverse engineer.
- options
- DatabaseModelFactoryOptions
The options specifying which metadata to read.
Returns
The database model.
Applies to
Create(String, TableSelectionSet)
public Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel Create (string connectionString, Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet tableSelectionSet);
abstract member Create : string * Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet -> Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel
Public Function Create (connectionString As String, tableSelectionSet As TableSelectionSet) As DatabaseModel
Parameters
- connectionString
- String
- tableSelectionSet
- TableSelectionSet
Returns
Applies to
Create(DbConnection, IEnumerable<String>, IEnumerable<String>)
Connects to the database using the given connection and creates a DatabaseModel for the database.
public Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel Create (System.Data.Common.DbConnection connection, System.Collections.Generic.IEnumerable<string> tables, System.Collections.Generic.IEnumerable<string> schemas);
abstract member Create : System.Data.Common.DbConnection * seq<string> * seq<string> -> Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel
Public Function Create (connection As DbConnection, tables As IEnumerable(Of String), schemas As IEnumerable(Of String)) As DatabaseModel
Parameters
- connection
- DbConnection
The connection to the database to reverse engineer.
- tables
- IEnumerable<String>
The tables to include in the model, or an empty enumerable to include all.
- schemas
- IEnumerable<String>
The schema to include in the model, or an empty enumerable to include all.
Returns
The database model.
Applies to
Create(String, IEnumerable<String>, IEnumerable<String>)
Connects to the database using the given connection string and creates a DatabaseModel for the database.
public Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel Create (string connectionString, System.Collections.Generic.IEnumerable<string> tables, System.Collections.Generic.IEnumerable<string> schemas);
abstract member Create : string * seq<string> * seq<string> -> Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel
Public Function Create (connectionString As String, tables As IEnumerable(Of String), schemas As IEnumerable(Of String)) As DatabaseModel
Parameters
- connectionString
- String
The connection string for the database to reverse engineer.
- tables
- IEnumerable<String>
The tables to include in the model, or an empty enumerable to include all.
- schemas
- IEnumerable<String>
The schema to include in the model, or an empty enumerable to include all.
Returns
The database model.
Applies to
Entity Framework