SharedTableConvention.AreCompatible 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
取得值,指出對應至相同條件約束的兩個索引鍵是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容
適用於
AreCompatible(IReadOnlyIndex, IReadOnlyIndex, StoreObjectIdentifier)
取得值,指出對應至相同資料表索引的兩個索引是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容
適用於
AreCompatible(IReadOnlyForeignKey, IReadOnlyForeignKey, StoreObjectIdentifier)
取得值,指出對應至相同外鍵條件約束的兩個外鍵是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容
適用於
AreCompatible(IReadOnlyTrigger, IReadOnlyTrigger, StoreObjectIdentifier)
取得值,指出兩個具有相同名稱的觸發程式是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容
適用於
AreCompatible(IKey, IKey, StoreObjectIdentifier)
取得值,指出對應至相同條件約束的兩個索引鍵是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容
適用於
AreCompatible(IIndex, IIndex, StoreObjectIdentifier)
取得值,指出對應至相同資料表索引的兩個索引是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容
適用於
AreCompatible(IForeignKey, IForeignKey, StoreObjectIdentifier)
取得值,指出對應至相同外鍵條件約束的兩個外鍵是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容
適用於
AreCompatible(IReadOnlyCheckConstraint, IReadOnlyCheckConstraint, StoreObjectIdentifier)
取得值,指出兩個具有相同名稱的檢查條件約束是否相容。
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
Store 物件的識別碼。
傳回
true
如果相容