KeyComplexPropertyConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個將鍵所用屬性路徑中每個複雜屬性標記為必要條件的慣例,因為必須有該屬性的值才能計算出該鍵值。
[System.Runtime.CompilerServices.Nullable(0)]
public class KeyComplexPropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type KeyComplexPropertyConvention = class
interface IKeyAddedConvention
interface IConvention
interface IKeyRemovedConvention
Public Class KeyComplexPropertyConvention
Implements IKeyAddedConvention, IKeyRemovedConvention
- 繼承
-
KeyComplexPropertyConvention
- 屬性
- 實作
備註
當最後一個引用金鑰被移除時,只要沒有其他金鑰持續使用該鏈,且使用者未執行明確配置,這裡所套用的隱含不可空配置就會被還原。
更多資訊與範例請參閱 模型建構慣例 。
建構函式
| 名稱 | Description |
|---|---|
| KeyComplexPropertyConvention(ProviderConventionSetBuilderDependencies) |
一個將鍵所用屬性路徑中每個複雜屬性標記為必要條件的慣例,因為必須有該屬性的值才能計算出該鍵值。 |
屬性
| 名稱 | Description |
|---|---|
| Dependencies |
此服務的依賴關係。 |