Enum ConfigurationSource
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.dll
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
- Extension Methods
Fields
Convention = 2
Indicates that the model element was specified by convention via the EF Core model building conventions.
DataAnnotation = 1
Indicates that the model element was specified through use of a .NET attribute (data annotation).
Explicit = 0
Indicates that the model element was explicitly specified using the fluent API in OnModelCreating(ModelBuilder).
Remarks
See Model building conventions for more information and examples.