Share via


CommentAttribute Class

Definition

Marks a class, property or field with a comment to be set on the corresponding database table or column.

[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)>]
type CommentAttribute = class
    inherit Attribute
Public NotInheritable Class CommentAttribute
Inherits Attribute
Inheritance
CommentAttribute
Attributes

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

CommentAttribute(String)

Initializes a new instance of the CommentAttribute class.

Properties

Comment

The comment to be configured.

Applies to