Ejemplo n.º 1
0
        public IndexBase(string FieldOrPropertyName, string FullIndexFileName, bool unique, int keylength, int MaxCacheLevel)
        {
            this.keyType   = typeof(TKey);
            this.FieldName = FieldOrPropertyName;

            this.GetValue = Helper.ObjectHelper.GetGetValue <TValue, TKey>(FieldName);
            index         = new Btree.BtreeIndex <TKey>(this.FieldName, unique, keylength, FullIndexFileName, MaxCacheLevel);

            this.Length = index.keylength;
        }
Ejemplo n.º 2
0
        public DecimalIndex(string FieldOrPropertyName, string FullIndexFileName, bool unique, int keylength, int MaxCacheLevel)
        {
            this.keyType = typeof(decimal);

            this.FieldName = FieldOrPropertyName;


            getValue = Helper.ObjectHelper.GetGetValue <TValue, decimal>(FieldName);
            index    = new Btree.BtreeIndex <double>(this.FieldName, unique, keylength, FullIndexFileName, MaxCacheLevel);

            this.Length = index.keylength;
        }