Microsoft.EntityFrameworkCore.Metadata Microsoft.EntityFrameworkCore.Metadata Namespace

Classes

RelationalAnnotations RelationalAnnotations
RelationalEntityTypeAnnotations RelationalEntityTypeAnnotations
RelationalForeignKeyAnnotations RelationalForeignKeyAnnotations
RelationalIndexAnnotations RelationalIndexAnnotations
RelationalKeyAnnotations RelationalKeyAnnotations
RelationalModelAnnotations RelationalModelAnnotations
RelationalPropertyAnnotations RelationalPropertyAnnotations
RelationalPropertyExtensions RelationalPropertyExtensions
RelationalSequenceBuilder RelationalSequenceBuilder
ScaffoldingMetadataExtensions ScaffoldingMetadataExtensions
Sequence Sequence
SimpleModelFactory SimpleModelFactory

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.

SqlServerAnnotationProvider SqlServerAnnotationProvider
SqlServerEntityTypeAnnotations SqlServerEntityTypeAnnotations
SqlServerIndexAnnotations SqlServerIndexAnnotations
SqlServerKeyAnnotations SqlServerKeyAnnotations
SqlServerModelAnnotations SqlServerModelAnnotations
SqlServerPropertyAnnotations SqlServerPropertyAnnotations

Interfaces

IEntityType IEntityType

Represents an entity type in an IModel.

IForeignKey IForeignKey

Represents a relationship where a foreign key property(s) in a dependent entity type reference a corresponding primary or alternate key in a principal entity type.

IIndex IIndex

Represents an index on a set of properties.

IKey IKey

Represents a primary or alternate key on an entity.

IModel IModel

Metadata about the shape of entities, the relationships between them, and how they map to the database. A model is typically created by overriding the OnConfiguring(DbContextOptionsBuilder) method on a derived context, or using ModelBuilder.

IMutableAnnotatable IMutableAnnotatable

A class that exposes annotations that can be modified. Annotations allow for arbitrary metadata to be stored on an object.

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

IMutableEntityType IMutableEntityType

Represents an entity in an IMutableModel.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IEntityType represents a ready-only view of the same metadata.

IMutableForeignKey IMutableForeignKey

Represents a relationship where a foreign key property(s) in a dependent entity type reference a corresponding primary or alternate key in a principal entity type.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IForeignKey represents a ready-only view of the same metadata.

IMutableIndex IMutableIndex

Represents an index on a set of properties.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IIndex represents a ready-only view of the same metadata.

IMutableKey IMutableKey

Represents a primary or alternate key on an entity.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IKey represents a ready-only view of the same metadata.

IMutableModel IMutableModel

Metadata about the shape of entities, the relationships between them, and how they map to the database. A model is typically created by overriding the OnConfiguring(DbContextOptionsBuilder) method on a derived context, or using ModelBuilder.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IModel represents a ready-only view of the same metadata.

IMutableNavigation IMutableNavigation

Represents a navigation property which can be used to navigate a relationship.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, INavigation represents a ready-only view of the same metadata.

IMutableProperty IMutableProperty

Represents a scalar property of an entity.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IProperty represents a ready-only view of the same metadata.

IMutablePropertyBase IMutablePropertyBase

Base type for navigation and scalar properties.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IMutablePropertyBase represents a ready-only view of the same metadata.

IMutableTypeBase IMutableTypeBase

Represents a type in an IMutableModel.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, ITypeBase represents a ready-only view of the same metadata.

INavigation INavigation

Represents a navigation property which can be used to navigate a relationship.

IProperty IProperty

Represents a scalar property of an entity.

IPropertyBase IPropertyBase

Base type for navigation and scalar properties.

IRelationalAnnotationProvider IRelationalAnnotationProvider
IRelationalEntityTypeAnnotations IRelationalEntityTypeAnnotations
IRelationalForeignKeyAnnotations IRelationalForeignKeyAnnotations
IRelationalIndexAnnotations IRelationalIndexAnnotations
IRelationalKeyAnnotations IRelationalKeyAnnotations
IRelationalModelAnnotations IRelationalModelAnnotations
IRelationalPropertyAnnotations IRelationalPropertyAnnotations
ISequence ISequence
ISqlServerEntityTypeAnnotations ISqlServerEntityTypeAnnotations
ISqlServerIndexAnnotations ISqlServerIndexAnnotations
ISqlServerKeyAnnotations ISqlServerKeyAnnotations
ISqlServerModelAnnotations ISqlServerModelAnnotations
ISqlServerPropertyAnnotations ISqlServerPropertyAnnotations
ITypeBase ITypeBase

Represents a type in an IModel.

Enums

ChangeTrackingStrategy ChangeTrackingStrategy

Indicates how the context detects changes to properties for an instance of the entity type.

DeleteBehavior DeleteBehavior

Indicates how a delete operation is applied to dependent entities in a relationship when the principal is deleted or the relationship is severed.

PropertyAccessMode PropertyAccessMode

Pass a value from this enum to UsePropertyAccessMode(PropertyAccessMode), UsePropertyAccessMode(PropertyAccessMode), or UsePropertyAccessMode(PropertyAccessMode) to change whether the property or backing field will be used when reading and writing to a property or field.

If no access mode is set, then the backing field for a property will be used if possible when constructing new instances of the entity. The property getter or setter will be used, if possible, for all other accesses of the property. Note that when it is not possible to use the field because it could not be found by convention and was not specified using HasField(String), then the property will be used instead. Likewise, when it is not possible to use the property getter or setter, for example when the property is read-only, then the field will be used instead.

SqlServerValueGenerationStrategy SqlServerValueGenerationStrategy
ValueGenerated ValueGenerated

Indicates when a value for a property will be generated by the database. Even when a property is set to be generated by the database, EF may still attempt to save a specific value (rather than having one generated by the database) when an entity is added and a value is assigned, or the property is marked as modified for an existing entity.