Прочетете на английски

Споделяне чрез


CommentAttribute Class

Definition

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

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class CommentAttribute : 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

Продукт Версии
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0