语言

SharedTableConvention.AreCompatibleDefaultConstraints 方法

定义

获取一个值,该值指示两个具有相同名称的默认约束是否兼容。

protected virtual bool AreCompatibleDefaultConstraints(Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty duplicateProperty, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
abstract member AreCompatibleDefaultConstraints : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> bool
override this.AreCompatibleDefaultConstraints : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> bool
Protected Overridable Function AreCompatibleDefaultConstraints (property As IReadOnlyProperty, duplicateProperty As IReadOnlyProperty, storeObject As StoreObjectIdentifier) As Boolean

参数

property
IReadOnlyProperty

具有默认约束的属性。

duplicateProperty
IReadOnlyProperty

另一个具有默认约束的属性。

storeObject
StoreObjectIdentifier

存储对象的标识符。

返回

true 如果兼容

适用于