DataAttribute.Storage 屬性

定義

取得或設定一個私人儲存欄位來儲存欄位的值。

public:
 property System::String ^ Storage { System::String ^ get(); void set(System::String ^ value); };
public string Storage { get; set; }
member this.Storage : string with get, set
Public Property Storage As String

屬性值

儲存場的名字。

範例

<Column(Storage:=_CustomerID)> _
Public CustomerID As String
[Column(Storage="_CustomerID")]
public string CustomerID
{
}

備註

儲存屬性值是大小寫區分的。 例如,確保 Storage 屬性中使用的值與程式碼中其他地方使用的屬性名稱相符。 這適用於所有 .NET 程式語言,即使是那些通常不區分大小寫的語言,包括 Visual Basic。

適用於