public object Search(ConfigAccess config, string q, int?id, int snippetLength, bool spaceAsWildcard, string highlightTag, int tabChars) { string whereStatement = GetWhereStatement(q.Replace("'", "''"), id, spaceAsWildcard); DataView dataView = config.GetRows(ViewName, whereStatement, Maps.Instance.GetMap().GetConfigDatabase().ConnectionString); if (dataView.Count == 0) { return(null); } return(GetResults(dataView, q, snippetLength, highlightTag, tabChars)); }