Exemple #1
0
        public BaseDatabase(string name, ISerializer <T> modelSerializer)
        {
            this.name            = name;
            this.ModelSerializer = modelSerializer;

            this.IndexUtils = new IndexUtility <T>(this);
            this.isDisposed = false;
        }
Exemple #2
0
 public DatabaseQuery(BaseDatabase <T> database, int estimatedCount = 0)
 {
     this.database            = database;
     this.indexUtils          = database.IndexUtils;
     this.indexes             = new List <uint>(estimatedCount);
     this.tempIndexes         = new List <uint>(estimatedCount);
     this.cachedData          = new Dictionary <uint, T>(estimatedCount / 2);
     this.isAscending         = true;
     this.isInitiallyIncluded = false;
 }