RelationalKeyExtensions.GetDefaultName Method

Definition

Overloads

GetDefaultName(IKey)

Returns the default key constraint name that would be used for this key.

GetDefaultName(IReadOnlyKey)

Returns the default key constraint name that would be used for this key.

GetDefaultName(IKey, StoreObjectIdentifier)

Returns the default key constraint name that would be used for this key for a particular table.

GetDefaultName(IReadOnlyKey, StoreObjectIdentifier)

Returns the default key constraint name that would be used for this key for a particular table.

GetDefaultName(IKey)

Returns the default key constraint name that would be used for this key.

public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IKey key);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IKey -> string
<Extension()>
Public Function GetDefaultName (key As IKey) As String

Parameters

key
IKey

The key.

Returns

The default key constraint name that would be used for this key.

Applies to

GetDefaultName(IReadOnlyKey)

Returns the default key constraint name that would be used for this key.

public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key);
public static string? GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey -> string
<Extension()>
Public Function GetDefaultName (key As IReadOnlyKey) As String

Parameters

key
IReadOnlyKey

The key.

Returns

The default key constraint name that would be used for this key.

Applies to

GetDefaultName(IKey, StoreObjectIdentifier)

Returns the default key constraint name that would be used for this key for a particular table.

public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IKey key, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IKey * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultName (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 default key constraint name that would be used for this key.

Applies to

GetDefaultName(IReadOnlyKey, StoreObjectIdentifier)

Returns the default key constraint name that would be used for this key for a particular table.

public static string? GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultName (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 default key constraint name that would be used for this key.

Applies to