Share via


IDatabaseModelFactory Interface

Definition

A service typically implemented by database providers to reverse engineer a database into a DatabaseModel.

public interface IDatabaseModelFactory
type IDatabaseModelFactory = interface
Public Interface IDatabaseModelFactory
Derived

Remarks

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

See Reverse engineering (scaffolding) an existing database, and EF Core design-time services for more information and examples.

Methods

Create(DbConnection, DatabaseModelFactoryOptions)

Connects to the database using the given connection and creates a DatabaseModel for the database.

Create(DbConnection, IEnumerable<String>, IEnumerable<String>)

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, IEnumerable<String>, IEnumerable<String>)

Connects to the database using the given connection string and creates a DatabaseModel for the database.

Create(String, TableSelectionSet)

Applies to