SharedTableConvention.AreCompatibleDefaultConstraints 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一個值,表示兩個同名的預設約束是否相容。
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 如果相容的話