共用方式為


CoreLoggerExtensions.ConflictingShadowForeignKeysWarning 方法

定義

多載

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

ConflictingShadowForeignKeysWarning事件的記錄。

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

ConflictingShadowForeignKeysWarning事件的記錄。

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyForeignKey)

public static void ConflictingShadowForeignKeysWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
static member ConflictingShadowForeignKeysWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> unit
<Extension()>
Public Sub ConflictingShadowForeignKeysWarning (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), foreignKey As IReadOnlyForeignKey)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model>

要使用的診斷記錄器。

foreignKey
IReadOnlyForeignKey

外部索引鍵。

適用於

ConflictingShadowForeignKeysWarning(IDiagnosticsLogger<DbLoggerCategory.Model>, IForeignKey)

public static void ConflictingShadowForeignKeysWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member ConflictingShadowForeignKeysWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> unit
<Extension()>
Public Sub ConflictingShadowForeignKeysWarning (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), foreignKey As IForeignKey)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model>

要使用的診斷記錄器。

foreignKey
IForeignKey

外部索引鍵。

適用於