コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public Index(IndexRepository repository)
     : base(false, null)
 {
     this.repository = repository;
     this.session    = repository.GetSession();
 }