IScaffoldingModelFactory.Create Method

Definition

Overloads

Create(DatabaseModel, ModelReverseEngineerOptions)

Source:
IScaffoldingModelFactory.cs
Source:
IScaffoldingModelFactory.cs
Source:
IScaffoldingModelFactory.cs

Creates an IModel from a DatabaseModel.

C#
public Microsoft.EntityFrameworkCore.Metadata.IModel Create (Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseModel databaseModel, Microsoft.EntityFrameworkCore.Scaffolding.ModelReverseEngineerOptions options);

Parameters

databaseModel
DatabaseModel

The database model.

options
ModelReverseEngineerOptions

The options to use while creating the model.

Returns

The model.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

Create(String, TableSelectionSet)

C#
public Microsoft.EntityFrameworkCore.Metadata.IModel Create (string connectionString, Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet tableSelectionSet);

Parameters

connectionString
String
tableSelectionSet
TableSelectionSet

Returns

Applies to

Entity Framework Core 1.1 and Entity Framework Core 1.0
Product Versions
Entity Framework Core 1.0, 1.1