語言

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 如果相容的話

適用於