Пример #1
0
 public List <Dictionary <string, object> > Select(
     string entity,
     string[] fieldList,
     UbFilter filter    = null,
     object orderByList = null)
 {
     return
         (RunList <RunListResponse>(
              new { entity, method = "select", fieldList, whereList = filter?.ToDictionary(), orderByList })[0]
          .ToDictionary());
 }
Пример #2
0
 public T SelectScalar <T>(string entity, string field, UbFilter filter = null, object orderByList = null)
 {
     return((T)Select(entity, new[] { field }, filter, orderByList)?[0][field]);
 }