共用方式為


CoreLoggerExtensions.RedundantForeignKeyWarning 方法

定義

RedundantForeignKeyWarning事件的記錄。

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

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的診斷記錄器。

redundantForeignKey
IForeignKey

備援外鍵。

適用於