public Index(IndexRepository repository, string name, bool multiValue, string builder, string[] dependencies = null) : base(multiValue, builder, dependencies) { this.repository = repository; this.session = repository.GetSession(); this.Name = name; this.Table = repository.IndexTableName(name); try { this.Compile(); } catch (Exception e) { throw new IndexStoreException("Could not compile index '" + name + "': " + e.Message); } }
public Index(IndexRepository repository) : base(false, null) { this.repository = repository; this.session = repository.GetSession(); }