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; }
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; }