ModelConfiguration ModelConfiguration Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class ModelConfiguration
Public Class ModelConfiguration
Inheritance
System.ObjectSystem.Object
ModelConfigurationModelConfiguration

Constructors

ModelConfiguration(ConfigurationFactory, IModel, CustomConfiguration, IRelationalAnnotationProvider, CSharpUtilities, ScaffoldingUtilities) ModelConfiguration(ConfigurationFactory, IModel, CustomConfiguration, IRelationalAnnotationProvider, CSharpUtilities, ScaffoldingUtilities)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public ModelConfiguration(ConfigurationFactory configurationFactory, IModel model, CustomConfiguration customConfiguration, IRelationalAnnotationProvider annotationProvider, CSharpUtilities cSharpUtilities, ScaffoldingUtilities scaffoldingUtilities)
Public Sub New(configurationFactory As ConfigurationFactory, model As IModel, customConfiguration As CustomConfiguration, annotationProvider As IRelationalAnnotationProvider, cSharpUtilities As CSharpUtilities, scaffoldingUtilities As ScaffoldingUtilities)
Parameters
model
IModel IModel

Fields

DbContextSuffix DbContextSuffix

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected const string DbContextSuffix = "Context"
Protected Const DbContextSuffix As String = "Context"

DefaultDbContextName DefaultDbContextName

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected const string DefaultDbContextName = "ModelContext"
Protected Const DefaultDbContextName As String = "ModelContext"

Properties

AnnotationProvider AnnotationProvider

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IRelationalAnnotationProvider AnnotationProvider { get; }
Public Overridable ReadOnly Property AnnotationProvider As IRelationalAnnotationProvider

CSharpUtilities CSharpUtilities

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual CSharpUtilities CSharpUtilities { get; }
Public Overridable ReadOnly Property CSharpUtilities As CSharpUtilities

CustomConfiguration CustomConfiguration

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual CustomConfiguration CustomConfiguration { get; set; }
Public Overridable Property CustomConfiguration As CustomConfiguration

EntityConfigurations EntityConfigurations

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual List<EntityConfiguration> EntityConfigurations { get; }
Public Overridable ReadOnly Property EntityConfigurations As List(Of EntityConfiguration)
Value
System.Collections.Generic.List<EntityConfiguration> System.Collections.Generic.List(Of EntityConfiguration)

Model Model

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IModel Model { get; }
Public Overridable ReadOnly Property Model As IModel
Value
IModel IModel

OnConfiguringConfigurations OnConfiguringConfigurations

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual List<OptionsBuilderConfiguration> OnConfiguringConfigurations { get; }
Public Overridable ReadOnly Property OnConfiguringConfigurations As List(Of OptionsBuilderConfiguration)
Value
System.Collections.Generic.List<OptionsBuilderConfiguration> System.Collections.Generic.List(Of OptionsBuilderConfiguration)

ScaffoldingUtilities ScaffoldingUtilities

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual ScaffoldingUtilities ScaffoldingUtilities { get; }
Public Overridable ReadOnly Property ScaffoldingUtilities As ScaffoldingUtilities

SequenceConfigurations SequenceConfigurations

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual List<SequenceConfiguration> SequenceConfigurations { get; }
Public Overridable ReadOnly Property SequenceConfigurations As List(Of SequenceConfiguration)
Value
System.Collections.Generic.List<SequenceConfiguration> System.Collections.Generic.List(Of SequenceConfiguration)

Methods

AddColumnNameAndTypeConfiguration(PropertyConfiguration) AddColumnNameAndTypeConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddColumnNameAndTypeConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddColumnNameAndTypeConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

AddComputedExpressionConfiguration(PropertyConfiguration) AddComputedExpressionConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddComputedExpressionConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddComputedExpressionConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

AddConnectionStringConfiguration() AddConnectionStringConfiguration()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddConnectionStringConfiguration()
Public Overridable Sub AddConnectionStringConfiguration

AddDefaultExpressionConfiguration(PropertyConfiguration) AddDefaultExpressionConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddDefaultExpressionConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddDefaultExpressionConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

AddDefaultValueConfiguration(PropertyConfiguration) AddDefaultValueConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddDefaultValueConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddDefaultValueConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

AddEntityConfiguration(EntityConfiguration) AddEntityConfiguration(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddEntityConfiguration(EntityConfiguration entityConfiguration)
Public Overridable Sub AddEntityConfiguration(entityConfiguration As EntityConfiguration)
Parameters

AddEntityConfigurations() AddEntityConfigurations()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddEntityConfigurations()
Public Overridable Sub AddEntityConfigurations

AddEntityPropertiesConfiguration(EntityConfiguration) AddEntityPropertiesConfiguration(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddEntityPropertiesConfiguration(EntityConfiguration entityConfiguration)
Public Overridable Sub AddEntityPropertiesConfiguration(entityConfiguration As EntityConfiguration)
Parameters

AddIndexConfiguration(EntityConfiguration, Index) AddIndexConfiguration(EntityConfiguration, Index)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddIndexConfiguration(EntityConfiguration entityConfiguration, Index index)
Public Overridable Sub AddIndexConfiguration(entityConfiguration As EntityConfiguration, index As Index)
Parameters
index
Index Index

AddIndexConfigurations(EntityConfiguration) AddIndexConfigurations(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddIndexConfigurations(EntityConfiguration entityConfiguration)
Public Overridable Sub AddIndexConfigurations(entityConfiguration As EntityConfiguration)
Parameters

AddKeyConfiguration(EntityConfiguration) AddKeyConfiguration(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddKeyConfiguration(EntityConfiguration entityConfiguration)
Public Overridable Sub AddKeyConfiguration(entityConfiguration As EntityConfiguration)
Parameters

AddMaxLengthConfiguration(PropertyConfiguration) AddMaxLengthConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddMaxLengthConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddMaxLengthConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

AddNavigationProperties(EntityConfiguration) AddNavigationProperties(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddNavigationProperties(EntityConfiguration entityConfiguration)
Public Overridable Sub AddNavigationProperties(entityConfiguration As EntityConfiguration)
Parameters

AddNavigationPropertyInitializers(EntityConfiguration) AddNavigationPropertyInitializers(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddNavigationPropertyInitializers(EntityConfiguration entityConfiguration)
Public Overridable Sub AddNavigationPropertyInitializers(entityConfiguration As EntityConfiguration)
Parameters

AddPropertyConfiguration(PropertyConfiguration) AddPropertyConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddPropertyConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddPropertyConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

AddRelationshipConfiguration(EntityConfiguration) AddRelationshipConfiguration(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddRelationshipConfiguration(EntityConfiguration entityConfiguration)
Public Overridable Sub AddRelationshipConfiguration(entityConfiguration As EntityConfiguration)
Parameters

AddRequiredConfiguration(PropertyConfiguration) AddRequiredConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddRequiredConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddRequiredConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

AddSequenceConfigurations() AddSequenceConfigurations()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddSequenceConfigurations()
Public Overridable Sub AddSequenceConfigurations

AddTableNameConfiguration(EntityConfiguration) AddTableNameConfiguration(EntityConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddTableNameConfiguration(EntityConfiguration entityConfiguration)
Public Overridable Sub AddTableNameConfiguration(entityConfiguration As EntityConfiguration)
Parameters

AddValueGeneratedConfiguration(PropertyConfiguration) AddValueGeneratedConfiguration(PropertyConfiguration)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddValueGeneratedConfiguration(PropertyConfiguration propertyConfiguration)
Public Overridable Sub AddValueGeneratedConfiguration(propertyConfiguration As PropertyConfiguration)
Parameters

ClassName() ClassName()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string ClassName()
Public Overridable Function ClassName As String
Returns
System.String System.String

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetEntityConfiguration(EntityType) GetEntityConfiguration(EntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual EntityConfiguration GetEntityConfiguration(EntityType entityType)
Public Overridable Function GetEntityConfiguration(entityType As EntityType) As EntityConfiguration
Parameters
entityType
EntityType EntityType
Returns

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Namespace() Namespace()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string Namespace()
Public Overridable Function Namespace As String
Returns
System.String System.String

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object