Export (0) Print
Expand All

How to: Specify Private Storage Fields (LINQ to SQL)

Use the LINQ to SQL Storage property on the DataAttribute attribute to designate the name of an underlying storage field.

For code examples, see Storage.

To specify the name of an underlying storage field

  1. Add the Storage property to the ColumnAttribute attribute.

  2. Assign the name of the field as the value of the Storage property.

Show:
© 2014 Microsoft