NotMappedMemberAttributeConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個忽略具有 NotMappedAttribute的實體類型成員的慣例。
[System.Runtime.CompilerServices.Nullable(0)]
public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type NotMappedMemberAttributeConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IComplexPropertyAddedConvention
type NotMappedMemberAttributeConvention = class
interface IEntityTypeAddedConvention
interface IConvention
Public Class NotMappedMemberAttributeConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention
Public Class NotMappedMemberAttributeConvention
Implements IEntityTypeAddedConvention
- 繼承
-
NotMappedMemberAttributeConvention
- 屬性
- 實作
備註
更多資訊與範例請參閱 模型建構慣例 。
建構函式
| 名稱 | Description |
|---|---|
| NotMappedMemberAttributeConvention(ProviderConventionSetBuilderDependencies) |
建立一個新的 實例。NotMappedMemberAttributeConvention |
屬性
| 名稱 | Description |
|---|---|
| Dependencies |
此服務的依賴關係。 |
方法
| 名稱 | Description |
|---|---|
| ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>) |
在將複雜屬性加入類型物件後呼叫。 |
| ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>) |
在模型中加入實體類型後呼叫。 |
| ShouldIgnore(MemberInfo) |
回傳一個值,指示是否應忽略該 CLR 成員。 |