Microsoft.EntityFrameworkCore.Metadata Microsoft.EntityFrameworkCore.Metadata Namespace

Classes

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.

Interfaces

Represents an entity type in an IModel.

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.

Represents an index on a set of properties.

Represents a primary or alternate key on an entity.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

Represents a scalar property of an entity.

Base type for navigation and scalar properties.

Represents a type in an IModel.

Enums

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

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

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.

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.