SimpleModelFactory SimpleModelFactory Class

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.

Syntax

Declaration

public class SimpleModelFactoryPublic Class SimpleModelFactory

Inheritance Hierarchy

  • System.Object
    System.Object
  • SimpleModelFactory
    SimpleModelFactory

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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

Methods

  • Create()
    Create()

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

    public virtual IMutableModel Create()Public Overridable Function Create As IMutableModel

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll