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
- 特性
- 实现
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
| 名称 | 说明 |
|---|---|
| NotMappedMemberAttributeConvention(ProviderConventionSetBuilderDependencies) |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 |
方法
| 名称 | 说明 |
|---|---|
| ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>) |
在将复杂属性添加到类似类型的对象后调用。 |
| ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>) |
在实体类型添加到模型后调用。 |
| ShouldIgnore(MemberInfo) |
返回一个值,该值指示是否应忽略给定 CLR 成员。 |