共用方式為


RelationalLoggerExtensions.OptionalDependentWithoutIdentifyingPropertyWarning 方法

定義

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

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的診斷記錄器。

entityType
IEntityType

實體類型。

適用於