RelationalKeyExtensions.GetName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetName(IKey) |
Returns the key constraint name for this key. |
GetName(IReadOnlyKey) |
Returns the key constraint name for this key. |
GetName(IKey, StoreObjectIdentifier) |
Returns the key constraint name for this key for a particular table. |
GetName(IReadOnlyKey, StoreObjectIdentifier) |
Returns the key constraint name for this key for a particular table. |
GetName(IKey)
Returns the key constraint name for this key.
public static string GetName (this Microsoft.EntityFrameworkCore.Metadata.IKey key);
static member GetName : Microsoft.EntityFrameworkCore.Metadata.IKey -> string
<Extension()>
Public Function GetName (key As IKey) As String
Parameters
- key
- IKey
The key.
Returns
The key constraint name for this key.
Applies to
GetName(IReadOnlyKey)
Returns the key constraint name for this key.
public static string? GetName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key);
static member GetName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey -> string
<Extension()>
Public Function GetName (key As IReadOnlyKey) As String
Parameters
- key
- IReadOnlyKey
The key.
Returns
The key constraint name for this key.
Applies to
GetName(IKey, StoreObjectIdentifier)
Returns the key constraint name for this key for a particular table.
public static string GetName (this Microsoft.EntityFrameworkCore.Metadata.IKey key, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetName : Microsoft.EntityFrameworkCore.Metadata.IKey * StoreObjectIdentifier -> string
<Extension()>
Public Function GetName (key As IKey, ByRef storeObject As StoreObjectIdentifier) As String
Parameters
- key
- IKey
The key.
- storeObject
- StoreObjectIdentifier
The identifier of the containing store object.
Returns
The key constraint name for this key.
Applies to
GetName(IReadOnlyKey, StoreObjectIdentifier)
Returns the key constraint name for this key for a particular table.
public static string? GetName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * StoreObjectIdentifier -> string
<Extension()>
Public Function GetName (key As IReadOnlyKey, ByRef storeObject As StoreObjectIdentifier) As String
Parameters
- key
- IReadOnlyKey
The key.
- storeObject
- StoreObjectIdentifier
The identifier of the containing store object.
Returns
The key constraint name for this key.
Applies to
Entity Framework