语言

RelationalColumnCommentAttributeConvention 类

定义

基于应用的 CommentAttribute属性或字段配置列注释的约定。

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RelationalColumnCommentAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.CommentAttribute>
public class RelationalColumnCommentAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.CommentAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RelationalColumnCommentAttributeConvention = class
    inherit PropertyAttributeConventionBase<CommentAttribute>
type RelationalColumnCommentAttributeConvention = class
    inherit PropertyAttributeConventionBase<CommentAttribute>
Public Class RelationalColumnCommentAttributeConvention
Inherits PropertyAttributeConventionBase(Of CommentAttribute)
继承
RelationalColumnCommentAttributeConvention
特性

注解

有关详细信息和示例,请参阅 模型生成约定 。

构造函数

名称 说明
RelationalColumnCommentAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 RelationalColumnCommentAttributeConvention的新实例。

属性

名称 说明
Dependencies

此服务的依赖项。

(继承自 PropertyAttributeConventionBase<TAttribute>)
RelationalDependencies

此服务的关系提供程序特定的依赖项。

方法

名称 说明
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

在将复杂属性添加到类似类型的对象后调用。

(继承自 PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

在复杂属性的后盾字段更改后调用。

(继承自 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

在将复杂属性添加到具有关联 CLR 属性或字段的属性的类型后调用。

(继承自 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, CommentAttribute, MemberInfo, IConventionContext)

在将属性添加到实体类型后调用,该实体类型具有关联的 CLR 属性或字段上的属性。

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

在将属性添加到实体类型后调用。

(继承自 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

在将属性添加到实体类型后调用,该实体类型具有关联的 CLR 属性或字段上的属性。

(继承自 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

在属性的后盾字段更改后调用。

(继承自 PropertyAttributeConventionBase<TAttribute>)

适用于