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

屬性值

String

儲存欄位的名稱。

範例

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

備註

儲存體屬性值會區分大小寫。 例如,請確定儲存體屬性之屬性中所使用的值,與程式碼中其他位置所用之對應屬性名稱的大小寫相符。 這適用于所有 .NET 程式設計語言,即使它們通常不區分大小寫,包括 Visual Basic。

適用於