PropertyOverridesConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個確保宣告財產對該財產有效的慣例會被覆蓋。
[System.Runtime.CompilerServices.Nullable(0)]
public class PropertyOverridesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention
public class PropertyOverridesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type PropertyOverridesConvention = class
interface IPropertyAddedConvention
interface IConvention
type PropertyOverridesConvention = class
interface IPropertyAddedConvention
interface IConvention
Public Class PropertyOverridesConvention
Implements IPropertyAddedConvention
- 繼承
-
PropertyOverridesConvention
- 屬性
- 實作
備註
更多資訊與範例請參閱 模型建構慣例 與 實體類型階層映射 。
建構函式
| 名稱 | Description |
|---|---|
| PropertyOverridesConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
建立一個新的 實例。PropertyOverridesConvention |
屬性
| 名稱 | Description |
|---|---|
| Dependencies |
此服務的依賴關係。 |
| RelationalDependencies |
此服務的關聯提供者專屬相依關係。 |
方法
| 名稱 | Description |
|---|---|
| ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>) |
在物件類型中加入屬性後呼叫。 |