語言

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
屬性

備註

更多資訊與範例請參閱 建模實體類型與關係 。

建構函式

名稱 Description
CommentAttribute(String)

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

屬性

名稱 Description
Comment

待設定的留言。

適用於