DataAttribute.Storage 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個私人儲存欄位來儲存欄位的值。
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。