RuntimeEntityType Class

Definition

Represents an entity type in a model.

public class RuntimeEntityType : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType
public class RuntimeEntityType : Microsoft.EntityFrameworkCore.Metadata.RuntimeTypeBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType
type RuntimeEntityType = class
    inherit AnnotatableBase
    interface IRuntimeEntityType
    interface IEntityType
    interface IReadOnlyEntityType
    interface IReadOnlyTypeBase
    interface IReadOnlyAnnotatable
    interface ITypeBase
    interface IAnnotatable
type RuntimeEntityType = class
    inherit RuntimeTypeBase
    interface IRuntimeEntityType
    interface IEntityType
    interface IReadOnlyEntityType
    interface IReadOnlyTypeBase
    interface IReadOnlyAnnotatable
    interface ITypeBase
    interface IAnnotatable
    interface IRuntimeTypeBase
Public Class RuntimeEntityType
Inherits AnnotatableBase
Implements IRuntimeEntityType
Public Class RuntimeEntityType
Inherits RuntimeTypeBase
Implements IRuntimeEntityType
Inheritance
RuntimeEntityType
Inheritance
Implements
IAnnotatable IReadOnlyAnnotatable IEntityType Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType IReadOnlyEntityType IReadOnlyTypeBase ITypeBase Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeTypeBase

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

RuntimeEntityType(String, Type, Boolean, RuntimeModel, RuntimeEntityType, String, ChangeTrackingStrategy, PropertyInfo, Boolean)

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.

RuntimeEntityType(String, Type, Boolean, RuntimeModel, RuntimeEntityType, String, ChangeTrackingStrategy, PropertyInfo, Boolean, Object)

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.

Properties

BaseType

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

(Inherited from RuntimeTypeBase)
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 RuntimeTypeBase)
ConstructorBinding

Gets or sets the InstantiationBinding for the preferred constructor.

Counts

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.

DebugView

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.

DirectlyDerivedTypes

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

(Inherited from RuntimeTypeBase)
EmptyShadowValuesFactory

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.

IsReadOnly

Indicates whether the current object is read-only.

(Inherited from AnnotatableBase)
Item[String]

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

(Inherited from AnnotatableBase)
Model

Gets the model that this type belongs to.

Model

Gets the model that this type belongs to.

(Inherited from RuntimeTypeBase)
Name

Gets the name of this type.

Name

Gets the name of this type.

(Inherited from RuntimeTypeBase)
OriginalValuesFactory

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.

Properties

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 RuntimeTypeBase)
ServiceOnlyConstructorBinding

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.

ShadowValuesFactory

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.

StoreGeneratedValuesFactory

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.

TemporaryValuesFactory

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.

Methods

AddAnnotation(String, Annotation)

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

(Inherited from AnnotatableBase)
AddAnnotation(String, Object)

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

(Inherited from AnnotatableBase)
AddAnnotations(IEnumerable<IAnnotation>)

Adds annotations to this object.

(Inherited from AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

Adds annotations to this object.

(Inherited from AnnotatableBase)
AddComplexProperty(String, Type, String, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean, ChangeTrackingStrategy, PropertyInfo, Boolean)

Adds a complex property to this entity type.

(Inherited from RuntimeTypeBase)
AddForeignKey(IReadOnlyList<RuntimeProperty>, RuntimeKey, RuntimeEntityType, DeleteBehavior, Boolean, Boolean, Boolean, Boolean)

Adds a new relationship to this entity type.

AddIndex(IReadOnlyList<RuntimeProperty>, String, Boolean)

Adds an index to this entity type.

AddKey(IReadOnlyList<RuntimeProperty>)

Adds a new alternate key to this entity type.

AddNavigation(String, RuntimeForeignKey, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean)

Adds a new navigation property to this entity type.

AddNavigation(String, RuntimeForeignKey, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean)

Adds a new navigation property to this entity type.

AddProperty(String, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean, ValueGenerated, PropertySaveBehavior, PropertySaveBehavior, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Type, Func<IProperty,IEntityType,ValueGenerator>, ValueConverter, ValueComparer, ValueComparer, CoreTypeMapping)

Adds a property to this entity type.

AddProperty(String, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean, ValueGenerated, PropertySaveBehavior, PropertySaveBehavior, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Type, Func<IProperty,IEntityType,ValueGenerator>, ValueConverter, ValueComparer, ValueComparer, ValueComparer, CoreTypeMapping)

Adds a property to this entity type.

AddProperty(String, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean, ValueGenerated, PropertySaveBehavior, PropertySaveBehavior, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Type, Func<IProperty,ITypeBase,ValueGenerator>, ValueConverter, ValueComparer, ValueComparer, ValueComparer, JsonValueReaderWriter, CoreTypeMapping, Object)

Adds a property to this entity type.

(Inherited from RuntimeTypeBase)
AddRuntimeAnnotation(String, Annotation)

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

(Inherited from AnnotatableBase)
AddRuntimeAnnotation(String, Object)

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

(Inherited from AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

Adds runtime annotations to this object.

(Inherited from AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

Adds runtime annotations to this object.

(Inherited from AnnotatableBase)
AddServiceProperty(String, PropertyInfo, FieldInfo, PropertyAccessMode)

Adds a service property to this entity type.

AddServiceProperty(String, PropertyInfo, FieldInfo, Type, PropertyAccessMode)

Adds a service property to this entity type.

AddSkipNavigation(String, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean)

Adds a new skip navigation property to this entity type.

AddSkipNavigation(String, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean)

Adds a new skip navigation property to this entity type.

AddTrigger(String)

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.

CreateAnnotation(String, Object)

Creates a new annotation.

(Inherited from AnnotatableBase)
CreateRuntimeAnnotation(String, Object)

Creates a new runtime annotation.

(Inherited from AnnotatableBase)
EnsureMutable()

Throws if the model is read-only.

(Inherited from AnnotatableBase)
EnsureReadOnly()

Throws if the model is not read-only.

(Inherited from AnnotatableBase)
FindAnnotation(String)

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

(Inherited from AnnotatableBase)
FindComplexPropertiesInHierarchy(String)

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

(Inherited from RuntimeTypeBase)
FindComplexProperty(String)

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

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

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

FindDeclaredProperty(String)

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 RuntimeTypeBase)
FindDeclaredTrigger(String)

Finds a trigger with the given name.

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.

FindIndex(IReadOnlyList<IReadOnlyProperty>)

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

FindIndex(String)

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

FindIndexerProperty(Type)

Returns the default indexer property that takes a String value if one exists.

FindIndexerPropertyInfo()

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

FindIndexerPropertyInfo()

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

(Inherited from RuntimeTypeBase)
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.

FindMember(String)

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.

FindMembersInHierarchy(String)

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.

FindNavigation(String)

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

FindNavigationsInHierarchy(String)

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

FindProperties(IEnumerable<String>)

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

FindProperties(IEnumerable<String>)

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

(Inherited from RuntimeTypeBase)
FindPropertiesInHierarchy(String)

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

(Inherited from RuntimeTypeBase)
FindProperty(String)

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

FindProperty(String)

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

(Inherited from RuntimeTypeBase)
FindRuntimeAnnotation(String)

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

(Inherited from AnnotatableBase)
FindServicePropertiesInHierarchy(String)

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

FindServiceProperty(String)

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

FindSkipNavigation(String)

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

FindSkipNavigationsInHierarchy(String)

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

GetAnnotation(String)

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

(Inherited from AnnotatableBase)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from AnnotatableBase)
GetComplexProperties()

Gets the complex properties defined on this type.

(Inherited from RuntimeTypeBase)
GetDeclaredComplexProperties()

Gets the complex properties declared on this type.

(Inherited from RuntimeTypeBase)
GetDeclaredMembers()

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.

GetDeclaredProperties()

Gets all scalar properties declared on this type.

(Inherited from RuntimeTypeBase)
GetDerivedTypes()

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 RuntimeTypeBase)
GetDerivedTypes<T>()

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 RuntimeTypeBase)
GetFlattenedComplexProperties()

Returns all RuntimeComplexProperty members from this type and all nested complex types, if any.

(Inherited from RuntimeTypeBase)
GetFlattenedDeclaredProperties()

Returns all IProperty members from this type and all nested complex types, if any.

(Inherited from RuntimeTypeBase)
GetFlattenedProperties()

Returns all IProperty members from this type and all nested complex types, if any.

(Inherited from RuntimeTypeBase)
GetMembers()

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.

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 AnnotatableBase)
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.

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.

GetProperties()

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 RuntimeTypeBase)
GetRuntimeAnnotations()

Gets all runtime annotations on the current object.

(Inherited from AnnotatableBase)
GetSnapshottableMembers()

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.

OnAnnotationSet(String, Annotation, Annotation)

Called when an annotation was set or removed.

(Inherited from AnnotatableBase)
RemoveAnnotation(String)

Removes the given annotation from this object.

(Inherited from AnnotatableBase)
RemoveRuntimeAnnotation(String)

Removes the given runtime annotation from this object.

(Inherited from AnnotatableBase)
Reparent(RuntimeModel)

Re-parents this entity type to the given model.

SetAnnotation(String, Annotation, Annotation)

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

(Inherited from AnnotatableBase)
SetAnnotation(String, Object)

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

(Inherited from AnnotatableBase)
SetEmptyShadowValuesFactory(Func<ISnapshot>)

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.

SetOriginalValuesFactory(Func<InternalEntityEntry,ISnapshot>)

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.

SetPrimaryKey(RuntimeKey)

Sets the primary key for this entity type.

SetRelationshipSnapshotFactory(Func<InternalEntityEntry,ISnapshot>)

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.

SetRuntimeAnnotation(String, Annotation, Annotation)

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

(Inherited from AnnotatableBase)
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 AnnotatableBase)
SetShadowValuesFactory(Func<ValueBuffer,ISnapshot>)

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.

SetStoreGeneratedValuesFactory(Func<ISnapshot>)

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.

SetTemporaryValuesFactory(Func<InternalEntityEntry,ISnapshot>)

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.

ToString()

Returns a string that represents the current object.

Explicit Interface Implementations

IAnnotatable.AddRuntimeAnnotation(String, Object)

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

(Inherited from AnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

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

(Inherited from AnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

Gets all the runtime annotations on the current object.

(Inherited from AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

Removes the given runtime annotation from this object.

(Inherited from AnnotatableBase)
IAnnotatable.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 AnnotatableBase)
IEntityType.BaseType

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

IEntityType.FindDeclaredForeignKeys(IReadOnlyList<IReadOnlyProperty>)

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

IEntityType.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.

IEntityType.FindDeclaredProperty(String)

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

IEntityType.FindDeclaredTrigger(String)

Finds a trigger with the given name.

IEntityType.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.

IEntityType.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.

IEntityType.FindIndex(IReadOnlyList<IReadOnlyProperty>)

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

IEntityType.FindIndex(String)

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

IEntityType.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.

IEntityType.FindPrimaryKey()

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

IEntityType.FindProperties(IReadOnlyList<String>)

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

IEntityType.FindProperty(String)

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

IEntityType.FindServiceProperty(String)

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

IEntityType.FindSkipNavigation(MemberInfo)

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

IEntityType.FindSkipNavigation(String)

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

IEntityType.GetDeclaredForeignKeys()

Gets all foreign keys declared on the given IEntityType.

IEntityType.GetDeclaredIndexes()

Gets all indexes declared on the given IEntityType.

IEntityType.GetDeclaredKeys()

Gets all keys declared on the given IReadOnlyEntityType.

IEntityType.GetDeclaredNavigations()

Gets all navigation properties declared on the given IEntityType.

IEntityType.GetDeclaredProperties()

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

IEntityType.GetDeclaredReferencingForeignKeys()

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

IEntityType.GetDeclaredServiceProperties()

Gets all service properties declared on the given IEntityType.

IEntityType.GetDeclaredSkipNavigations()

Gets all skip navigation properties declared on this entity type.

IEntityType.GetDeclaredTriggers()

Returns the declared triggers on the entity type.

IEntityType.GetDerivedForeignKeys()

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

IEntityType.GetDerivedIndexes()

Gets all indexes declared on the types derived from the given IEntityType.

IEntityType.GetDerivedSkipNavigations()

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

IEntityType.GetDirectlyDerivedTypes()

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

IEntityType.GetForeignKeyProperties()

Returns the properties contained in foreign keys.

IEntityType.GetForeignKeys()

Gets the foreign keys defined on this entity type.

IEntityType.GetIndexes()

Gets the indexes defined on this entity type.

IEntityType.GetKeys()

Gets the primary and alternate keys for this entity type.

IEntityType.GetNavigations()

Gets all navigation properties on the given entity type.

IEntityType.GetProperties()

Gets the properties defined on this entity type.

IEntityType.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).

IEntityType.GetServiceProperties()

Gets all the IServiceProperty defined on this entity type.

IEntityType.GetSkipNavigations()

Gets the skip navigation properties on this entity type.

IEntityType.GetValueGeneratingProperties()

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

IReadOnlyAnnotatable.FindAnnotation(String)

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

(Inherited from AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

Gets all annotations on the current object.

(Inherited from AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

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

(Inherited from AnnotatableBase)
IReadOnlyEntityType.BaseType

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

IReadOnlyEntityType.FindDeclaredForeignKeys(IReadOnlyList<IReadOnlyProperty>)

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

IReadOnlyEntityType.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.

IReadOnlyEntityType.FindDeclaredProperty(String)

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

IReadOnlyEntityType.FindDeclaredSkipNavigation(String)

Gets a skip navigation property on this entity type.

IReadOnlyEntityType.FindDeclaredTrigger(String)

Finds a trigger with the given name.

IReadOnlyEntityType.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.

IReadOnlyEntityType.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.

IReadOnlyEntityType.FindIndex(IReadOnlyList<IReadOnlyProperty>)

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

IReadOnlyEntityType.FindIndex(String)

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

IReadOnlyEntityType.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.

IReadOnlyEntityType.FindPrimaryKey()

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

IReadOnlyEntityType.FindProperties(IReadOnlyList<String>)

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

IReadOnlyEntityType.FindProperty(String)

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

IReadOnlyEntityType.FindServiceProperty(String)

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

IReadOnlyEntityType.FindSkipNavigation(MemberInfo)

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

IReadOnlyEntityType.FindSkipNavigation(String)

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

IReadOnlyEntityType.GetChangeTrackingStrategy()

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.

IReadOnlyEntityType.GetDeclaredForeignKeys()

Gets all foreign keys declared on this entity type..

IReadOnlyEntityType.GetDeclaredIndexes()

Gets all indexes declared on this entity type.

IReadOnlyEntityType.GetDeclaredKeys()

Gets all keys declared on this entity type.

IReadOnlyEntityType.GetDeclaredNavigations()

Gets all navigation properties declared on this entity type.

IReadOnlyEntityType.GetDeclaredProperties()

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

IReadOnlyEntityType.GetDeclaredReferencingForeignKeys()

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

IReadOnlyEntityType.GetDeclaredServiceProperties()

Gets all service properties declared on this entity type.

IReadOnlyEntityType.GetDeclaredSkipNavigations()

Gets all skip navigation properties declared on this entity type.

IReadOnlyEntityType.GetDeclaredTriggers()

Returns the declared triggers on the entity type.

IReadOnlyEntityType.GetDerivedForeignKeys()

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

IReadOnlyEntityType.GetDerivedIndexes()

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

IReadOnlyEntityType.GetDerivedNavigations()

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

IReadOnlyEntityType.GetDerivedProperties()

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

IReadOnlyEntityType.GetDerivedServiceProperties()

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

IReadOnlyEntityType.GetDerivedSkipNavigations()

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

IReadOnlyEntityType.GetDerivedTypes()

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

IReadOnlyEntityType.GetDerivedTypesInclusive()

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

IReadOnlyEntityType.GetDirectlyDerivedTypes()

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

IReadOnlyEntityType.GetDiscriminatorPropertyName()

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

IReadOnlyEntityType.GetDiscriminatorValue()

Returns the discriminator value for this entity type.

IReadOnlyEntityType.GetForeignKeys()

Gets the foreign keys defined on this entity type.

IReadOnlyEntityType.GetIndexes()

Gets the indexes defined on this entity type.

IReadOnlyEntityType.GetKeys()

Gets the primary and alternate keys for this entity type.

IReadOnlyEntityType.GetNavigationAccessMode()
IReadOnlyEntityType.GetNavigations()

Gets all navigation properties on the given entity type.

IReadOnlyEntityType.GetProperties()

Gets the properties defined on this entity type.

IReadOnlyEntityType.GetQueryFilter()

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

IReadOnlyEntityType.GetReferencingForeignKeys()

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

IReadOnlyEntityType.GetSeedData(Boolean)
IReadOnlyEntityType.GetServiceProperties()

Gets all the IReadOnlyServiceProperty defined on this entity type.

IReadOnlyEntityType.GetSkipNavigations()

Gets the skip navigation properties on this entity type.

IReadOnlyEntityType.HasServiceProperties()

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

IReadOnlyTypeBase.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).

IReadOnlyTypeBase.FindComplexProperty(String)

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

(Inherited from RuntimeTypeBase)
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 RuntimeTypeBase)
IReadOnlyTypeBase.FindDeclaredProperty(String)

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.FindMember(String)

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.FindMembersInHierarchy(String)

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.FindProperties(IReadOnlyList<String>)

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.FindProperty(String)

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.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 RuntimeTypeBase)
IReadOnlyTypeBase.GetComplexProperties()

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetDeclaredComplexProperties()

Gets the complex properties declared on this type.

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetDeclaredMembers()

Gets the members declared on this type.

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetDeclaredProperties()

Gets all scalar properties declared on this type.

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetDerivedComplexProperties()

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetDerivedProperties()

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetMembers()

Gets the members defined on this type and base types.

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetNavigationAccessMode()
IReadOnlyTypeBase.GetProperties()

Gets all scalar properties defined on this type.

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.GetPropertyAccessMode()
IReadOnlyTypeBase.GetPropertyAccessMode()

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

(Inherited from RuntimeTypeBase)
IReadOnlyTypeBase.HasSharedClrType

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

IReadOnlyTypeBase.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.

IReadOnlyTypeBase.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 RuntimeTypeBase)
IReadOnlyTypeBase.Model

Gets the model that this type belongs to.

IRuntimeEntityType.Counts Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.Counts
IRuntimeEntityType.EmptyShadowValuesFactory Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.EmptyShadowValuesFactory
IRuntimeEntityType.GetConstructorBindingConfigurationSource()
IRuntimeEntityType.GetServiceOnlyConstructorBindingConfigurationSource()
IRuntimeEntityType.InstanceFactory Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.InstanceFactory
IRuntimeEntityType.OriginalValuesFactory Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.OriginalValuesFactory
IRuntimeEntityType.RelationshipSnapshotFactory Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.RelationshipSnapshotFactory
IRuntimeEntityType.ShadowValuesFactory Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.ShadowValuesFactory
IRuntimeEntityType.StoreGeneratedValuesFactory Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.StoreGeneratedValuesFactory
IRuntimeEntityType.TemporaryValuesFactory Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeEntityType.TemporaryValuesFactory
IRuntimeTypeBase.GetConstructorBindingConfigurationSource() (Inherited from RuntimeTypeBase)
IRuntimeTypeBase.GetServiceOnlyConstructorBindingConfigurationSource() (Inherited from RuntimeTypeBase)
ITypeBase.FindComplexProperty(String)

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

(Inherited from RuntimeTypeBase)
ITypeBase.FindDeclaredProperty(String)

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

(Inherited from RuntimeTypeBase)
ITypeBase.FindMember(String)

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

(Inherited from RuntimeTypeBase)
ITypeBase.FindMembersInHierarchy(String)

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

(Inherited from RuntimeTypeBase)
ITypeBase.FindProperty(String)

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

(Inherited from RuntimeTypeBase)
ITypeBase.GetComplexProperties()

Gets the complex properties defined on this entity type.

(Inherited from RuntimeTypeBase)
ITypeBase.GetDeclaredComplexProperties()

Gets the complex properties declared on this entity type.

(Inherited from RuntimeTypeBase)
ITypeBase.GetDeclaredMembers()

Gets the members declared on this type.

(Inherited from RuntimeTypeBase)
ITypeBase.GetDeclaredProperties()

Gets all non-navigation properties declared on this type.

(Inherited from RuntimeTypeBase)
ITypeBase.GetFlattenedComplexProperties()

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

(Inherited from RuntimeTypeBase)
ITypeBase.GetFlattenedDeclaredProperties()

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

(Inherited from RuntimeTypeBase)
ITypeBase.GetFlattenedProperties()

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

(Inherited from RuntimeTypeBase)
ITypeBase.GetMembers()

Gets the members defined on this type and base types.

(Inherited from RuntimeTypeBase)
ITypeBase.GetProperties()

Gets the properties defined on this type.

(Inherited from RuntimeTypeBase)
ITypeBase.GetSnapshottableMembers()

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

(Inherited from RuntimeTypeBase)
ITypeBase.Model

Gets the model that this type belongs to.

Extension Methods

GetAnalyticalStoreTimeToLive(IReadOnlyEntityType)

Returns 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.

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.

GetDefaultTimeToLive(IReadOnlyEntityType)

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

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.

GetPartitionKeyProperty(IEntityType)

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.

GetThroughput(IReadOnlyEntityType)

Returns 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.

FindNavigation(IEntityType, MemberInfo)

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.

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.

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.

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.

IsInOwnershipPath(IEntityType, IEntityType)

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

IsStrictlyDerivedFrom(IEntityType, IEntityType)

Determines if this entity type derives from (but is not the same as) 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.

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.

FindCheckConstraint(IEntityType, String)

Finds an ICheckConstraint with the given name.

FindCheckConstraint(IReadOnlyEntityType, String)

Finds an IReadOnlyCheckConstraint with the given name.

FindMappingFragment(IEntityType, 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(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(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(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.

GetContainerColumnName(IReadOnlyEntityType)

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

GetContainerColumnTypeMapping(IReadOnlyEntityType)
Obsolete.

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

GetDeclaredCheckConstraints(IEntityType)

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(IEntityType)

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.

GetDeleteStoredProcedureMappings(IEntityType)

Returns the delete stored procedures to which the entity type is mapped.

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.

GetInsertStoredProcedure(IEntityType)

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.

GetInsertStoredProcedureMappings(IEntityType)

Returns the insert stored procedures to which the entity type is mapped.

GetJsonPropertyName(IReadOnlyEntityType)

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

GetMappingFragments(IEntityType)

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(IEntityType, 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.

GetSchema(IEntityType)

Returns the database schema that contains the mapped table.

GetSchema(IReadOnlyEntityType)

Returns the database schema that contains the mapped table.

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.

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.

GetUpdateStoredProcedure(IEntityType)

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.

GetUpdateStoredProcedureMappings(IEntityType)

Returns the update stored procedures to which the entity type is mapped.

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.

GetViewSchema(IEntityType)

Returns the database schema that contains the mapped view.

GetViewSchema(IReadOnlyEntityType)

Returns the database schema that contains the mapped view.

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.

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.

FindMappingFragment(ITypeBase, 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.

GetDefaultMappings(ITypeBase)

Returns the default mappings that the type would use.

GetDeleteStoredProcedure(IReadOnlyTypeBase)

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

GetDeleteStoredProcedure(ITypeBase)

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

GetDeleteStoredProcedureMappings(ITypeBase)

Returns the delete stored procedures to which the type is mapped.

GetFunctionMappings(ITypeBase)

Returns the functions to which the type is mapped.

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.

GetInsertStoredProcedure(ITypeBase)

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

GetInsertStoredProcedureMappings(ITypeBase)

Returns the insert stored procedures to which the type is mapped.

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.

GetMappingFragments(ITypeBase)

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(ITypeBase, 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.

GetSqlQueryMappings(ITypeBase)

Returns the SQL string mappings.

GetTableMappings(ITypeBase)

Returns the tables to which the type is mapped.

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.

GetUpdateStoredProcedure(ITypeBase)

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

GetUpdateStoredProcedureMappings(ITypeBase)

Returns the update stored procedures to which the type is mapped.

GetViewMappings(ITypeBase)

Returns the views to which the type is mapped.

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.

GetDataAnnotations(IEntityType, IAnnotationCodeGenerator)

Gets the data annotations to configure an entity type.

GetDbSetName(IReadOnlyEntityType)

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

GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)

Gets the fluent API calls to configure an entity type.

IsSimpleManyToManyJoinEntityType(IEntityType)

Check whether an entity type could be considered a many-to-many join entity type.

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.

GetHistoryTableName(IReadOnlyEntityType)

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

GetHistoryTableSchema(IReadOnlyEntityType)

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

GetPeriodEndPropertyName(IReadOnlyEntityType)

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

GetPeriodStartPropertyName(IReadOnlyEntityType)

Returns a value representing the name of the period start property of the entity mapped to a temporal 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.

Applies to