语言

CommentAttribute 类

定义

标记一个类、属性或字段,其中包含要对相应的数据库表或列设置的注释。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class CommentAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class CommentAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type CommentAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type CommentAttribute = class
    inherit Attribute
Public NotInheritable Class CommentAttribute
Inherits Attribute
继承
CommentAttribute
特性

注解

有关详细信息和示例,请参阅 建模实体类型和关系 。

构造函数

名称 说明
CommentAttribute(String)

初始化 CommentAttribute 类的新实例。

属性

名称 说明
Comment

要配置的注释。

适用于