Share via


How to: Represent Columns as Timestamp or Version Columns (LINQ to SQL)

Use the LINQ to SQL IsVersion property of the ColumnAttribute attribute to designate a field or property as representing a database column that holds database timestamps or version numbers.

For code examples, see IsVersion.

To designate a field or property as representing a timestamp or version column

  1. Add the IsVersion property to the ColumnAttribute attribute.

  2. Set the IsVersion property value to true.

See Also

Tasks

How to: Specify Which Members are Tested for Concurrency Conflicts (LINQ to SQL)

Concepts

The LINQ to SQL Object Model

Other Resources

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