本文整理汇总了C#中Db4objects类的典型用法代码示例。如果您正苦于以下问题:C# Db4objects类的具体用法?C# Db4objects怎么用?C# Db4objects使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Db4objects类属于命名空间,在下文中一共展示了Db4objects类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ClassInfo
public ClassInfo(bool isAbstract, Type superClass, Db4objects.Db4o.Reflect.Self.FieldInfo
[] fieldInfo)
{
_isAbstract = isAbstract;
_superClass = superClass;
_fieldInfo = fieldInfo;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:ClassInfo.cs
示例2: DeleteContextImpl
public DeleteContextImpl(Db4objects.Db4o.Internal.StatefulBuffer buffer, ObjectHeader
objectHeader, IReflectClass fieldClass, Config4Field fieldConfig) : base(buffer
.Transaction(), buffer, objectHeader)
{
_fieldClass = fieldClass;
_fieldConfig = fieldConfig;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:DeleteContextImpl.cs
示例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;
}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:ClassRegistrationEventsTestCase.cs
示例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);
}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:PersistentIntegerArray.cs
示例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);
}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:NetConstructor.cs
示例6: SimpleItem
public SimpleItem(SimpleListHolder parent_, Db4objects.Drs.Tests.Data.SimpleItem
child_, string value_)
{
parent = parent_;
value = value_;
child = child_;
}
开发者ID:superyfwy,项目名称:db4o,代码行数:7,代码来源:SimpleItem.cs
示例7: StatefulBuffer
public StatefulBuffer(Db4objects.Db4o.Internal.Transaction trans, int initialBufferSize
)
{
_trans = trans;
_length = initialBufferSize;
_buffer = new byte[_length];
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:StatefulBuffer.cs
示例8: NQOptimizationInfo
public NQOptimizationInfo(Db4objects.Db4o.Query.Predicate predicate, string message
, object optimized)
{
this._predicate = predicate;
this._message = message;
this._optimized = optimized;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:NQOptimizationInfo.cs
示例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;
}
开发者ID:Galigator,项目名称:db4o,代码行数:34,代码来源:FreeSlotNode.cs
示例10: ComplexFieldIndexItem
public ComplexFieldIndexItem(int foo_, int bar_, Db4objects.Db4o.Tests.Common.Fieldindex.ComplexFieldIndexItem
child_)
{
foo = foo_;
bar = bar_;
child = child_;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:ComplexFieldIndexItem.cs
示例11: TransactionalIdSystemImpl
public TransactionalIdSystemImpl(IClosure4 freespaceManager, IClosure4 globalIdSystem
, Db4objects.Db4o.Internal.Ids.TransactionalIdSystemImpl parentIdSystem)
{
_globalIdSystem = globalIdSystem;
_slotChanges = new IdSlotChanges(this, freespaceManager);
_parentIdSystem = parentIdSystem;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:TransactionalIdSystemImpl.cs
示例12: DefragmentContextImpl
public DefragmentContextImpl(Db4objects.Db4o.Internal.DefragmentContextImpl parentContext
, ObjectHeader header)
{
_source = parentContext._source;
_target = parentContext._target;
_services = parentContext._services;
_objectHeader = header;
}
开发者ID:erdincay,项目名称:db4o,代码行数:8,代码来源:DefragmentContextImpl.cs
示例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);
}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:BTreeNodeSearchResult.cs
示例14: ContainsTheSame
public bool ContainsTheSame(Db4objects.Db4o.Internal.ByteArrayBuffer other)
{
if (other != null)
{
return Arrays4.Equals(_buffer, other._buffer);
}
return false;
}
开发者ID:superyfwy,项目名称:db4o,代码行数:8,代码来源:ByteArrayBuffer.cs
示例15: Transaction
public Transaction(ObjectContainerBase container, Db4objects.Db4o.Internal.Transaction
systemTransaction, IReferenceSystem referenceSystem)
{
// contains DeleteInfo nodes
_container = container;
_systemTransaction = systemTransaction;
_referenceSystem = referenceSystem;
}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:Transaction.cs
示例16: QQueryBase
protected QQueryBase(Db4objects.Db4o.Internal.Transaction a_trans, QQuery a_parent
, string a_field)
{
_this = Cast(this);
_trans = a_trans;
i_parent = a_parent;
i_field = a_field;
}
开发者ID:superyfwy,项目名称:db4o,代码行数:8,代码来源:QQueryBase.cs
示例17: OnEvent
public void OnEvent(object sender, Db4objects.Db4o.Events.CancellableObjectEventArgs
objectInfo)
{
IObjectContainer container = ((CancellableObjectEventArgs)objectInfo).ObjectContainer
();
// this crashes if the MetaInfoWithEnum-class is unknown!
container.Query(typeof(QueryInCallBackCSCallback.MetaInfo));
}
开发者ID:superyfwy,项目名称:db4o,代码行数:8,代码来源:QueryInCallBackCSCallback.cs
示例18: MethodCallValue
public MethodCallValue(IMethodRef method, Db4objects.Db4o.Instrumentation.Api.CallingConvention
callingConvention, IComparisonOperandAnchor parent, IComparisonOperand[] args) :
base(parent)
{
_method = method;
_args = args;
_callingConvention = callingConvention;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:8,代码来源:MethodCallValue.cs
示例19: Diff
public Diff(Db4objects.Db4o.Internal.ClassMetadata classMetadata)
{
if (classMetadata == null)
{
throw new ArgumentNullException();
}
_classMetadata = classMetadata;
}
开发者ID:erdincay,项目名称:db4o,代码行数:8,代码来源:HierarchyAnalyzer.cs
示例20: GenericClass
public GenericClass(GenericReflector reflector, IReflectClass delegateClass, string
name, Db4objects.Db4o.Reflect.Generic.GenericClass superclass)
{
_reflector = reflector;
_delegate = delegateClass;
_name = name;
_superclass = superclass;
_hashCode = _name.GetHashCode();
}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:GenericClass.cs
注:本文中的Db4objects类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论