语言

RelationalModelValidator.ValidateSharedForeignKeysCompatibility 方法

定义

重载

名称 说明
ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, String)

此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

验证给定共享表中外键的兼容性。

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

验证给定共享表中外键的兼容性。

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, String)

Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs

此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。

protected virtual void ValidateSharedForeignKeysCompatibility(System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> mappedTypes, string tableName);
abstract member ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * string -> unit
override this.ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * string -> unit
Protected Overridable Sub ValidateSharedForeignKeysCompatibility (mappedTypes As IReadOnlyList(Of IEntityType), tableName As String)

参数

mappedTypes
IReadOnlyList<IEntityType>
tableName
String

适用于

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs

验证给定共享表中外键的兼容性。

protected virtual void ValidateSharedForeignKeysCompatibility(System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> mappedTypes, string tableName, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * string * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * string * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateSharedForeignKeysCompatibility (mappedTypes As IReadOnlyList(Of IEntityType), tableName As String, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

参数

mappedTypes
IReadOnlyList<IEntityType>

映射的实体类型。

tableName
String

表名称。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的记录器。

适用于

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs

验证给定共享表中外键的兼容性。

protected virtual void ValidateSharedForeignKeysCompatibility(System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> mappedTypes, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
protected virtual void ValidateSharedForeignKeysCompatibility(System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> mappedTypes, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier table, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
abstract member ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateSharedForeignKeysCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateSharedForeignKeysCompatibility (mappedTypes As IReadOnlyList(Of IEntityType), storeObject As StoreObjectIdentifier, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Protected Overridable Sub ValidateSharedForeignKeysCompatibility (mappedTypes As IReadOnlyList(Of IEntityType), table As StoreObjectIdentifier, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

参数

mappedTypes
IReadOnlyList<IEntityType>

映射的实体类型。

storeObjecttable
StoreObjectIdentifier

存储对象的标识符。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的记录器。

适用于