语言

RelationalKeyExtensions.GetDefaultName 方法

定义

重载

名称 说明
GetDefaultName(IKey)

返回将用于此键的默认键约束名称。

GetDefaultName(IReadOnlyKey)

返回将用于此键的默认键约束名称。

GetDefaultName(IKey, StoreObjectIdentifier)

返回将用于特定表的此键的默认键约束名称。

GetDefaultName(IReadOnlyKey, StoreObjectIdentifier)

返回将用于特定表的此键的默认键约束名称。

GetDefaultName(IKey)

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

返回将用于此键的默认键约束名称。

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

参数

key
IKey

钥匙。

返回

将用于此键的默认键约束名称。

适用于

GetDefaultName(IReadOnlyKey)

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

返回将用于此键的默认键约束名称。

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

参数

key
IReadOnlyKey

钥匙。

返回

将用于此键的默认键约束名称。

适用于

GetDefaultName(IKey, StoreObjectIdentifier)

Source:
RelationalKeyExtensions.cs

返回将用于特定表的此键的默认键约束名称。

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

参数

key
IKey

钥匙。

storeObject
StoreObjectIdentifier

包含存储对象的标识符。

返回

将用于此键的默认键约束名称。

适用于

GetDefaultName(IReadOnlyKey, StoreObjectIdentifier)

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

返回将用于特定表的此键的默认键约束名称。

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

参数

key
IReadOnlyKey

钥匙。

storeObject
StoreObjectIdentifier

包含存储对象的标识符。

返回

将用于此键的默认键约束名称。

适用于