public Collection(string dbPath, IObjectSerializer <T> serializer) { _serializer = serializer; _path = dbPath; _lock = new ReaderWriterLockSlim(); _docConverter = new DocumentConverter <T>(); }
internal CollectionKeysQuery( DB database, ReaderWriterLockSlim readerLock, MemberInfo memberInfo, IObjectSerializer <T> objectSerializer, DocumentConverter <T> documentConverter) : base(database, readerLock, memberInfo, objectSerializer, documentConverter) { }
public void Dispose() { _db = null; _lock = null; _memberInfo = null; _objectSerializer = null; _documentFieldConverter = null; Dispose(true); GC.SuppressFinalize(this); }
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; }
internal BaseCollectionQuery( DB database, ReaderWriterLockSlim readerLock, MemberInfo memberInfo, IObjectSerializer <T> objectSerializer, DocumentConverter <T> documentConverter) { _db = database; _lock = readerLock; _memberInfo = memberInfo; _objectSerializer = objectSerializer; _documentFieldConverter = documentConverter; }