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)

Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs

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

C#
public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IKey key);

Parameters

key
IKey

The key.

Returns

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

Applies to

Entity Framework Core 5.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 3.0, 3.1, 5.0

GetDefaultName(IReadOnlyKey)

Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs

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

C#
public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key);
C#
public static string? GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key);

Parameters

key
IReadOnlyKey

The key.

Returns

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

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 6.0, 7.0, 8.0, 9.0

GetDefaultName(IKey, StoreObjectIdentifier)

Source:
RelationalKeyExtensions.cs

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

C#
public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IKey key, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);

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

Entity Framework Core 5.0
Toode Versioonid
Entity Framework Core 5.0

GetDefaultName(IReadOnlyKey, StoreObjectIdentifier)

Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs
Source:
RelationalKeyExtensions.cs

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

C#
public static string? GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);

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

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 6.0, 7.0, 8.0, 9.0