Share via


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.

See Also

Concepts

The LINQ to SQL Object Model

Other Resources

How to: Customize Entity Classes by Using the Code Editor (LINQ to SQL)