CommentAttribute 類別

定義

將類別、屬性或欄位標示為要設定于對應資料庫資料表或資料行上的批註。

[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
繼承
CommentAttribute
屬性

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

建構函式

CommentAttribute(String)

初始化 CommentAttribute 類別的新執行個體。

屬性

Comment

要設定的批註。

適用於