示例#1
0
        public ModuleInfo(string name)
        {
            if (string.IsNullOrEmpty(name)) throw new ArgumentNullException("name");
            Name = name;
            query = new SqlQuery(Main)
                .SetFirstResult(0)
                .SetMaxResults(Limit - 1);

            match = new MatchSphinx();
        }
示例#2
0
        public ModuleInfo(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }
            Name  = name;
            query = new SqlQuery(Main)
                    .SetFirstResult(0)
                    .SetMaxResults(Limit - 1);

            match = new MatchSphinx();
        }
示例#3
0
        public ModuleInfo(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }

            match = new MatchSphinx();
            query = new SqlQuery();
            Name  = name;
            var tenant = CoreContext.TenantManager.GetCurrentTenant(false);

            additionalAttributes = new List <ModuleAttr>();

            if (tenant != null)
            {
                AddAttribute("tenant_id", tenant.TenantId);
            }
        }