共用方式為


RelationalForeignKeyExtensions.GetConstraintNameConfigurationSource 方法

定義

ConfigurationSource取得條件約束名稱的 。

public static Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource? GetConstraintNameConfigurationSource (this Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey);
static member GetConstraintNameConfigurationSource : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey -> Nullable<Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource>
<Extension()>
Public Function GetConstraintNameConfigurationSource (foreignKey As IConventionForeignKey) As Nullable(Of ConfigurationSource)

參數

foreignKey
IConventionForeignKey

外部索引鍵。

傳回

ConfigurationSource條件約束名稱的 。

適用於