本文整理汇总了C#中IObjectInfo.GetCommitTimestamp方法的典型用法代码示例。如果您正苦于以下问题:C# IObjectInfo.GetCommitTimestamp方法的具体用法?C# IObjectInfo.GetCommitTimestamp怎么用?C# IObjectInfo.GetCommitTimestamp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IObjectInfo
的用法示例。
在下文中一共展示了IObjectInfo.GetCommitTimestamp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Encode
public void Encode(ByteArrayOutputStream os, IObjectInfo info)
{
PrimitiveCodec.WriteLong(os, info.GetInternalID());
long sourceDatabaseId = ((FrozenObjectInfo)info).SourceDatabaseId(this._enclosing
.Transaction());
PrimitiveCodec.WriteLong(os, sourceDatabaseId);
PrimitiveCodec.WriteLong(os, ((FrozenObjectInfo)info).UuidLongPart());
PrimitiveCodec.WriteLong(os, info.GetCommitTimestamp());
}
示例2: AssertGeneration
private void AssertGeneration(IObjectInfo objectInfo, bool expectGeneration)
{
if (expectGeneration)
{
Assert.IsNotNull(objectInfo.GetUUID());
}
else
{
Assert.IsNull(objectInfo.GetUUID());
Assert.AreEqual(0L, objectInfo.GetCommitTimestamp());
}
}
示例3: Db4oReplicationReferenceImpl
internal Db4oReplicationReferenceImpl(IObjectInfo objectInfo, object obj)
{
if (obj == null)
{
throw new InvalidOperationException("obj may not be null");
}
_version = objectInfo.GetCommitTimestamp();
ObjectReference @ref = (ObjectReference)objectInfo;
Transaction trans = @ref.Transaction();
Db4objects.Db4o.Internal.VirtualAttributes va = @ref.VirtualAttributes(trans);
if (va != null)
{
SetVirtualAttributes((Db4objects.Db4o.Internal.VirtualAttributes)va.ShallowClone(
));
}
else
{
SetVirtualAttributes(new Db4objects.Db4o.Internal.VirtualAttributes());
}
SetObject(obj);
Ref_init();
}