public Data.DataTable GetDataTable(string suffix, WordTemplateLogic.WordContext context) { var userQuery = Database.Query <UserQueryEntity>().SingleEx(a => a.Guid == Guid.Parse((suffix.TryBefore("\n") ?? suffix).Trim())); using (CurrentEntityConverter.SetCurrentEntity(context.GetEntity())) { var request = UserQueryLogic.ToQueryRequest(userQuery); ResultTable result = QueryLogic.Queries.ExecuteQuery(request); return(result.ToDataTable()); } }
public Data.DataTable GetDataTable(string suffix, WordTemplateLogic.WordContext context) { return(GetDataTable(suffix, context.GetEntity())); }