Пример #1
0
    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());
        }
    }
Пример #2
0
 public Data.DataTable GetDataTable(string suffix, WordTemplateLogic.WordContext context)
 {
     return(GetDataTable(suffix, context.GetEntity()));
 }