示例#1
0
 public Collection(string dbPath, IObjectSerializer <T> serializer)
 {
     _serializer   = serializer;
     _path         = dbPath;
     _lock         = new ReaderWriterLockSlim();
     _docConverter = new DocumentConverter <T>();
 }
示例#2
0
 internal CollectionKeysQuery(
     DB database,
     ReaderWriterLockSlim readerLock,
     MemberInfo memberInfo,
     IObjectSerializer <T> objectSerializer,
     DocumentConverter <T> documentConverter) :
     base(database, readerLock, memberInfo, objectSerializer, documentConverter)
 {
 }
示例#3
0
        public void Dispose()
        {
            _db                     = null;
            _lock                   = null;
            _memberInfo             = null;
            _objectSerializer       = null;
            _documentFieldConverter = null;

            Dispose(true);
            GC.SuppressFinalize(this);
        }
示例#4
0
 internal CollectionScanQuery(
     DB database,
     ReaderWriterLockSlim readerLock,
     MemberInfo memberInfo,
     IObjectSerializer <T> objectSerializer,
     DocumentConverter <T> documentConverter) :
     base(database, readerLock, memberInfo, objectSerializer, documentConverter)
 {
     _limit     = int.MaxValue;
     _direction = -1;
 }
示例#5
0
 internal BaseCollectionQuery(
     DB database,
     ReaderWriterLockSlim readerLock,
     MemberInfo memberInfo,
     IObjectSerializer <T> objectSerializer,
     DocumentConverter <T> documentConverter)
 {
     _db                     = database;
     _lock                   = readerLock;
     _memberInfo             = memberInfo;
     _objectSerializer       = objectSerializer;
     _documentFieldConverter = documentConverter;
 }