EntityTypeExtensions EntityTypeExtensions Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static class EntityTypeExtensions
Public Module EntityTypeExtensions
Inheritance
System.ObjectSystem.Object
EntityTypeExtensionsEntityTypeExtensions

Methods

AsEntityType(IEntityType, String) AsEntityType(IEntityType, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static EntityType AsEntityType(this IEntityType entityType, string methodName = "")
<ExtensionAttribute>
Public Shared Function AsEntityType(entityType As IEntityType, methodName As String = "") As EntityType
Parameters
methodName
System.String System.String
Returns

CalculateCounts(IEntityType) CalculateCounts(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static PropertyCounts CalculateCounts(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function CalculateCounts(entityType As IEntityType) As PropertyCounts
Parameters
Returns

CheckChangeTrackingStrategy(IEntityType, ChangeTrackingStrategy) CheckChangeTrackingStrategy(IEntityType, ChangeTrackingStrategy)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static string CheckChangeTrackingStrategy(this IEntityType entityType, ChangeTrackingStrategy value)
<ExtensionAttribute>
Public Shared Function CheckChangeTrackingStrategy(entityType As IEntityType, value As ChangeTrackingStrategy) As String
Parameters
Returns
System.String System.String

CheckPropertyBelongsToType(IEntityType, IProperty) CheckPropertyBelongsToType(IEntityType, IProperty)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IProperty CheckPropertyBelongsToType(this IEntityType entityType, IProperty property)
<ExtensionAttribute>
Public Shared Function CheckPropertyBelongsToType(entityType As IEntityType, property As IProperty) As IProperty
Parameters
property
IProperty IProperty
Returns

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

FindDeclaredPrimaryKey(IEntityType) FindDeclaredPrimaryKey(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IKey FindDeclaredPrimaryKey(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function FindDeclaredPrimaryKey(entityType As IEntityType) As IKey
Parameters
Returns

FindDerivedNavigations(IEntityType, String) FindDerivedNavigations(IEntityType, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<INavigation> FindDerivedNavigations(this IEntityType entityType, string navigationName)
<ExtensionAttribute>
Public Shared Function FindDerivedNavigations(entityType As IEntityType, navigationName As String) As IEnumerable(Of INavigation)
Parameters
navigationName
System.String System.String
Returns
System.Collections.Generic.IEnumerable<INavigation> System.Collections.Generic.IEnumerable(Of INavigation)

FindDerivedProperties(IEntityType, String) FindDerivedProperties(IEntityType, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IProperty> FindDerivedProperties(this IEntityType entityType, string propertyName)
<ExtensionAttribute>
Public Shared Function FindDerivedProperties(entityType As IEntityType, propertyName As String) As IEnumerable(Of IProperty)
Parameters
propertyName
System.String System.String
Returns
System.Collections.Generic.IEnumerable<IProperty> System.Collections.Generic.IEnumerable(Of IProperty)

GetAllBaseTypesInclusive(IEntityType) GetAllBaseTypesInclusive(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IEntityType> GetAllBaseTypesInclusive(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetAllBaseTypesInclusive(entityType As IEntityType) As IEnumerable(Of IEntityType)
Parameters
Returns
System.Collections.Generic.IEnumerable<IEntityType> System.Collections.Generic.IEnumerable(Of IEntityType)

GetConcreteTypesInHierarchy(IEntityType) GetConcreteTypesInHierarchy(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IEntityType> GetConcreteTypesInHierarchy(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetConcreteTypesInHierarchy(entityType As IEntityType) As IEnumerable(Of IEntityType)
Parameters
Returns
System.Collections.Generic.IEnumerable<IEntityType> System.Collections.Generic.IEnumerable(Of IEntityType)

GetCounts(IEntityType) GetCounts(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static PropertyCounts GetCounts(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetCounts(entityType As IEntityType) As PropertyCounts
Parameters
Returns

GetDeclaredForeignKeys(IEntityType) GetDeclaredForeignKeys(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IForeignKey> GetDeclaredForeignKeys(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDeclaredForeignKeys(entityType As IEntityType) As IEnumerable(Of IForeignKey)
Parameters
Returns
System.Collections.Generic.IEnumerable<IForeignKey> System.Collections.Generic.IEnumerable(Of IForeignKey)

GetDeclaredIndexes(IEntityType) GetDeclaredIndexes(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IIndex> GetDeclaredIndexes(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDeclaredIndexes(entityType As IEntityType) As IEnumerable(Of IIndex)
Parameters
Returns
System.Collections.Generic.IEnumerable<IIndex> System.Collections.Generic.IEnumerable(Of IIndex)

GetDeclaredKeys(IEntityType) GetDeclaredKeys(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IKey> GetDeclaredKeys(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDeclaredKeys(entityType As IEntityType) As IEnumerable(Of IKey)
Parameters
Returns
System.Collections.Generic.IEnumerable<IKey> System.Collections.Generic.IEnumerable(Of IKey)

GetDeclaredNavigations(IEntityType) GetDeclaredNavigations(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<INavigation> GetDeclaredNavigations(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDeclaredNavigations(entityType As IEntityType) As IEnumerable(Of INavigation)
Parameters
Returns
System.Collections.Generic.IEnumerable<INavigation> System.Collections.Generic.IEnumerable(Of INavigation)

GetDeclaredProperties(IEntityType) GetDeclaredProperties(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IProperty> GetDeclaredProperties(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDeclaredProperties(entityType As IEntityType) As IEnumerable(Of IProperty)
Parameters
Returns
System.Collections.Generic.IEnumerable<IProperty> System.Collections.Generic.IEnumerable(Of IProperty)

GetDeclaredReferencingForeignKeys(IEntityType) GetDeclaredReferencingForeignKeys(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IForeignKey> GetDeclaredReferencingForeignKeys(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDeclaredReferencingForeignKeys(entityType As IEntityType) As IEnumerable(Of IForeignKey)
Parameters
Returns
System.Collections.Generic.IEnumerable<IForeignKey> System.Collections.Generic.IEnumerable(Of IForeignKey)

GetDerivedTypesInclusive(IEntityType) GetDerivedTypesInclusive(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IEntityType> GetDerivedTypesInclusive(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDerivedTypesInclusive(entityType As IEntityType) As IEnumerable(Of IEntityType)
Parameters
Returns
System.Collections.Generic.IEnumerable<IEntityType> System.Collections.Generic.IEnumerable(Of IEntityType)

GetDirectlyDerivedTypes(IEntityType) GetDirectlyDerivedTypes(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IEntityType> GetDirectlyDerivedTypes(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetDirectlyDerivedTypes(entityType As IEntityType) As IEnumerable(Of IEntityType)
Parameters
Returns
System.Collections.Generic.IEnumerable<IEntityType> System.Collections.Generic.IEnumerable(Of IEntityType)

GetEmptyShadowValuesFactory(IEntityType) GetEmptyShadowValuesFactory(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static Func<ISnapshot> GetEmptyShadowValuesFactory(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetEmptyShadowValuesFactory(entityType As IEntityType) As Func(Of ISnapshot)
Parameters
Returns
System.Func<ISnapshot> System.Func(Of ISnapshot)

GetHashCode() GetHashCode()

Inherited from System.Object

GetNotificationProperties(IEntityType, String) GetNotificationProperties(IEntityType, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IPropertyBase> GetNotificationProperties(this IEntityType entityType, string propertyName)
<ExtensionAttribute>
Public Shared Function GetNotificationProperties(entityType As IEntityType, propertyName As String) As IEnumerable(Of IPropertyBase)
Parameters
propertyName
System.String System.String
Returns
System.Collections.Generic.IEnumerable<IPropertyBase> System.Collections.Generic.IEnumerable(Of IPropertyBase)

GetOriginalValuesFactory(IEntityType) GetOriginalValuesFactory(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static Func<InternalEntityEntry, ISnapshot> GetOriginalValuesFactory(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetOriginalValuesFactory(entityType As IEntityType) As Func(Of InternalEntityEntry, ISnapshot)
Parameters
Returns

GetPropertiesAndNavigations(IEntityType) GetPropertiesAndNavigations(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IEnumerable<IPropertyBase> GetPropertiesAndNavigations(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetPropertiesAndNavigations(entityType As IEntityType) As IEnumerable(Of IPropertyBase)
Parameters
Returns
System.Collections.Generic.IEnumerable<IPropertyBase> System.Collections.Generic.IEnumerable(Of IPropertyBase)

GetProperty(IEntityType, String) GetProperty(IEntityType, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static IProperty GetProperty(this IEntityType entityType, string name)
<ExtensionAttribute>
Public Shared Function GetProperty(entityType As IEntityType, name As String) As IProperty
Parameters
name
System.String System.String
Returns

GetRelationshipSnapshotFactory(IEntityType) GetRelationshipSnapshotFactory(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static Func<InternalEntityEntry, ISnapshot> GetRelationshipSnapshotFactory(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetRelationshipSnapshotFactory(entityType As IEntityType) As Func(Of InternalEntityEntry, ISnapshot)
Parameters
Returns

GetShadowValuesFactory(IEntityType) GetShadowValuesFactory(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static Func<ValueBuffer, ISnapshot> GetShadowValuesFactory(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function GetShadowValuesFactory(entityType As IEntityType) As Func(Of ValueBuffer, ISnapshot)
Parameters
Returns
System.Func<ValueBuffer, ISnapshot> System.Func(Of ValueBuffer, ISnapshot)

GetType() GetType()

Inherited from System.Object

IsSameHierarchy(IEntityType, IEntityType) IsSameHierarchy(IEntityType, IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static bool IsSameHierarchy(this IEntityType firstEntityType, IEntityType secondEntityType)
<ExtensionAttribute>
Public Shared Function IsSameHierarchy(firstEntityType As IEntityType, secondEntityType As IEntityType) As Boolean
Parameters
firstEntityType
IEntityType IEntityType
secondEntityType
IEntityType IEntityType
Returns
System.Boolean System.Boolean

LeastDerivedType(EntityType, EntityType) LeastDerivedType(EntityType, EntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static EntityType LeastDerivedType(this EntityType entityType, EntityType otherEntityType)
<ExtensionAttribute>
Public Shared Function LeastDerivedType(entityType As EntityType, otherEntityType As EntityType) As EntityType
Parameters
entityType
EntityType EntityType
otherEntityType
EntityType EntityType
Returns

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

NavigationCount(IEntityType) NavigationCount(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static int NavigationCount(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function NavigationCount(entityType As IEntityType) As Integer
Parameters
Returns
System.Int32 System.Int32

OriginalValueCount(IEntityType) OriginalValueCount(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static int OriginalValueCount(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function OriginalValueCount(entityType As IEntityType) As Integer
Parameters
Returns
System.Int32 System.Int32

PropertyCount(IEntityType) PropertyCount(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static int PropertyCount(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function PropertyCount(entityType As IEntityType) As Integer
Parameters
Returns
System.Int32 System.Int32

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

RelationshipPropertyCount(IEntityType) RelationshipPropertyCount(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static int RelationshipPropertyCount(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function RelationshipPropertyCount(entityType As IEntityType) As Integer
Parameters
Returns
System.Int32 System.Int32

ShadowPropertyCount(IEntityType) ShadowPropertyCount(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static int ShadowPropertyCount(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function ShadowPropertyCount(entityType As IEntityType) As Integer
Parameters
Returns
System.Int32 System.Int32

StoreGeneratedCount(IEntityType) StoreGeneratedCount(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static int StoreGeneratedCount(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function StoreGeneratedCount(entityType As IEntityType) As Integer
Parameters
Returns
System.Int32 System.Int32

ToDebugString(IEntityType, Boolean, String) ToDebugString(IEntityType, Boolean, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static string ToDebugString(this IEntityType entityType, bool singleLine = true, string indent = "")
<ExtensionAttribute>
Public Shared Function ToDebugString(entityType As IEntityType, singleLine As Boolean = True, indent As String = "") As String
Parameters
singleLine
System.Boolean System.Boolean
indent
System.String System.String
Returns
System.String System.String

ToString() ToString()

Inherited from System.Object

UseEagerSnapshots(IEntityType) UseEagerSnapshots(IEntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static bool UseEagerSnapshots(this IEntityType entityType)
<ExtensionAttribute>
Public Shared Function UseEagerSnapshots(entityType As IEntityType) As Boolean
Parameters
Returns
System.Boolean System.Boolean