本文整理汇总了C#中Db4objects.Db4o.Internal.Marshall.QueryingReadContext.CollectionID方法的典型用法代码示例。如果您正苦于以下问题:C# QueryingReadContext.CollectionID方法的具体用法?C# QueryingReadContext.CollectionID怎么用?C# QueryingReadContext.CollectionID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects.Db4o.Internal.Marshall.QueryingReadContext
的用法示例。
在下文中一共展示了QueryingReadContext.CollectionID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CollectIDsByInstantiatingCollection
/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
private void CollectIDsByInstantiatingCollection(QueryingReadContext context)
{
var id = context.CollectionID();
if (id == 0)
{
return;
}
var transaction = context.Transaction();
var container = context.Container();
var obj = container.GetByID(transaction, id);
if (obj == null)
{
return;
}
// FIXME: [TA] review activation depth
var depth = DepthUtil.AdjustDepthToBorders(2);
container.Activate(transaction, obj, container.ActivationDepthProvider().ActivationDepth
(depth, ActivationMode.Activate));
Platform4.ForEachCollectionElement(obj, new _IVisitor4_390(context));
}
示例2: CollectIDsByTypehandlerAspect
/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
private bool CollectIDsByTypehandlerAspect(QueryingReadContext context)
{
var aspectFound = new BooleanByRef(false);
var subContext = CollectIdContext.ForID(context.Transaction(), context
.Collector(), context.CollectionID());
ITraverseAspectCommand command = new _MarshallingInfoTraverseAspectCommand_349(this
, aspectFound, subContext, EnsureFieldList(subContext));
TraverseAllAspects(subContext, command);
return aspectFound.value;
}