Gets or sets whether the column type of the member is a database timestamp or version number.
public:
property bool IsVersion { bool get(); void set(bool value); };
public bool IsVersion { get; set; }
member this.IsVersion : bool with get, set
Public Property IsVersion As Boolean
Property Value
Default value = false
.
[Column(Storage = "_VersionNum", DbType = "Int NOT NULL IDENTITY", IsVersion=true)]
public int VersionNum
{
get
{
return this._VersionNum;
}
set
{
if ((this._VersionNum != value))
{
this._VersionNum = value;
}
}
}
<Column(Storage:="_VersionNum", DbType:="Int NOT NULL IDENTITY", IsVersion:=True)> _
Public Property VersionNum() As Integer
Get
Return Me._VersionNum
End Get
Set(ByVal value As Integer)
If ((Me._VersionNum = value) _
= False) Then
Me._EmployeeID = value
End If
End Set
End Property
Remarks
Version numbers are incremented and timestamp columns are updated every time that the associated row is updated. (This property tells LINQ to SQL that a column should be updated to show that it is a new version; it is not meant to record information such as who made the update.)
Note the following when IsVersion
is true:
Version numbers are incremented and timestamp columns are updated every time that the associated row is updated. Members with IsVersion=true
are synchronized immediately after the data row is updated. The new values are visible after SubmitChanges finishes.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4