Table of Contents

Class SimpleModelFactory

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Creates instances of IMutableModel that have no conventions. This is useful when exhaustively configuring a model based on some existing metadata.

This is typically not used in application code since building a model by overriding OnModelCreating(ModelBuilder) or using ModelBuilder directly is much easier.

public class SimpleModelFactory
Inheritance
SimpleModelFactory
Inherited Members

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

SimpleModelFactory()

public SimpleModelFactory()

Methods

Create()

Creates an empty model with no conventions. All aspects of the model must be exhaustively configured.

public virtual IMutableModel Create()

Returns

IMutableModel

The newly created model.