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

            Dispose(true);
            GC.SuppressFinalize(this);
        }
Esempio n. 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;
 }
Esempio n. 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;
 }