CoreLoggerExtensions.IncompatibleMatchingForeignKeyProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IncompatibleMatchingForeignKeyProperties(IDiagnosticsLogger<DbLoggerCategory.Model>, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)
public static void IncompatibleMatchingForeignKeyProperties (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> foreignKeyProperties, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> principalKeyProperties);
static member IncompatibleMatchingForeignKeyProperties : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> -> unit
<Extension()>
Public Sub IncompatibleMatchingForeignKeyProperties (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), foreignKeyProperties As IReadOnlyList(Of IPropertyBase), principalKeyProperties As IReadOnlyList(Of IPropertyBase))
參數
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Model>
要使用的診斷記錄器。
- foreignKeyProperties
- IReadOnlyList<IPropertyBase>
組成外鍵的屬性。
- principalKeyProperties
- IReadOnlyList<IPropertyBase>
主體端的對應索引鍵。
適用於
IncompatibleMatchingForeignKeyProperties(IDiagnosticsLogger<DbLoggerCategory.Model>, String, String, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)
public static void IncompatibleMatchingForeignKeyProperties (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, string dependentToPrincipalNavigationSpecification, string principalToDependentNavigationSpecification, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> foreignKeyProperties, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> principalKeyProperties);
static member IncompatibleMatchingForeignKeyProperties : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> -> unit
<Extension()>
Public Sub IncompatibleMatchingForeignKeyProperties (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), dependentToPrincipalNavigationSpecification As String, principalToDependentNavigationSpecification As String, foreignKeyProperties As IReadOnlyList(Of IPropertyBase), principalKeyProperties As IReadOnlyList(Of IPropertyBase))
參數
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Model>
要使用的診斷記錄器。
- dependentToPrincipalNavigationSpecification
- String
關聯性相依端的導覽屬性或實體類型名稱。
- principalToDependentNavigationSpecification
- String
關聯性主體結尾的導覽屬性或實體類型名稱。
- foreignKeyProperties
- IReadOnlyList<IPropertyBase>
組成外鍵的屬性。
- principalKeyProperties
- IReadOnlyList<IPropertyBase>
主體端的對應索引鍵。
適用於
IncompatibleMatchingForeignKeyProperties(IDiagnosticsLogger<DbLoggerCategory.Model>, String, String, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)
public static void IncompatibleMatchingForeignKeyProperties (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> diagnostics, string dependentToPrincipalNavigationSpecification, string principalToDependentNavigationSpecification, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> foreignKeyProperties, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> principalKeyProperties);
static member IncompatibleMatchingForeignKeyProperties : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> -> unit
<Extension()>
Public Sub IncompatibleMatchingForeignKeyProperties (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model), dependentToPrincipalNavigationSpecification As String, principalToDependentNavigationSpecification As String, foreignKeyProperties As IReadOnlyList(Of IReadOnlyPropertyBase), principalKeyProperties As IReadOnlyList(Of IReadOnlyPropertyBase))
參數
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Model>
要使用的診斷記錄器。
- dependentToPrincipalNavigationSpecification
- String
關聯性相依端的導覽屬性或實體類型名稱。
- principalToDependentNavigationSpecification
- String
關聯性主體結尾的導覽屬性或實體類型名稱。
- foreignKeyProperties
- IReadOnlyList<IReadOnlyPropertyBase>
組成外鍵的屬性。
- principalKeyProperties
- IReadOnlyList<IReadOnlyPropertyBase>
主體端的對應索引鍵。