Пример #1
0
        private QueryCondition BuildConditions(MarkingPeriodClassQuery query)
        {
            var res = new AndQueryCondition();

            if (query.ClassId.HasValue)
            {
                res.Add(MarkingPeriodClass.CLASS_REF_FIELD, query.ClassId);
            }
            if (query.MarkingPeriodId.HasValue)
            {
                res.Add(MarkingPeriodClass.MARKING_PERIOD_REF_FIELD, query.MarkingPeriodId);
            }
            return(res);
        }
Пример #2
0
 public bool Exists(MarkingPeriodClassQuery query)
 {
     return(Exists <MarkingPeriodClass>(BuildConditions(query)));
 }
Пример #3
0
 public MarkingPeriodClass GetMarkingPeriodClass(MarkingPeriodClassQuery query)
 {
     return(SelectOne <MarkingPeriodClass>(BuildConditions(query)));
 }
Пример #4
0
 public IList <MarkingPeriodClass> GetList(MarkingPeriodClassQuery query)
 {
     return(SelectMany <MarkingPeriodClass>(BuildConditions(query)));
 }
Пример #5
0
 public void Delete(MarkingPeriodClassQuery query)
 {
     SimpleDelete(BuildConditions(query));
 }