แก้ไข

แชร์ผ่าน


How to: Represent Columns as Timestamp or Version Columns

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