语言

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 名称。

适用于