共用方式為


RelationalLoggerExtensions.IndexPropertiesBothMappedAndNotMappedToTable 方法

定義

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

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的診斷記錄器。

entityType
IEntityType

定義索引的實體類型。

index
IIndex

實體類型的索引。

unmappedPropertyName
String

未對應的屬性名稱。

適用於