本文整理汇总了C#中Db4objects.Db4o.Internal.StatefulBuffer.GetID方法的典型用法代码示例。如果您正苦于以下问题:C# StatefulBuffer.GetID方法的具体用法?C# StatefulBuffer.GetID怎么用?C# StatefulBuffer.GetID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects.Db4o.Internal.StatefulBuffer
的用法示例。
在下文中一共展示了StatefulBuffer.GetID方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unmarshall
public static object Unmarshall(ObjectContainerBase serviceProvider, StatefulBuffer
buffer)
{
return Unmarshall(serviceProvider, buffer._buffer, buffer.GetID());
}
示例2: Delete
internal void Delete(StatefulBuffer buffer, object obj)
{
RemoveFromIndex(buffer.Transaction(), buffer.GetID());
CascadeDeletion(buffer, obj);
}
示例3: AddIndexEntry
protected void AddIndexEntry(StatefulBuffer a_bytes, object indexEntry)
{
AddIndexEntry(a_bytes.Transaction(), a_bytes.GetID(), indexEntry);
}
示例4: AddFieldIndices
public void AddFieldIndices(StatefulBuffer buffer)
{
if (!StandardReferenceTypeHandlerIsUsed())
{
return;
}
if (HasClassIndex() || HasVirtualAttributes())
{
var oh = new ObjectHeader(this, buffer);
var context = new ObjectIdContextImpl(buffer.Transaction(), buffer
, oh, buffer.GetID());
Handlers4.FieldAwareTypeHandler(CorrectHandlerVersion(context)).AddFieldIndices(context
);
}
}
示例5: ReadIndexEntryForRebuild
private object ReadIndexEntryForRebuild(StatefulBuffer writer, ObjectHeader oh)
{
ClassMetadata classMetadata = oh.ClassMetadata();
if (classMetadata == null)
{
return DefaultValueForFieldType();
}
ObjectIdContextImpl context = new ObjectIdContextImpl(writer.Transaction(), writer
, oh, writer.GetID());
if (!classMetadata.SeekToField(context, this))
{
return DefaultValueForFieldType();
}
try
{
return ReadIndexEntry(context);
}
catch (CorruptionException exc)
{
throw new FieldIndexException(exc, this);
}
}