本文整理汇总了C#中Db4objects类的典型用法代码示例。如果您正苦于以下问题:C# Db4objects类的具体用法?C# Db4objects怎么用?C# Db4objects使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Db4objects类属于命名空间,在下文中一共展示了Db4objects类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ClassInfo
public ClassInfo(bool isAbstract, Type superClass, Db4objects.Db4o.Reflect.Self.FieldInfo
[] fieldInfo)
{
_isAbstract = isAbstract;
_superClass = superClass;
_fieldInfo = fieldInfo;
}
示例2: DeleteContextImpl
public DeleteContextImpl(Db4objects.Db4o.Internal.StatefulBuffer buffer, ObjectHeader
objectHeader, IReflectClass fieldClass, Config4Field fieldConfig) : base(buffer
.Transaction(), buffer, objectHeader)
{
_fieldClass = fieldClass;
_fieldConfig = fieldConfig;
}
示例3: OnEvent
public void OnEvent(object sender, Db4objects.Db4o.Events.ClassEventArgs args)
{
ClassEventArgs classEventArgs = (ClassEventArgs)args;
Assert.AreEqual(typeof(ClassRegistrationEventsTestCase.Data).FullName, CrossPlatformServices
.SimpleName(classEventArgs.ClassMetadata().GetName()));
eventFlag.eventOccurred = true;
}
示例4: PersistentIntegerArray
public PersistentIntegerArray(Db4objects.Db4o.Internal.Slots.SlotChangeFactory slotChangeFactory
, ITransactionalIdSystem idSystem, int[] arr) : base(idSystem)
{
_slotChangeFactory = slotChangeFactory;
_ints = new int[arr.Length];
System.Array.Copy(arr, 0, _ints, 0, arr.Length);
}
示例5: NetConstructor
public NetConstructor(Db4objects.Db4o.Reflect.IReflector reflector, System.Reflection.ConstructorInfo
constructor)
{
this.reflector = reflector;
this.constructor = constructor;
Db4objects.Db4o.Internal.Platform4.SetAccessible(constructor);
}
示例6: SimpleItem
public SimpleItem(SimpleListHolder parent_, Db4objects.Drs.Tests.Data.SimpleItem
child_, string value_)
{
parent = parent_;
value = value_;
child = child_;
}
示例7: StatefulBuffer
public StatefulBuffer(Db4objects.Db4o.Internal.Transaction trans, int initialBufferSize
)
{
_trans = trans;
_length = initialBufferSize;
_buffer = new byte[_length];
}
示例8: NQOptimizationInfo
public NQOptimizationInfo(Db4objects.Db4o.Query.Predicate predicate, string message
, object optimized)
{
this._predicate = predicate;
this._message = message;
this._optimized = optimized;
}
示例9: RemoveGreaterOrEqual
internal static Tree RemoveGreaterOrEqual(Db4objects.Db4o.Internal.Freespace.FreeSlotNode
a_in, TreeIntObject a_finder)
{
if (a_in == null)
{
return null;
}
int cmp = a_in._key - a_finder._key;
if (cmp == 0)
{
a_finder._object = a_in;
// the highest node in the hierarchy !!!
return a_in.Remove();
}
if (cmp > 0)
{
a_in._preceding = RemoveGreaterOrEqual((Db4objects.Db4o.Internal.Freespace.FreeSlotNode
)((Tree)a_in._preceding), a_finder);
if (a_finder._object != null)
{
a_in._size--;
return a_in;
}
a_finder._object = a_in;
return a_in.Remove();
}
a_in._subsequent = RemoveGreaterOrEqual((Db4objects.Db4o.Internal.Freespace.FreeSlotNode
)((Tree)a_in._subsequent), a_finder);
if (a_finder._object != null)
{
a_in._size--;
}
return a_in;
}
示例10: ComplexFieldIndexItem
public ComplexFieldIndexItem(int foo_, int bar_, Db4objects.Db4o.Tests.Common.Fieldindex.ComplexFieldIndexItem
child_)
{
foo = foo_;
bar = bar_;
child = child_;
}
示例11: TransactionalIdSystemImpl
public TransactionalIdSystemImpl(IClosure4 freespaceManager, IClosure4 globalIdSystem
, Db4objects.Db4o.Internal.Ids.TransactionalIdSystemImpl parentIdSystem)
{
_globalIdSystem = globalIdSystem;
_slotChanges = new IdSlotChanges(this, freespaceManager);
_parentIdSystem = parentIdSystem;
}
示例12: DefragmentContextImpl
public DefragmentContextImpl(Db4objects.Db4o.Internal.DefragmentContextImpl parentContext
, ObjectHeader header)
{
_source = parentContext._source;
_target = parentContext._target;
_services = parentContext._services;
_objectHeader = header;
}
示例13: CreateIncludingRange
public virtual IBTreeRange CreateIncludingRange(Db4objects.Db4o.Internal.Btree.BTreeNodeSearchResult
end)
{
BTreePointer firstPointer = FirstValidPointer();
BTreePointer endPointer = end._foundMatch ? end._pointer.Next() : end.FirstValidPointer
();
return new BTreeRangeSingle(_transaction, _btree, firstPointer, endPointer);
}
示例14: ContainsTheSame
public bool ContainsTheSame(Db4objects.Db4o.Internal.ByteArrayBuffer other)
{
if (other != null)
{
return Arrays4.Equals(_buffer, other._buffer);
}
return false;
}
示例15: Transaction
public Transaction(ObjectContainerBase container, Db4objects.Db4o.Internal.Transaction
systemTransaction, IReferenceSystem referenceSystem)
{
// contains DeleteInfo nodes
_container = container;
_systemTransaction = systemTransaction;
_referenceSystem = referenceSystem;
}