SharedTableConvention.AreCompatible 方法

定义

重载

AreCompatible(IReadOnlyKey, IReadOnlyKey, StoreObjectIdentifier)

获取一个值,该值指示映射到同一约束的两个键是否兼容。

AreCompatible(IReadOnlyIndex, IReadOnlyIndex, StoreObjectIdentifier)

获取一个值,该值指示映射到同一表索引的两个索引是否兼容。

AreCompatible(IReadOnlyForeignKey, IReadOnlyForeignKey, StoreObjectIdentifier)

获取一个值,该值指示映射到同一外键约束的两个外键是否兼容。

AreCompatible(IReadOnlyTrigger, IReadOnlyTrigger, StoreObjectIdentifier)

获取一个值,该值指示同名的两个触发器是否兼容。

AreCompatible(IKey, IKey, StoreObjectIdentifier)

获取一个值,该值指示映射到同一约束的两个键是否兼容。

AreCompatible(IIndex, IIndex, StoreObjectIdentifier)

获取一个值,该值指示映射到同一表索引的两个索引是否兼容。

AreCompatible(IForeignKey, IForeignKey, StoreObjectIdentifier)

获取一个值,该值指示映射到同一外键约束的两个外键是否兼容。

AreCompatible(IReadOnlyCheckConstraint, IReadOnlyCheckConstraint, StoreObjectIdentifier)

获取一个值,该值指示同名的两个检查约束是否兼容。

AreCompatible(IReadOnlyKey, IReadOnlyKey, StoreObjectIdentifier)

Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs

获取一个值,该值指示映射到同一约束的两个键是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey duplicateKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (key As IReadOnlyKey, duplicateKey As IReadOnlyKey, storeObject As StoreObjectIdentifier) As Boolean

参数

key
IReadOnlyKey

键。

duplicateKey
IReadOnlyKey

另一个键。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于

AreCompatible(IReadOnlyIndex, IReadOnlyIndex, StoreObjectIdentifier)

Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs

获取一个值,该值指示映射到同一表索引的两个索引是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex index, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex duplicateIndex, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (index As IReadOnlyIndex, duplicateIndex As IReadOnlyIndex, storeObject As StoreObjectIdentifier) As Boolean

参数

index
IReadOnlyIndex

一个索引。

duplicateIndex
IReadOnlyIndex

另一个索引。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于

AreCompatible(IReadOnlyForeignKey, IReadOnlyForeignKey, StoreObjectIdentifier)

Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs

获取一个值,该值指示映射到同一外键约束的两个外键是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey duplicateForeignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (foreignKey As IReadOnlyForeignKey, duplicateForeignKey As IReadOnlyForeignKey, storeObject As StoreObjectIdentifier) As Boolean

参数

foreignKey
IReadOnlyForeignKey

外键。

duplicateForeignKey
IReadOnlyForeignKey

另一个外键。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于

AreCompatible(IReadOnlyTrigger, IReadOnlyTrigger, StoreObjectIdentifier)

Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs

获取一个值,该值指示同名的两个触发器是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger trigger, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger duplicateTrigger, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (trigger As IReadOnlyTrigger, duplicateTrigger As IReadOnlyTrigger, storeObject As StoreObjectIdentifier) As Boolean

参数

trigger
IReadOnlyTrigger

触发器。

duplicateTrigger
IReadOnlyTrigger

另一个触发器。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于

AreCompatible(IKey, IKey, StoreObjectIdentifier)

Source:
SharedTableConvention.cs

获取一个值,该值指示映射到同一约束的两个键是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Metadata.IKey duplicateKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.IKey * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.IKey * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (key As IKey, duplicateKey As IKey, storeObject As StoreObjectIdentifier) As Boolean

参数

key
IKey

键。

duplicateKey
IKey

另一个键。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于

AreCompatible(IIndex, IIndex, StoreObjectIdentifier)

Source:
SharedTableConvention.cs

获取一个值,该值指示映射到同一表索引的两个索引是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Metadata.IIndex duplicateIndex, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.IIndex * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.IIndex * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (index As IIndex, duplicateIndex As IIndex, storeObject As StoreObjectIdentifier) As Boolean

参数

index
IIndex

一个索引。

duplicateIndex
IIndex

另一个索引。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于

AreCompatible(IForeignKey, IForeignKey, StoreObjectIdentifier)

Source:
SharedTableConvention.cs

获取一个值,该值指示映射到同一外键约束的两个外键是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.IForeignKey duplicateForeignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (foreignKey As IForeignKey, duplicateForeignKey As IForeignKey, storeObject As StoreObjectIdentifier) As Boolean

参数

foreignKey
IForeignKey

外键。

duplicateForeignKey
IForeignKey

另一个外键。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于

AreCompatible(IReadOnlyCheckConstraint, IReadOnlyCheckConstraint, StoreObjectIdentifier)

Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs
Source:
SharedTableConvention.cs

获取一个值,该值指示同名的两个检查约束是否兼容。

protected virtual bool AreCompatible (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint checkConstraint, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint duplicateCheckConstraint, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint * StoreObjectIdentifier -> bool
override this.AreCompatible : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatible (checkConstraint As IReadOnlyCheckConstraint, duplicateCheckConstraint As IReadOnlyCheckConstraint, storeObject As StoreObjectIdentifier) As Boolean

参数

checkConstraint
IReadOnlyCheckConstraint

检查约束。

duplicateCheckConstraint
IReadOnlyCheckConstraint

另一个检查约束。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于