EntityTypeExtensions EntityTypeExtensions Class

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.

Syntax

Declaration

public static class EntityTypeExtensionsPublic Module EntityTypeExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • EntityTypeExtensions
    EntityTypeExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

    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

    Returns

  • 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

    Returns

    • System.Collections.Generic.IEnumerable<T><INavigation>
      System.Collections.Generic.IEnumerable<T>(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

    Returns

    • System.Collections.Generic.IEnumerable<T><IProperty>
      System.Collections.Generic.IEnumerable<T>(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<T><IEntityType>
      System.Collections.Generic.IEnumerable<T>(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<T><IEntityType>
      System.Collections.Generic.IEnumerable<T>(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<T><IForeignKey>
      System.Collections.Generic.IEnumerable<T>(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<T><IIndex>
      System.Collections.Generic.IEnumerable<T>(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<T><IKey>
      System.Collections.Generic.IEnumerable<T>(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<T><INavigation>
      System.Collections.Generic.IEnumerable<T>(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<T><IProperty>
      System.Collections.Generic.IEnumerable<T>(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<T><IForeignKey>
      System.Collections.Generic.IEnumerable<T>(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<T><IEntityType>
      System.Collections.Generic.IEnumerable<T>(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<T><IEntityType>
      System.Collections.Generic.IEnumerable<T>(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

  • 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

    Returns

  • 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

  • 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

    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

  • 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

    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

    Returns

  • 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
  • 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

    • entityType
    • singleLine
      System.Boolean
      System.Boolean
    • indent
      System.String
      System.String

    Returns

    • System.String
      System.String
  • 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

Details

Assembly

Microsoft.EntityFrameworkCore.dll