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

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.

Applies to