KeyExtensions KeyExtensions Class

Extension methods for IKey.

Syntax

Declaration

public static class KeyExtensionsPublic Module KeyExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • KeyExtensions
    KeyExtensions

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

Gets all foreign keys that target a given primary or alternate key.

Methods

  • GetReferencingForeignKeys(IKey)
    GetReferencingForeignKeys(IKey)

    Gets all foreign keys that target a given primary or alternate key.

    public static IEnumerable<IForeignKey> GetReferencingForeignKeys(this IKey key)<ExtensionAttribute>
    Public Shared Function GetReferencingForeignKeys(key As IKey) As IEnumerable(Of IForeignKey)

    Parameters

    • key

      The key to find the foreign keys for.

    Returns

    • System.Collections.Generic.IEnumerable<T><IForeignKey>
      System.Collections.Generic.IEnumerable<T>(Of IForeignKey)

      The foreign keys that reference the given key.

Details

Assembly

Microsoft.EntityFrameworkCore.dll