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
{
}
注解
存储属性值区分大小写。 例如,确保存储属性的属性中使用的值与代码中其他地方使用的相应属性名称的事例匹配。 这适用于所有.NET编程语言,即使是通常不区分大小写的编程语言,包括Visual Basic。