IConventionEntityType Interface

Definition

Represents an entity type in an IConventionModel.

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

public interface IConventionEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase, Microsoft.EntityFrameworkCore.Metadata.IEntityType
public interface IConventionEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
type IConventionEntityType = interface
    interface IEntityType
    interface ITypeBase
    interface IAnnotatable
    interface IConventionTypeBase
    interface IConventionAnnotatable
type IConventionEntityType = interface
    interface IReadOnlyEntityType
    interface IReadOnlyTypeBase
    interface IReadOnlyAnnotatable
    interface IConventionTypeBase
    interface IConventionAnnotatable
Public Interface IConventionEntityType
Implements IConventionTypeBase, IEntityType
Public Interface IConventionEntityType
Implements IConventionTypeBase, IReadOnlyEntityType
Implements

Remarks

See Model building conventions for more information and examples.

Properties

BaseType

Gets the base type of this entity type. Returns null if this is not a derived type in an inheritance hierarchy.

Builder

Gets the builder that can be used to configure this entity type.

ClrType

Gets the CLR class that is used to represent instances of this type. Returns null if the type does not have a corresponding CLR class (known as a shadow type).

(Inherited from IReadOnlyTypeBase)
ConstructorBinding

Gets the InstantiationBinding for the preferred constructor.

(Inherited from ITypeBase)
ContainingEntityType

Gets this entity type or the one on which the complex property chain is declared.

(Inherited from IReadOnlyTypeBase)
DefiningEntityType
Obsolete.

Gets the defining entity type.

DefiningNavigationName
Obsolete.

Gets the name of the defining navigation.

(Inherited from IReadOnlyEntityType)
DefiningQuery

Gets the LINQ query used as the default source for queries of this type.

(Inherited from IEntityType)
HasSharedClrType

Gets a value indicating whether this structural type is mapped to a Type that other structural types are also mapped to.

(Inherited from IReadOnlyTypeBase)
IsInModel

Indicates whether this object is in a model, i.e. hasn't been removed from one.

(Inherited from IConventionAnnotatable)
IsKeyless

Gets a value indicating whether the entity type has no keys. If true it will only be usable for queries.

IsPropertyBag

Gets a value indicating whether this structural type has an indexer which is able to contain arbitrary properties and a method that can be used to determine whether a given indexer property contains a value.

(Inherited from IReadOnlyTypeBase)
IsQueryType

Gets whether this entity type is a query type.

(Inherited from IEntityType)
Item[String]

Gets the value of the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
Model

Gets the model this entity belongs to.

Name

Gets the name of this type.

(Inherited from IReadOnlyTypeBase)
QueryFilter

Gets the LINQ expression filter automatically applied to queries for this entity type.

(Inherited from IEntityType)
ServiceOnlyConstructorBinding

Gets the InstantiationBinding for the preferred constructor when creating instances with only service properties initialized.

(Inherited from IEntityType)

Methods

AddAnnotation(String, Object, Boolean)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

Adds annotations to an object.

(Inherited from IConventionAnnotatable)
AddComplexIndexerProperty(String, Type, Type, String, Boolean, Boolean)

Adds a property backed by and indexer to this type.

(Inherited from IConventionTypeBase)
AddComplexProperty(MemberInfo, String, Boolean, Boolean)

Adds a property to this type.

(Inherited from IConventionTypeBase)
AddComplexProperty(String, Boolean, Boolean)

Adds a property to this type.

(Inherited from IConventionTypeBase)
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)

Adds a property to this type.

(Inherited from IConventionTypeBase)
AddComplexProperty(String, Type, Type, String, Boolean, Boolean)

Adds a property to this type.

(Inherited from IConventionTypeBase)
AddForeignKey(IConventionProperty, IConventionKey, IConventionEntityType, Boolean)

Adds a new relationship to this entity type.

AddForeignKey(IReadOnlyList<IConventionProperty>, IConventionKey, IConventionEntityType, Boolean, Boolean)

Adds a new relationship to this entity type.

AddIgnored(String, Boolean)

Marks the given member name as ignored, preventing conventions from adding a matching property or navigation to the type.

(Inherited from IConventionTypeBase)
AddIndex(IConventionProperty, Boolean)

Adds an index to this entity type.

AddIndex(IConventionProperty, String, Boolean)

Adds a named index to this entity type.

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

Adds an unnamed index to this entity type.

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

Adds a named index to this entity type.

AddIndexerProperty(String, Type, Boolean, Boolean)

Adds a property backed by and indexer to this entity type.

AddKey(IConventionProperty, Boolean)

Adds a new alternate key to this entity type.

AddKey(IReadOnlyList<IConventionProperty>, Boolean)

Adds a new alternate key to this entity type.

AddProperty(MemberInfo, Boolean)

Adds a property to this entity type.

AddProperty(String, Boolean)

Adds a property to this entity type.

AddProperty(String, Type, Boolean, Boolean)

Adds a property to this entity type.

AddProperty(String, Type, MemberInfo, Boolean, Boolean)

Adds a property to this entity type.

AddRuntimeAnnotation(String, Object)

Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from IAnnotatable)
AddServiceProperty(MemberInfo, Boolean)

Adds a service property to this entity type.

AddServiceProperty(MemberInfo, Type, Boolean)

Adds a service property to this entity type.

AddSkipNavigation(String, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

AddSkipNavigation(String, Type, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

AddTrigger(String, Boolean)

Creates a new trigger with the given name on entity type. Throws an exception if a trigger with the same name exists on the same entity type.

AnnotationsToDebugString(Int32)

Gets the debug string for all annotations declared on the object.

(Inherited from IReadOnlyAnnotatable)
DisplayName()

Gets the friendly display name for this structural type.

(Inherited from IReadOnlyTypeBase)
DisplayName(Boolean)

Gets the friendly display name for the given IReadOnlyTypeBase.

(Inherited from IReadOnlyTypeBase)
FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
FindClosestCommonParent(IEntityType)

Returns the closest entity type that is a parent of both given entity types. If one of the given entities is a parent of the other, that parent is returned. Returns null if the two entity types aren't in the same hierarchy.

(Inherited from IEntityType)
FindClosestCommonParent(IReadOnlyEntityType)

Returns the closest entity type that is a parent of both given entity types. If one of the given entities is a parent of the other, that parent is returned. Returns null if the two entity types aren't in the same hierarchy.

FindComplexProperty(MemberInfo)

Gets a complex property with the given member info. Returns null if no property is found.

(Inherited from IReadOnlyTypeBase)
FindComplexProperty(String)

Gets the complex property with the given name. Returns null if no property with the given name is defined.

(Inherited from IReadOnlyTypeBase)
FindDeclaredComplexProperty(String)

Finds a property declared on the type with the given name. Does not return properties defined on a base type.

(Inherited from IReadOnlyTypeBase)
FindDeclaredForeignKeys(IReadOnlyList<IReadOnlyProperty>)

Gets the foreign keys declared on this entity type using the given properties.

FindDeclaredNavigation(String)

Gets a navigation property on the given entity type. Does not return navigation properties defined on a base type. Returns null if no navigation property is found.

FindDeclaredProperty(String)

Finds a property declared on the type with the given name. Does not return properties defined on a base type.

FindDeclaredSkipNavigation(String)

Gets a skip navigation property on this entity type. Does not return skip navigation properties defined on a base type. Returns null if no skip navigation property is found.

FindDeclaredTrigger(String)

Finds a trigger with the given name.

FindDiscriminatorProperty()

Returns the property that will be used for storing a discriminator value.

FindForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)

Gets the foreign key for the given properties that points to a given primary or alternate key. Returns null if no foreign key is found.

FindForeignKey(IReadOnlyList<IReadOnlyProperty>, IReadOnlyKey, IReadOnlyEntityType)

Gets the foreign key for the given properties that points to a given primary or alternate key. Returns null if no foreign key is found.

FindForeignKey(IReadOnlyProperty, IReadOnlyKey, IReadOnlyEntityType)

Gets the foreign key for the given properties that points to a given primary or alternate key. Returns null if no foreign key is found.

FindForeignKeys(IReadOnlyList<IReadOnlyProperty>)

Gets the foreign keys defined on the given properties. Only foreign keys that are defined on exactly the specified set of properties are returned.

FindForeignKeys(IReadOnlyProperty)

Gets the foreign keys defined on the given property. Only foreign keys that are defined on exactly the specified property are returned. Composite foreign keys that include the specified property are not returned.

FindIgnoredConfigurationSource(String)

Indicates whether the given member name is ignored.

(Inherited from IConventionTypeBase)
FindIndex(IReadOnlyList<IProperty>)

Gets the unnamed index defined on the given properties. Returns null if no index is defined.

Named indexes will not be returned even if the list of properties matches.

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Gets the unnamed index defined on the given properties. Returns null if no index is defined.

FindIndex(IReadOnlyProperty)

Gets the unnamed index defined on the given property. Returns null if no such index is defined.

FindIndex(String)

Gets the index with the given name. Returns null if no such index exists.

FindIndexerPropertyInfo()

Returns the PropertyInfo for the indexer on the associated CLR type if one exists.

(Inherited from IReadOnlyTypeBase)
FindKey(IReadOnlyList<IProperty>)

Gets the primary or alternate key that is defined on the given properties. Returns null if no key is defined for the given properties.

FindKey(IReadOnlyList<IReadOnlyProperty>)

Gets the primary or alternate key that is defined on the given properties. Returns null if no key is defined for the given properties.

FindKey(IReadOnlyProperty)

Gets the primary or alternate key that is defined on the given property. Returns null if no key is defined for the given property.

FindMember(String)

Gets the member with the given name. Returns null if no member with the given name is defined.

(Inherited from IReadOnlyTypeBase)
FindMembersInHierarchy(String)

Gets the members with the given name on this type, base types or derived types.

(Inherited from IReadOnlyTypeBase)
FindNavigation(MemberInfo)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindNavigation(String)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindOwnership()

Returns the relationship to the owner if this is an owned type or null otherwise.

FindPrimaryKey()

Gets primary key for this entity type. Returns null if no primary key is defined.

FindProperties(IReadOnlyList<String>)

Finds matching properties on the given entity type. Returns null if any property is not found.

FindProperty(MemberInfo)

Gets a property on the given entity type. Returns null if no property is found.

FindProperty(String)

Gets the property with a given name. Returns null if no property with the given name is defined.

FindRuntimeAnnotation(String)

Gets the runtime annotation with the given name, returning null if it does not exist.

(Inherited from IAnnotatable)
FindRuntimeAnnotationValue(String)

Gets the value of the runtime annotation with the given name, returning null if it does not exist.

(Inherited from IAnnotatable)
FindServiceProperty(String)

Gets the service property with a given name. Returns null if no property with the given name is defined.

FindSkipNavigation(MemberInfo)

Gets a skip navigation property on this entity type. Returns null if no navigation property is found.

FindSkipNavigation(String)

Gets a skip navigation property on this entity type. Returns null if no skip navigation property is found.

GetAllBaseTypes()

Gets all types in the model from which this entity type derives, starting with the root.

GetAllBaseTypesAscending()

Gets all types in the model from which this entity type derives, starting with the closest one.

GetAllBaseTypesInclusive()

Returns all base types of this entity type, including the type itself, top to bottom.

GetAllBaseTypesInclusiveAscending()

Returns all base types of this entity type, including the type itself, bottom to top.

GetAnnotation(String)

Gets the annotation with the given name, throwing if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from IReadOnlyAnnotatable)
GetBaseTypeConfigurationSource()

Returns the configuration source for the BaseType property.

GetChangeTrackingStrategy()

Gets the change tracking strategy being used for this type. This strategy indicates how the context detects changes to properties for an instance of the type.

(Inherited from IReadOnlyTypeBase)
GetChangeTrackingStrategyConfigurationSource()

Returns the configuration source for GetChangeTrackingStrategy().

GetComplexProperties()

Gets the complex properties defined on this type and base types.

(Inherited from IReadOnlyTypeBase)
GetConcreteDerivedTypesInclusive()

Returns all the derived types of this entity type, including the type itself, which are not abstract.

(Inherited from IReadOnlyEntityType)
GetConfigurationSource()

Gets the configuration source for this entity type.

GetDeclaredComplexProperties()

Gets the complex properties declared on this type.

(Inherited from IReadOnlyTypeBase)
GetDeclaredForeignKeys()

Gets all foreign keys declared on this entity type.

GetDeclaredIndexes()

Gets all indexes declared on this entity type.

GetDeclaredKeys()

Gets all keys declared on the given IReadOnlyEntityType.

GetDeclaredMembers()

Gets the members declared on this type.

(Inherited from IReadOnlyTypeBase)
GetDeclaredNavigations()

Gets all navigation properties declared on this entity type.

GetDeclaredProperties()

Gets all non-navigation properties declared on this entity type.

GetDeclaredReferencingForeignKeys()

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type is the principal).

GetDeclaredServiceProperties()

Gets all service properties declared on this entity type.

GetDeclaredSkipNavigations()

Gets the skip navigation properties declared on this entity type.

GetDeclaredTriggers()

Returns the declared triggers on the entity type.

GetDefaultDiscriminatorValue()

Returns the default discriminator value that would be used for this entity type.

(Inherited from IReadOnlyEntityType)
GetDerivedComplexProperties()

Gets the complex properties declared on the types derived from this type.

(Inherited from IReadOnlyTypeBase)
GetDerivedForeignKeys()

Gets all foreign keys declared on the types derived from this entity type.

GetDerivedIndexes()

Gets all indexes declared on the types derived from this entity type.

GetDerivedNavigations()

Gets all navigation properties declared on the types derived from this entity type.

GetDerivedProperties()

Gets all non-navigation properties declared on the types derived from this entity type.

GetDerivedServiceProperties()

Gets all service properties declared on the types derived from this entity type.

GetDerivedSkipNavigations()

Gets all skip navigation properties declared on the types derived from this entity type.

GetDerivedTypes()

Gets all types in the model that derive from this entity type.

GetDerivedTypesInclusive()

Returns all derived types of this entity type, including the type itself.

GetDirectlyDerivedTypes()

Gets all types in the model that directly derive from this entity type.

GetDiscriminatorMappingCompleteConfigurationSource()

Gets the ConfigurationSource for the discriminator value completeness.

GetDiscriminatorPropertyConfigurationSource()

Gets the ConfigurationSource for the discriminator property.

GetDiscriminatorPropertyName()

Returns the name of the property that will be used for storing a discriminator value.

(Inherited from IReadOnlyEntityType)
GetDiscriminatorValue()

Returns the discriminator value for this entity type.

(Inherited from IReadOnlyEntityType)
GetDiscriminatorValueConfigurationSource()

Gets the ConfigurationSource for the discriminator value.

GetFlattenedComplexProperties()

Returns all properties that implement IComplexProperty, including those on complex types.

(Inherited from ITypeBase)
GetFlattenedDeclaredProperties()

Returns all declared properties that implement IProperty, including those on complex types.

(Inherited from ITypeBase)
GetFlattenedProperties()

Returns all properties that implement IProperty, including those on complex types.

(Inherited from ITypeBase)
GetForeignKeyProperties()

Returns the properties contained in foreign keys.

(Inherited from IEntityType)
GetForeignKeys()

Gets the foreign keys defined on this entity type.

GetIgnoredMembers()

Gets all the ignored members.

(Inherited from IConventionTypeBase)
GetIndexes()

Gets the indexes defined on this entity type.

GetIsDiscriminatorMappingComplete()

Returns the value indicating whether the discriminator mapping is complete for this entity type.

(Inherited from IReadOnlyEntityType)
GetIsKeylessConfigurationSource()

Returns the configuration source for the IsKeyless property.

GetKeys()

Gets the primary and alternate keys for this entity type.

GetMembers()

Gets the members defined on this type and base types.

(Inherited from IReadOnlyTypeBase)
GetNavigationAccessMode()

Gets the PropertyAccessMode being used for navigations of this type.

(Inherited from IReadOnlyTypeBase)
GetNavigationAccessModeConfigurationSource()

Returns the configuration source for GetNavigationAccessMode().

GetNavigations()

Gets all navigation properties on the given entity type.

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

Gets the value of the runtime annotation with the given name, adding it if one does not exist.

(Inherited from IAnnotatable)
GetOrCreateEmptyMaterializer(IEntityMaterializerSource)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from IReadOnlyEntityType)
GetOrCreateMaterializer(IEntityMaterializerSource)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from IReadOnlyEntityType)
GetPrimaryKeyConfigurationSource()

Returns the configuration source for the primary key.

GetProperties()

Gets the properties defined on this entity type.

GetProperty(String)

Gets a property with the given name.

GetPropertyAccessMode()

Gets the PropertyAccessMode being used for properties and navigations of this type.

(Inherited from IReadOnlyTypeBase)
GetPropertyAccessModeConfigurationSource()

Returns the configuration source for GetPropertyAccessMode().

(Inherited from IConventionTypeBase)
GetQueryFilter()

Gets the LINQ expression filter automatically applied to queries for this entity type.

(Inherited from IReadOnlyEntityType)
GetQueryFilterConfigurationSource()

Returns the configuration source for GetQueryFilter().

GetReferencingForeignKeys()

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type or a type it's derived from is the principal).

GetRootType()

Gets the root base type for this entity type.

GetRuntimeAnnotations()

Gets all the runtime annotations on the current object.

(Inherited from IAnnotatable)
GetSeedData(Boolean)

Gets the data stored in the model for the given entity type.

(Inherited from IReadOnlyEntityType)
GetServiceProperties()

Gets all the service properties defined on this entity type.

GetSkipNavigations()

Gets all skip navigation properties on this entity type.

GetSnapshottableMembers()

Returns all members that may need a snapshot value when change tracking.

(Inherited from ITypeBase)
GetValueGeneratingProperties()

Returns the properties that need a value to be generated when the entity entry transitions to the Added state.

(Inherited from IEntityType)
HasBaseType(IConventionEntityType, Boolean)
Obsolete.

Sets the base type of this entity type. Returns null if this is not a derived type in an inheritance hierarchy.

HasDefiningNavigation()
Obsolete.

Gets a value indicating whether this entity type has a defining navigation.

(Inherited from IReadOnlyEntityType)
HasNoKey(Nullable<Boolean>, Boolean)
Obsolete.

Sets a value indicating whether the entity type has no keys. When set to true it will only be usable for queries. null to reset to default.

HasServiceProperties()

Checks whether or not this entity type has any IServiceProperty defined.

(Inherited from IReadOnlyEntityType)
IsAbstract()

Gets a value indicating whether this structural type represents an abstract type.

(Inherited from IReadOnlyTypeBase)
IsAssignableFrom(IReadOnlyEntityType)

Determines if this entity type derives from (or is the same as) a given entity type.

(Inherited from IReadOnlyEntityType)
IsAssignableFrom(IReadOnlyTypeBase)

Determines if this type derives from (or is the same as) a given type.

(Inherited from IReadOnlyTypeBase)
IsIgnored(String)

Indicates whether the given member name is ignored.

(Inherited from IConventionTypeBase)
IsInOwnershipPath(IReadOnlyEntityType)

Gets a value indicating whether given entity type is in ownership path for this entity type.

(Inherited from IReadOnlyEntityType)
IsOwned()

Gets a value indicating whether this entity type is owned by another entity type.

(Inherited from IReadOnlyEntityType)
IsStrictlyDerivedFrom(IReadOnlyEntityType)

Determines if this entity type derives from (but is not the same as) a given entity type.

(Inherited from IReadOnlyEntityType)
IsStrictlyDerivedFrom(IReadOnlyTypeBase)

Determines if this type derives from (but is not the same as) a given type.

(Inherited from IReadOnlyTypeBase)
LeastDerivedType(IEntityType)

Gets the least derived type between the specified two.

(Inherited from IEntityType)
LeastDerivedType(IReadOnlyEntityType)

Gets the least derived type between the specified two.

RemoveAnnotation(String)

Removes the annotation with the given name from this object.

(Inherited from IConventionAnnotatable)
RemoveComplexProperty(IConventionComplexProperty)

Removes a property from this type.

(Inherited from IConventionTypeBase)
RemoveComplexProperty(String)

Removes a property from this type.

(Inherited from IConventionTypeBase)
RemoveDiscriminatorValue()

Removes the discriminator value for this entity type.

RemoveForeignKey(IConventionForeignKey)

Removes a foreign key from this entity type.

RemoveForeignKey(IReadOnlyForeignKey)

Removes a foreign key from this entity type.

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

Removes a foreign key from this entity type.

RemoveIgnored(String)

Removes the ignored member name.

(Inherited from IConventionTypeBase)
RemoveIndex(IConventionIndex)

Removes an index from this entity type.

RemoveIndex(IReadOnlyIndex)

Removes an index from this entity type.

RemoveIndex(IReadOnlyList<IReadOnlyProperty>)

Removes an index from this entity type.

RemoveKey(IConventionKey)

Removes a primary or alternate key from this entity type.

RemoveKey(IReadOnlyKey)

Removes a primary or alternate key from this entity type.

RemoveKey(IReadOnlyList<IReadOnlyProperty>)

Removes a primary or alternate key from this entity type.

RemoveProperty(IConventionProperty)

Removes a property from this entity type.

RemoveProperty(IReadOnlyProperty)

Removes a property from this entity type.

RemoveProperty(String)

Removes a property from this entity type.

RemoveRuntimeAnnotation(String)

Removes the given runtime annotation from this object.

(Inherited from IAnnotatable)
RemoveServiceProperty(IReadOnlyServiceProperty)

Removes a service property from this entity type.

RemoveServiceProperty(String)

Removes a service property from this entity type.

RemoveSkipNavigation(IConventionSkipNavigation)

Removes a skip navigation property from this entity type.

RemoveSkipNavigation(IReadOnlySkipNavigation)

Removes a skip navigation property from this entity type.

RemoveTrigger(String)

Removes the trigger with the given name.

SetAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists.

(Inherited from IConventionAnnotatable)
SetBaseType(IConventionEntityType, Boolean)

Sets the base type of this entity type. Returns null if this is not a derived type in an inheritance hierarchy.

SetChangeTrackingStrategy(Nullable<ChangeTrackingStrategy>, Boolean)

Sets the change tracking strategy to use for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type.

SetDiscriminatorMappingComplete(Nullable<Boolean>, Boolean)

Sets the value indicating whether the discriminator mapping is complete.

SetDiscriminatorProperty(IReadOnlyProperty, Boolean)

Sets the IReadOnlyProperty that will be used for storing a discriminator value.

SetDiscriminatorValue(Object, Boolean)

Sets the discriminator value for this entity type.

SetIsKeyless(Nullable<Boolean>, Boolean)

Sets a value indicating whether the entity type has no keys. When set to true it will only be usable for queries. null to reset to default.

SetNavigationAccessMode(Nullable<PropertyAccessMode>, Boolean)

Sets the PropertyAccessMode to use for navigations of this entity type.

SetOrRemoveAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

(Inherited from IConventionAnnotatable)
SetPrimaryKey(IConventionProperty, Boolean)

Sets the primary key for this entity type.

SetPrimaryKey(IReadOnlyList<IConventionProperty>, Boolean)

Sets the primary key for this entity type.

SetPropertyAccessMode(Nullable<PropertyAccessMode>, Boolean)

Sets the PropertyAccessMode to use for properties of this type.

(Inherited from IConventionTypeBase)
SetQueryFilter(LambdaExpression, Boolean)

Sets the LINQ expression filter automatically applied to queries for this entity type.

SetRuntimeAnnotation(String, Object)

Sets the runtime annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists.

(Inherited from IAnnotatable)
ShortName()

Gets a short name for the given IReadOnlyTypeBase that can be used in other identifiers.

(Inherited from IReadOnlyTypeBase)
ToDebugString(MetadataDebugStringOptions, Int32)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

(Inherited from IReadOnlyEntityType)

Explicit Interface Implementations

IReadOnlyTypeBase.IsAssignableFrom(IReadOnlyTypeBase)

Determines if this type derives from (or is the same as) a given type.

(Inherited from IReadOnlyEntityType)

Extension Methods

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

Adds annotations to an object.

GetAnnotation(IConventionAnnotatable, String)

Gets the annotation with the given name, throwing if it does not exist.

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

AddForeignKey(IConventionEntityType, IConventionProperty, IConventionKey, IConventionEntityType, Boolean)

Adds a new relationship to this entity type.

AddIndex(IConventionEntityType, IConventionProperty, Boolean)

Adds an index to this entity type.

AddIndexerProperty(IConventionEntityType, String, Type, Boolean, Boolean)

Adds a property backed by and indexer to this entity type.

AddKey(IConventionEntityType, IConventionProperty, Boolean)

Adds a new alternate key to this entity type.

AddProperty(IConventionEntityType, MemberInfo, Boolean)

Adds a property to this entity type.

AddProperty(IConventionEntityType, String, Boolean)

Adds a property to this entity type.

AddProperty(IConventionEntityType, String, Type, Boolean, Boolean)

Adds a property to this entity type.

FindDeclaredForeignKeys(IConventionEntityType, IReadOnlyList<IProperty>)

Gets the foreign keys declared on the given IConventionEntityType using the given properties.

FindDeclaredNavigation(IConventionEntityType, String)

Gets a navigation property on the given entity type. Does not return navigation properties defined on a base type. Returns null if no navigation property is found.

FindDeclaredProperty(IConventionEntityType, String)

Finds a property declared on the type with the given name. Does not return properties defined on a base type.

FindDefiningNavigation(IConventionEntityType)
Obsolete.

Returns the defining navigation if one exists or null otherwise.

FindForeignKey(IConventionEntityType, IProperty, IKey, IEntityType)

Gets the foreign key for the given properties that points to a given primary or alternate key. Returns null if no foreign key is found.

FindForeignKeys(IConventionEntityType, IProperty)

Gets the foreign keys defined on the given property. Only foreign keys that are defined on exactly the specified property are returned. Composite foreign keys that include the specified property are not returned.

FindForeignKeys(IConventionEntityType, IReadOnlyList<IProperty>)

Gets the foreign keys defined on the given properties. Only foreign keys that are defined on exactly the specified set of properties are returned.

FindIndex(IConventionEntityType, IProperty)

Gets the unnamed index defined on the given property. Returns null if no such index is defined.

Named indexes will not be returned even if the list of properties matches.

FindKey(IConventionEntityType, IProperty)

Gets the primary or alternate key that is defined on the given property. Returns null if no key is defined for the given property.

FindNavigation(IConventionEntityType, MemberInfo)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindNavigation(IConventionEntityType, String)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindOwnership(IConventionEntityType)

Returns the relationship to the owner if this is an owned type or null otherwise.

FindProperties(IConventionEntityType, IReadOnlyList<String>)

Finds matching properties on the given entity type. Returns null if any property is not found.

This API only finds scalar properties and does not find navigation properties.

FindProperty(IConventionEntityType, MemberInfo)

Gets a property on the given entity type. Returns null if no property is found.

This API only finds scalar properties and does not find navigation properties. Use FindNavigation(IConventionEntityType, MemberInfo) to find a navigation property.

GetAllBaseTypes(IConventionEntityType)

Gets all types in the model from which a given entity type derives, starting with the root.

GetAllBaseTypesAscending(IConventionEntityType)

Gets all types in the model from which a given entity type derives, starting with the closest one.

GetAllBaseTypesInclusive(IConventionEntityType)

Returns all base types of the given IEntityType, including the type itself, top to bottom.

GetAllBaseTypesInclusiveAscending(IConventionEntityType)

Returns all base types of the given IEntityType, including the type itself, bottom to top.

GetChangeTrackingStrategyConfigurationSource(IConventionEntityType)

Returns the configuration source for GetChangeTrackingStrategy(IEntityType).

GetDeclaredForeignKeys(IConventionEntityType)

Gets all foreign keys declared on the given IConventionEntityType.

This method does not return foreign keys declared on base types. It is useful when iterating over all entity types to avoid processing the same foreign key more than once. Use GetForeignKeys() to also return foreign keys declared on base types.

GetDeclaredIndexes(IConventionEntityType)

Gets all indexes declared on the given IConventionEntityType.

This method does not return indexes declared on base types. It is useful when iterating over all entity types to avoid processing the same index more than once. Use GetForeignKeys() to also return indexes declared on base types.

GetDeclaredKeys(IConventionEntityType)

Gets all keys declared on the given IEntityType.

This method does not return keys declared on base types. It is useful when iterating over all entity types to avoid processing the same key more than once. Use GetKeys() to also return keys declared on base types.

GetDeclaredNavigations(IConventionEntityType)

Gets all navigation properties declared on the given IConventionEntityType.

This method does not return navigation properties declared on base types. It is useful when iterating over all entity types to avoid processing the same navigation property more than once. Use GetNavigations(IConventionEntityType) to also return navigation properties declared on base types.

GetDeclaredProperties(IConventionEntityType)

Gets all non-navigation properties declared on the given IConventionEntityType.

This method does not return properties declared on base types. It is useful when iterating over all entity types to avoid processing the same property more than once. Use GetProperties() to also return properties declared on base types.

GetDeclaredReferencingForeignKeys(IConventionEntityType)

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type is the principal).

GetDeclaredServiceProperties(IConventionEntityType)

Gets all service properties declared on the given IConventionEntityType.

This method does not return properties declared on base types. It is useful when iterating over all entity types to avoid processing the same property more than once. Use GetServiceProperties() to also return properties declared on base types.

GetDefiningQueryConfigurationSource(IConventionEntityType)
Obsolete.

Returns the configuration source for GetDefiningQuery(IEntityType).

GetDerivedForeignKeys(IConventionEntityType)

Gets all foreign keys declared on the types derived from the given IConventionEntityType.

This method does not return foreign keys declared on the given entity type itself. Use GetForeignKeys() to return foreign keys declared on this and base entity typed types.

GetDerivedTypes(IConventionEntityType)

Gets all types in the model that derive from a given entity type.

GetDerivedTypesInclusive(IConventionEntityType)

Returns all derived types of the given IConventionEntityType, including the type itself.

GetDirectlyDerivedTypes(IConventionEntityType)

Gets all types in the model that directly derive from a given entity type.

GetDiscriminatorMappingCompleteConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the discriminator value completeness.

GetDiscriminatorProperty(IConventionEntityType)

Returns the IConventionProperty that will be used for storing a discriminator value.

GetDiscriminatorPropertyConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the discriminator property.

GetDiscriminatorValueConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the discriminator value.

GetNavigations(IConventionEntityType)

Gets all navigation properties on the given entity type.

GetQueryFilterConfigurationSource(IConventionEntityType)

Returns the configuration source for GetQueryFilter(IEntityType).

GetReferencingForeignKeys(IConventionEntityType)

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type or a type it's derived from is the principal).

GetRootType(IConventionEntityType)

Gets the root base type for a given entity type.

RemoveDiscriminatorValue(IConventionEntityType)

Removes the discriminator value for this entity type.

RemoveForeignKey(IConventionEntityType, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionEntityType)

Removes a foreign key from this entity type.

RemoveIndex(IConventionEntityType, IReadOnlyList<IConventionProperty>)

Removes an index from this entity type.

RemoveKey(IConventionEntityType, IReadOnlyList<IConventionProperty>)

Removes a primary or alternate key from this entity type.

RemoveProperty(IConventionEntityType, String)

Removes a property from this entity type.

RootType(IConventionEntityType)
Obsolete.

Gets the root base type for a given entity type.

SetChangeTrackingStrategy(IConventionEntityType, Nullable<ChangeTrackingStrategy>, Boolean)

Sets the change tracking strategy to use for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type.

SetDefiningQuery(IConventionEntityType, LambdaExpression, Boolean)
Obsolete.

Sets the LINQ query used as the default source for queries of this type.

SetDiscriminatorMappingComplete(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets the value indicating whether the discriminator mapping is complete.

SetDiscriminatorProperty(IConventionEntityType, IProperty, Boolean)

Sets the IProperty that will be used for storing a discriminator value.

SetDiscriminatorValue(IConventionEntityType, Object, Boolean)

Sets the discriminator value for this entity type.

SetPrimaryKey(IConventionEntityType, IConventionProperty, Boolean)

Sets the primary key for this entity type.

SetQueryFilter(IConventionEntityType, LambdaExpression, Boolean)

Sets the LINQ expression filter automatically applied to queries for this entity type.

GetNavigationAccessModeConfigurationSource(IConventionTypeBase)

Returns the configuration source for GetNavigationAccessMode(ITypeBase).

GetPropertyAccessModeConfigurationSource(IConventionTypeBase)

Returns the configuration source for GetPropertyAccessMode(ITypeBase).

IsIgnored(IConventionTypeBase, String)

Indicates whether the given member name is ignored.

SetNavigationAccessMode(IConventionTypeBase, Nullable<PropertyAccessMode>, Boolean)

Sets the PropertyAccessMode to use for navigations of this entity type.

Note that individual navigations can override this access mode. The value set here will be used for any navigation for which no override has been specified.

SetPropertyAccessMode(IConventionTypeBase, Nullable<PropertyAccessMode>, Boolean)

Sets the PropertyAccessMode to use for properties of this type.

Note that individual properties and navigations can override this access mode. The value set here will be used for any property or navigation for which no override has been specified.

GetAnalyticalStoreTimeToLive(IReadOnlyEntityType)

Returns the time to live for analytical store in seconds at container scope.

GetAnalyticalStoreTimeToLiveConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the time to live for analytical store in seconds at container scope.

GetContainer(IEntityType)

Returns the name of the container to which the entity type is mapped.

GetContainer(IReadOnlyEntityType)

Returns the name of the container to which the entity type is mapped.

GetContainerConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the container to which the entity type is mapped.

GetContainingPropertyName(IEntityType)

Returns the name of the parent property to which the entity type is mapped.

GetContainingPropertyName(IReadOnlyEntityType)

Returns the name of the parent property to which the entity type is mapped.

GetContainingPropertyNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the parent property to which the entity type is mapped.

GetDefaultTimeToLive(IReadOnlyEntityType)

Returns the default time to live in seconds at container scope.

GetDefaultTimeToLiveConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the default time to live in seconds at container scope.

GetETagProperty(IConventionEntityType)

Gets the property on this entity that is mapped to Cosmos ETag, if it exists.

GetETagProperty(IEntityType)

Gets the property on this entity that is mapped to Cosmos ETag, if it exists.

GetETagProperty(IReadOnlyEntityType)

Gets the property on this entity that is mapped to Cosmos ETag, if it exists.

GetETagPropertyName(IEntityType)

Returns the name of the property that is used to store the etag.

GetETagPropertyName(IReadOnlyEntityType)

Returns the name of the property that is used to store the ETag.

GetETagPropertyNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the property that is used to store the etag.

GetPartitionKeyProperty(IConventionEntityType)

Returns the property that is used to store the partition key.

GetPartitionKeyProperty(IReadOnlyEntityType)

Returns the property that is used to store the partition key.

GetPartitionKeyPropertyName(IEntityType)

Returns the name of the property that is used to store the partition key.

GetPartitionKeyPropertyName(IReadOnlyEntityType)

Returns the name of the property that is used to store the partition key.

GetPartitionKeyPropertyNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the property that is used to store the partition key.

GetThroughput(IReadOnlyEntityType)

Returns the provisioned throughput at container scope.

GetThroughputConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the provisioned throughput at container scope.

SetAnalyticalStoreTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

Sets the time to live for analytical store in seconds at container scope.

SetContainer(IConventionEntityType, String, Boolean)

Sets the name of the container to which the entity type is mapped.

SetContainingPropertyName(IConventionEntityType, String, Boolean)

Sets the name of the parent property to which the entity type is mapped.

SetDefaultTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

Sets the default time to live in seconds at container scope.

SetETagPropertyName(IConventionEntityType, String, Boolean)

Sets the name of the property that is used to store the ETag.

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

Sets the name of the property that is used to store the partition key.

SetThroughput(IConventionEntityType, Nullable<Int32>, Nullable<Boolean>, Boolean)

Sets the provisioned throughput at container scope.

DisplayName(ITypeBase)

Gets the friendly display name for the given ITypeBase.

FindDeclaredNavigation(IEntityType, String)

Gets a navigation property on the given entity type. Does not return navigation properties defined on a base type. Returns null if no navigation property is found.

FindDeclaredProperty(IEntityType, String)

Finds a property declared on the type with the given name. Does not return properties defined on a base type.

FindDefiningNavigation(IEntityType)
Obsolete.

Returns the defining navigation if one exists or null otherwise.

FindForeignKey(IEntityType, IProperty, IKey, IEntityType)

Gets the foreign key for the given properties that points to a given primary or alternate key. Returns null if no foreign key is found.

FindForeignKeys(IEntityType, IProperty)

Gets the foreign keys defined on the given property. Only foreign keys that are defined on exactly the specified property are returned. Composite foreign keys that include the specified property are not returned.

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

Gets the foreign keys defined on the given properties. Only foreign keys that are defined on exactly the specified set of properties are returned.

FindIndex(IEntityType, IProperty)

Gets the unnamed index defined on the given property. Returns null if no such index is defined.

Named indexes will not be returned even if the list of properties matches.

FindKey(IEntityType, IProperty)

Gets the primary or alternate key that is defined on the given property. Returns null if no key is defined for the given property.

FindNavigation(IEntityType, MemberInfo)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindNavigation(IEntityType, String)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindOwnership(IEntityType)

Returns the relationship to the owner if this is an owned type or null otherwise.

FindProperties(IEntityType, IReadOnlyList<String>)

Finds matching properties on the given entity type. Returns null if any property is not found.

This API only finds scalar properties and does not find navigation properties.

FindProperty(IEntityType, MemberInfo)

Gets a property with the given member info. Returns null if no property is found.

This API only finds scalar properties and does not find navigation properties. Use FindNavigation(IEntityType, MemberInfo) to find a navigation property.

FullName(ITypeBase)
Obsolete.

Gets the unique name for the given IReadOnlyTypeBase.

GetAllBaseTypes(IEntityType)

Gets all types in the model from which a given entity type derives, starting with the root.

GetAllBaseTypesAscending(IEntityType)

Gets all types in the model from which a given entity type derives, starting with the closest one.

GetAllBaseTypesInclusive(IEntityType)

Returns all base types of the given IEntityType, including the type itself, top to bottom.

GetAllBaseTypesInclusiveAscending(IEntityType)

Returns all base types of the given IEntityType, including the type itself, bottom to top.

GetChangeTrackingStrategy(IEntityType)

Gets the change tracking strategy being used for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type.

GetClosestCommonParent(IEntityType, IEntityType)
Obsolete.

Returns the closest entity type that is a parent of both given entity types. If one of the given entities is a parent of the other, that parent is returned. Returns null if the two entity types aren't in the same hierarchy.

GetConcreteDerivedTypesInclusive(IEntityType)

Returns all the derived types of the given IEntityType, including the type itself, which are not abstract.

GetDeclaredForeignKeys(IEntityType)

Gets all foreign keys declared on the given IEntityType.

This method does not return foreign keys declared on base types. It is useful when iterating over all entity types to avoid processing the same foreign key more than once. Use GetForeignKeys() to also return foreign keys declared on base types.

GetDeclaredIndexes(IEntityType)

Gets all indexes declared on the given IEntityType.

This method does not return indexes declared on base types. It is useful when iterating over all entity types to avoid processing the same index more than once. Use GetForeignKeys() to also return indexes declared on base types.

GetDeclaredKeys(IEntityType)

Gets all keys declared on the given IEntityType.

This method does not return keys declared on base types. It is useful when iterating over all entity types to avoid processing the same key more than once. Use GetKeys() to also return keys declared on base types.

GetDeclaredNavigations(IEntityType)

Gets all navigation properties declared on the given IEntityType.

This method does not return navigation properties declared on base types. It is useful when iterating over all entity types to avoid processing the same navigation property more than once. Use GetNavigations(IEntityType) to also return navigation properties declared on base types.

GetDeclaredProperties(IEntityType)

Gets all non-navigation properties declared on the given IEntityType.

This method does not return properties declared on base types. It is useful when iterating over all entity types to avoid processing the same property more than once. Use GetProperties() to also return properties declared on base types.

GetDeclaredReferencingForeignKeys(IEntityType)

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type is the principal).

GetDeclaredServiceProperties(IEntityType)

Gets all service properties declared on the given IEntityType.

This method does not return properties declared on base types. It is useful when iterating over all entity types to avoid processing the same property more than once. Use GetServiceProperties() to also return properties declared on base types.

GetDefiningQuery(IEntityType)
Obsolete.

Gets the LINQ query used as the default source for queries of this type.

GetDerivedForeignKeys(IEntityType)

Gets all foreign keys declared on the types derived from the given IEntityType.

This method does not return foreign keys declared on the given entity type itself. Use GetForeignKeys() to return foreign keys declared on this and base entity typed types.

GetDerivedTypes(IEntityType)

Gets all types in the model that derive from a given entity type.

GetDerivedTypesInclusive(IEntityType)

Returns all derived types of the given IEntityType, including the type itself.

GetDirectlyDerivedTypes(IEntityType)

Gets all types in the model that directly derive from a given entity type.

GetDiscriminatorProperty(IEntityType)
Obsolete.

Returns the IReadOnlyProperty that will be used for storing a discriminator value.

GetDiscriminatorValue(IEntityType)

Returns the discriminator value for this entity type.

GetIsDiscriminatorMappingComplete(IEntityType)

Returns the value indicating whether the discriminator mapping is complete for this entity type.

GetNavigations(IEntityType)
Obsolete.

Gets all navigation properties on the given entity type.

GetProperty(IEntityType, String)

Gets a property with the given name.

This API only finds scalar properties and does not find navigation properties. Use FindNavigation(IEntityType, String) to find a navigation property.

GetQueryFilter(IEntityType)

Gets the LINQ expression filter automatically applied to queries for this entity type.

GetReferencingForeignKeys(IEntityType)

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type is the principal).

GetRootType(IEntityType)

Gets the root base type for a given entity type.

GetSeedData(IEntityType, Boolean)

Gets the data stored in the model for the given entity type.

HasDefiningNavigation(IEntityType)
Obsolete.

Gets a value indicating whether this entity type has a defining navigation.

IsAbstract(ITypeBase)

Checks if this entity type represents an abstract type.

IsAssignableFrom(IEntityType, IEntityType)

Determines if this entity type derives from (or is the same as) a given entity type.

IsInOwnershipPath(IEntityType, IEntityType)

Gets a value indicating whether given entity type is in ownership path for this entity type.

IsOwned(IEntityType)

Gets a value indicating whether this entity type is owned by another entity type.

IsStrictlyDerivedFrom(IEntityType, IEntityType)

Determines if this entity type derives from (but is not the same as) a given entity type.

LeastDerivedType(IEntityType, IEntityType)

Gets the least derived type between the specified two.

RootType(IEntityType)
Obsolete.

Gets the root base type for a given entity type.

ShortName(ITypeBase)

Gets a short name for the given ITypeBase that can be used in other identifiers.

ToDebugString(IEntityType, MetadataDebugStringOptions, Int32)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

AnnotationsToDebugString(IAnnotatable, Int32)

Gets the debug string for all annotations declared on the object.

GetAnnotation(IAnnotatable, String)

Gets the annotation with the given name, throwing if it does not exist.

GetDefiningQueryConfigurationSource(IConventionEntityType)

Returns the configuration source for GetInMemoryQuery(IReadOnlyEntityType).

GetInMemoryQuery(IEntityType)

Gets the LINQ query used as the default source for queries of this type.

GetInMemoryQuery(IReadOnlyEntityType)

Gets the LINQ query used as the default source for queries of this type.

SetInMemoryQuery(IConventionEntityType, LambdaExpression, Boolean)

Sets the LINQ query used as the default source for queries of this type.

AddCheckConstraint(IConventionEntityType, String, String, Boolean)

Creates a new check constraint with the given name on entity type. Throws an exception if a check constraint with the same name exists on the same entity type.

FindCheckConstraint(IConventionEntityType, String)

Finds an IConventionCheckConstraint with the given name.

FindCheckConstraint(IEntityType, String)

Finds an ICheckConstraint with the given name.

FindCheckConstraint(IReadOnlyEntityType, String)

Finds an IReadOnlyCheckConstraint with the given name.

FindMappingFragment(IConventionEntityType, StoreObjectIdentifier)

Returns the entity type mapping for a particular table-like store object.

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

FindMappingFragment(IReadOnlyEntityType, StoreObjectIdentifier)

Returns the entity type mapping for a particular table-like store object.

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

FindRowInternalForeignKeys(IConventionEntityType, StoreObjectIdentifier)

Gets the foreign keys for the given entity type that point to other entity types sharing the same table-like store object.

FindRowInternalForeignKeys(IEntityType, StoreObjectIdentifier)

Gets the foreign keys for the given entity type that point to other entity types sharing the same table-like store object.

FindRowInternalForeignKeys(IReadOnlyEntityType, StoreObjectIdentifier)

Gets the foreign keys for the given entity type that point to other entity types sharing the same table-like store object.

GetCheckConstraints(IConventionEntityType)

Returns all check constraints contained in the entity type.

GetCheckConstraints(IEntityType)

Returns all check constraints contained in the entity type.

GetCheckConstraints(IReadOnlyEntityType)

Returns all check constraints contained in the entity type.

GetComment(IEntityType)

Returns the comment for the table this entity is mapped to.

GetComment(IReadOnlyEntityType)

Returns the comment for the table this entity is mapped to.

GetCommentConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the table comment.

GetContainerColumnName(IReadOnlyEntityType)

Gets the container column name to which the entity type is mapped.

GetContainerColumnNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the container column name.

GetContainerColumnTypeMapping(IReadOnlyEntityType)
Obsolete.

Gets the container column type mapping to which the entity type is mapped.

GetContainerColumnTypeMappingConfigurationSource(IConventionEntityType)
Obsolete.

Gets the ConfigurationSource for the container column type mapping.

GetDeclaredCheckConstraints(IConventionEntityType)

Returns all check constraints declared on the entity type.

GetDeclaredCheckConstraints(IReadOnlyEntityType)

Returns all check constraints declared on the entity type.

GetDefaultMappings(IEntityType)

Returns the default mappings that the entity type would use.

GetDefaultSchema(IEntityType)

Returns the default database schema that would be used for this entity type.

GetDefaultSchema(IReadOnlyEntityType)

Returns the default database schema that would be used for this entity type.

GetDefaultSqlQueryName(IEntityType)

Gets the default SQL query name that would be used for this entity type when mapped using RelationalEntityTypeBuilderExtensions.ToSqlQuery.

GetDefaultSqlQueryName(IReadOnlyEntityType)

Gets the default SQL query name that would be used for this entity type when mapped using RelationalEntityTypeBuilderExtensions.ToSqlQuery.

GetDefaultTableName(IEntityType)

Returns the default table name that would be used for this entity type.

GetDefaultTableName(IEntityType, Boolean)

Returns the default table name that would be used for this entity type.

GetDefaultTableName(IReadOnlyEntityType, Boolean)

Returns the default table name that would be used for this entity type.

GetDefaultViewName(IEntityType)

Returns the default view name that would be used for this entity type.

GetDefaultViewName(IReadOnlyEntityType)

Returns the default view name that would be used for this entity type.

GetDefaultViewSchema(IEntityType)

Returns the default database schema that would be used for this entity view.

GetDefaultViewSchema(IReadOnlyEntityType)

Returns the default database schema that would be used for this entity view.

GetDeleteStoredProcedure(IConventionEntityType)

Returns the stored procedure to which the entity type is mapped for deletes or null if not mapped to a stored procedure.

GetDeleteStoredProcedure(IReadOnlyEntityType)

Returns the stored procedure to which the entity type is mapped for deletes or null if not mapped to a stored procedure.

GetDeleteStoredProcedureConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the delete stored procedure.

GetFunctionMappings(IEntityType)

Returns the functions to which the entity type is mapped.

GetFunctionName(IEntityType)

Returns the name of the function to which the entity type is mapped or null if not mapped to a function.

GetFunctionName(IReadOnlyEntityType)

Returns the name of the function to which the entity type is mapped or null if not mapped to a function.

GetFunctionNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the function name.

GetInsertStoredProcedure(IConventionEntityType)

Returns the stored procedure to which the entity type is mapped for inserts or null if not mapped to a stored procedure.

GetInsertStoredProcedure(IReadOnlyEntityType)

Returns the stored procedure to which the entity type is mapped for inserts or null if not mapped to a stored procedure.

GetInsertStoredProcedureConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the insert stored procedure.

GetIsTableExcludedFromMigrationsConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for IsTableExcludedFromMigrations(IReadOnlyEntityType).

GetIsTableExcludedFromMigrationsConfigurationSource(IConventionEntityType, StoreObjectIdentifier)

Gets the ConfigurationSource for IsTableExcludedFromMigrations(IReadOnlyEntityType, StoreObjectIdentifier).

GetJsonPropertyName(IReadOnlyEntityType)

Gets the value of JSON property name used for the given entity mapped to a JSON column.

GetJsonPropertyNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the JSON property name for a given entity type.

GetMappingFragments(IConventionEntityType)

Returns all configured entity type mapping fragments.

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

GetMappingFragments(IConventionEntityType, StoreObjectType)

Returns all configured entity type mapping fragments of the given type.

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

GetMappingFragments(IReadOnlyEntityType)

Returns all configured entity type mapping fragments.

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

GetMappingFragments(IReadOnlyEntityType, StoreObjectType)

Returns all configured entity type mapping fragments of the given type.

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

GetMappingStrategy(IReadOnlyEntityType)

Gets the mapping strategy for the derived types.

GetMappingStrategyConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for GetMappingStrategy(IReadOnlyEntityType).

GetOrCreateMappingFragment(IConventionEntityType, StoreObjectIdentifier, Boolean)

Returns the entity type mapping for a particular table-like store object.

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

GetSchema(IEntityType)

Returns the database schema that contains the mapped table.

GetSchema(IReadOnlyEntityType)

Returns the database schema that contains the mapped table.

GetSchemaConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the database schema.

GetSchemaQualifiedTableName(IEntityType)

Returns the name of the table to which the entity type is mapped prepended by the schema or null if not mapped to a table.

GetSchemaQualifiedTableName(IReadOnlyEntityType)

Returns the name of the table to which the entity type is mapped prepended by the schema or null if not mapped to a table.

GetSchemaQualifiedViewName(IEntityType)

Returns the name of the view to which the entity type is mapped prepended by the schema or null if not mapped to a view.

GetSchemaQualifiedViewName(IReadOnlyEntityType)

Returns the name of the view to which the entity type is mapped prepended by the schema or null if not mapped to a view.

GetSqlQuery(IEntityType)

Returns the SQL string used to provide data for the entity type or null if not mapped to a SQL string.

GetSqlQuery(IReadOnlyEntityType)

Returns the SQL string used to provide data for the entity type or null if not mapped to a SQL string.

GetSqlQueryConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the query SQL string.

GetSqlQueryMappings(IEntityType)

Returns the SQL string mappings.

GetTableMappings(IEntityType)

Returns the tables to which the entity type is mapped.

GetTableName(IEntityType)

Returns the name of the table to which the entity type is mapped or null if not mapped to a table.

GetTableName(IReadOnlyEntityType)

Returns the name of the table to which the entity type is mapped or null if not mapped to a table.

GetTableNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the table name.

GetUpdateStoredProcedure(IConventionEntityType)

Returns the stored procedure to which the entity type is mapped for updates or null if not mapped to a stored procedure.

GetUpdateStoredProcedure(IReadOnlyEntityType)

Returns the stored procedure to which the entity type is mapped for updates or null if not mapped to a stored procedure.

GetUpdateStoredProcedureConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the update stored procedure.

GetViewMappings(IEntityType)

Returns the views to which the entity type is mapped.

GetViewName(IEntityType)

Returns the name of the view to which the entity type is mapped or null if not mapped to a view.

GetViewName(IReadOnlyEntityType)

Returns the name of the view to which the entity type is mapped or null if not mapped to a view.

GetViewNameConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the view name.

GetViewSchema(IEntityType)

Returns the database schema that contains the mapped view.

GetViewSchema(IReadOnlyEntityType)

Returns the database schema that contains the mapped view.

GetViewSchemaConfigurationSource(IConventionEntityType)

Gets the ConfigurationSource for the view schema.

IsIgnoredByMigrations(IEntityType)

Gets a value indicating whether the entity type is ignored by Migrations.

IsMappedToJson(IReadOnlyEntityType)

Gets a value indicating whether the specified entity is mapped to a JSON column.

IsTableExcludedFromMigrations(IEntityType)

Gets a value indicating whether the associated table is ignored by Migrations.

IsTableExcludedFromMigrations(IReadOnlyEntityType)

Gets a value indicating whether the associated table is ignored by Migrations.

IsTableExcludedFromMigrations(IReadOnlyEntityType, StoreObjectIdentifier)

Gets a value indicating whether the specified table is ignored by Migrations.

RemoveCheckConstraint(IConventionEntityType, String)

Removes the IConventionCheckConstraint with the given name.

RemoveDeleteStoredProcedure(IConventionEntityType)

Removes the mapped delete stored procedure for this entity type.

RemoveInsertStoredProcedure(IConventionEntityType)

Removes the mapped insert stored procedure for this entity type.

RemoveMappingFragment(IConventionEntityType, StoreObjectIdentifier)

Removes the entity type mapping for a particular table-like store object.

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

RemoveUpdateStoredProcedure(IConventionEntityType)

Removes the mapped update stored procedure for this entity type.

SetComment(IConventionEntityType, String, Boolean)

Configures a comment to be applied to the table this entity is mapped to.

SetContainerColumnName(IConventionEntityType, String, Boolean)

Sets the name of the container column to which the entity type is mapped.

SetContainerColumnTypeMapping(IConventionEntityType, RelationalTypeMapping, Boolean)
Obsolete.

Sets the type mapping for the container column to which the entity type is mapped.

SetDeleteStoredProcedure(IConventionEntityType, Boolean)

Maps the entity type to a stored procedure for deletes.

SetFunctionName(IConventionEntityType, String, Boolean)

Sets the name of the function to which the entity type is mapped.

SetInsertStoredProcedure(IConventionEntityType, Boolean)

Maps the entity type to a stored procedure for inserts.

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

Sets a value indicating whether the associated table is ignored by Migrations.

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets a value indicating whether the associated table is ignored by Migrations.

SetJsonPropertyName(IConventionEntityType, String, Boolean)

Sets the value of JSON property name used for the given entity mapped to a JSON column.

SetMappingStrategy(IConventionEntityType, String, Boolean)

Sets the mapping strategy for the derived types.

SetSchema(IConventionEntityType, String, Boolean)

Sets the database schema that contains the mapped table.

SetSqlQuery(IConventionEntityType, String, Boolean)

Sets the SQL string used to provide data for the entity type.

SetTableName(IConventionEntityType, String, Boolean)

Sets the name of the table to which the entity type is mapped.

SetUpdateStoredProcedure(IConventionEntityType, Boolean)

Maps the entity type to a stored procedure for updates.

SetViewName(IConventionEntityType, String, Boolean)

Sets the name of the view to which the entity type is mapped.

SetViewSchema(IConventionEntityType, String, Boolean)

Sets the database schema that contains the mapped view.

FindMappingFragment(IReadOnlyTypeBase, StoreObjectIdentifier)

Returns the type mapping for a particular table-like store object.

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

GetContainerColumnName(IReadOnlyTypeBase)

Gets the container column name to which the type is mapped.

GetDeleteStoredProcedure(IReadOnlyTypeBase)

Returns the stored procedure to which the type is mapped for deletes or null if not mapped to a stored procedure.

GetFunctionName(IReadOnlyTypeBase)

Returns the name of the function to which the type is mapped or null if not mapped to a function.

GetInsertStoredProcedure(IReadOnlyTypeBase)

Returns the stored procedure to which the type is mapped for inserts or null if not mapped to a stored procedure.

GetJsonPropertyName(IReadOnlyTypeBase)

Gets the value of JSON property name used for the given entity mapped to a JSON column.

GetMappingFragments(IReadOnlyTypeBase)

Returns all configured type mapping fragments.

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

GetMappingFragments(IReadOnlyTypeBase, StoreObjectType)

Returns all configured type mapping fragments of the given type.

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

GetMappingStrategy(IReadOnlyTypeBase)

Gets the mapping strategy for the derived types.

GetSchema(IReadOnlyTypeBase)

Returns the database schema that contains the mapped table.

GetSqlQuery(IReadOnlyTypeBase)

Returns the SQL string used to provide data for the type or null if not mapped to a SQL string.

GetTableName(IReadOnlyTypeBase)

Returns the name of the table to which the type is mapped or null if not mapped to a table.

GetUpdateStoredProcedure(IReadOnlyTypeBase)

Returns the stored procedure to which the type is mapped for updates or null if not mapped to a stored procedure.

GetViewName(IReadOnlyTypeBase)

Returns the name of the view to which the type is mapped or null if not mapped to a view.

GetViewSchema(IReadOnlyTypeBase)

Returns the database schema that contains the mapped view.

IsMappedToJson(IReadOnlyTypeBase)

Gets a value indicating whether the specified entity is mapped to a JSON column.

GetDbSetName(IReadOnlyEntityType)

Gets the name that should be used for the DbSet<TEntity> property on the DbContext class for this entity type.

GetUseSqlReturningClauseConfigurationSource(IConventionEntityType)

Gets the configuration source for whether to use the SQL RETURNING clause when saving changes to the table.

IsSqlReturningClauseUsed(IReadOnlyEntityType)

Returns a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

IsSqlReturningClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

Returns a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

UseSqlReturningClause(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

Sets a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

UseSqlReturningClause(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

GetHistoryTableName(IReadOnlyEntityType)

Returns a value representing the name of the history table associated with the entity mapped to a temporal table.

GetHistoryTableNameConfigurationSource(IConventionEntityType)

Gets the configuration source for the temporal history table name setting.

GetHistoryTableSchema(IReadOnlyEntityType)

Returns a value representing the schema of the history table associated with the entity mapped to a temporal table.

GetHistoryTableSchemaConfigurationSource(IConventionEntityType)

Gets the configuration source for the temporal history table schema setting.

GetIsMemoryOptimizedConfigurationSource(IConventionEntityType)

Gets the configuration source for the memory-optimized setting.

GetIsTemporalConfigurationSource(IConventionEntityType)

Gets the configuration source for the temporal table setting.

GetPeriodEndPropertyName(IReadOnlyEntityType)

Returns a value representing the name of the period end property of the entity mapped to a temporal table.

GetPeriodEndPropertyNameConfigurationSource(IConventionEntityType)

Gets the configuration source for the temporal table period end property name setting.

GetPeriodStartPropertyName(IReadOnlyEntityType)

Returns a value representing the name of the period start property of the entity mapped to a temporal table.

GetPeriodStartPropertyNameConfigurationSource(IConventionEntityType)

Gets the configuration source for the temporal table period start property name setting.

GetUseSqlOutputClauseConfigurationSource(IConventionEntityType)

Gets the configuration source for whether to use the SQL OUTPUT clause when saving changes to the table.

IsMemoryOptimized(IEntityType)

Returns a value indicating whether the entity type is mapped to a memory-optimized table.

IsMemoryOptimized(IReadOnlyEntityType)

Returns a value indicating whether the entity type is mapped to a memory-optimized table.

IsSqlOutputClauseUsed(IReadOnlyEntityType)

Returns a value indicating whether to use the SQL OUTPUT clause when saving changes to the table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

IsSqlOutputClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

Returns a value indicating whether to use the SQL OUTPUT clause when saving changes to the specified table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

IsTemporal(IReadOnlyEntityType)

Returns a value indicating whether the entity type is mapped to a temporal table.

SetHistoryTableName(IConventionEntityType, String, Boolean)

Sets a value representing the name of the history table associated with the entity mapped to a temporal table.

SetHistoryTableSchema(IConventionEntityType, String, Boolean)

Sets a value representing the schema of the history table associated with the entity mapped to a temporal table.

SetIsMemoryOptimized(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets a value indicating whether the entity type is mapped to a memory-optimized table.

SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets a value indicating whether the entity type is mapped to a temporal table.

SetPeriodEndPropertyName(IConventionEntityType, String, Boolean)

Sets a value representing the name of the period end property of the entity mapped to a temporal table.

SetPeriodStartPropertyName(IConventionEntityType, String, Boolean)

Sets a value representing the name of the period start property of the entity mapped to a temporal table.

UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

Sets a value indicating whether to use the SQL OUTPUT clause when saving changes to the table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets a value indicating whether to use the SQL OUTPUT clause when saving changes to the table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

GetNavigationAccessMode(ITypeBase)

Gets the PropertyAccessMode being used for navigations of this type.

Note that individual navigations can override this access mode. The value returned here will be used for any navigation for which no override has been specified.

GetPropertyAccessMode(ITypeBase)

Gets the PropertyAccessMode being used for properties and navigations of this type.

Note that individual properties and navigations can override this access mode. The value returned here will be used for any property or navigation for which no override has been specified.

Applies to