Пример #1
0
 public static AdminDatasetQuery AdminDatasetQuery(this AdminDatasetQueryDTO q)
 {
     if (q == null)
     {
         return(null);
     }
     return(new AdminDatasetQuery
     {
         Id = q.Id,
         UniversalId = DatasetQueryUrn.From(q.UniversalId),
         Shape = q.Shape,
         Name = q.Name,
         CategoryId = q.CategoryId,
         Description = q.Description,
         SqlStatement = q.SqlStatement,
         IsEncounterBased = q.IsEncounterBased,
         SqlFieldDate = q.SqlFieldDate,
         SqlFieldValueString = q.SqlFieldValueString,
         SqlFieldValueNumeric = q.SqlFieldValueNumeric,
         Schema = q.Schema,
         Created = q.Created,
         CreatedBy = q.CreatedBy,
         Updated = q.Updated,
         UpdatedBy = q.UpdatedBy,
         Tags = q.Tags,
         Constraints = q.Constraints
     });
 }
Пример #2
0
 public static AdminDatasetQuery AdminDatasetQuery(this AdminDatasetQueryDTO q)
 {
     if (q == null)
     {
         return(null);
     }
     return(new AdminDatasetQuery
     {
         Id = q.Id,
         UniversalId = DatasetQueryUrn.From(q.UniversalId),
         Shape = q.Shape,
         Name = q.Name,
         CategoryId = q.CategoryId,
         Description = q.Description,
         SqlStatement = q.SqlStatement,
         Created = q.Created,
         CreatedBy = q.CreatedBy,
         Updated = q.Updated,
         UpdatedBy = q.UpdatedBy,
         Tags = q.Tags,
         Constraints = q.Constraints
     });
 }