Summary
returns the transaction serial number ("version") the referenced object
was stored with last.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Ext - Containing Type
- IObjectInfo
Syntax
[System.ObsoleteAttribute(@"As of version 8.0 please use GetCommitTimestamp() instead.")]
long GetVersion()
Remarks
returns the transaction serial number ("version") the referenced object
was stored with last. Version number generation has to be turned on, in
order to be able to use this feature:
This feature was replaced by
Db4objects.Db4o.Config.IFileConfiguration.GenerateVersionNumbers(Db4objects.Db4o.Config.ConfigScope)
This feature was replaced by
Db4objects.Db4o.Ext.IObjectInfo.GetCommitTimestamp
. The main
difference is that the old version mechanism used to assign a serial
timestamp to the object upon storing time, and the new commitTimestamp
approach, assigns it upon commit time.Attributes
Type | Description |
---|---|
ObsoleteAttribute |
Return Value
Type | Description |
---|---|
long | the version number. |