語言

RelationalKeyExtensions.GetNameConfigurationSource(IConventionKey) 方法

定義

會取得約束名稱的 。ConfigurationSource

public static Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource? GetNameConfigurationSource(this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key);
static member GetNameConfigurationSource : Microsoft.EntityFrameworkCore.Metadata.IConventionKey -> Nullable<Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource>
<Extension()>
Public Function GetNameConfigurationSource (key As IConventionKey) As Nullable(Of ConfigurationSource)

參數

key
IConventionKey

索引鍵。

傳回

對於 ConfigurationSource 約束名稱。

適用於