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