public QueryHelp(object queryName, CultureInfo ci, QueryHelpEntity?entity) { QueryName = queryName; Culture = ci; Info = HelpGenerator.GetQueryHelp(QueryLogic.Queries.GetQuery(queryName).Core.Value); var cols = entity?.Columns.ToDictionary(a => a.ColumnName, a => a.Description); Columns = QueryLogic.Queries.GetQuery(queryName).Core.Value.StaticColumns.ToDictionary( cf => cf.Name, cf => new QueryColumnHelp(cf, cf.DisplayName(), HelpGenerator.GetQueryColumnHelp(cf), cols?.TryGetCN(cf.Name))); DBEntity = entity; UserDescription = entity?.Description; }