Sdílet prostřednictvím


ConfigurationSource Enum

Definition

Indicates whether an element in the IMutableModel was specified explicitly using the fluent API in OnModelCreating(ModelBuilder), through use of a .NET attribute (data annotation), or by convention via the EF Core model building conventions.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public enum ConfigurationSource
type ConfigurationSource = 
Public Enum ConfigurationSource
Inheritance
ConfigurationSource

Fields

Name Value Description
Explicit 0

Indicates that the model element was explicitly specified using the fluent API in OnModelCreating(ModelBuilder).

DataAnnotation 1

Indicates that the model element was specified through use of a .NET attribute (data annotation).

Convention 2

Indicates that the model element was specified by convention via the EF Core model building conventions.

Remarks

See Model building conventions for more information and examples.

Applies to