Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public bool Exists(MarkingPeriodClassQuery query)
 {
     return(Exists <MarkingPeriodClass>(BuildConditions(query)));
 }
Exemplo n.º 3
0
 public MarkingPeriodClass GetMarkingPeriodClass(MarkingPeriodClassQuery query)
 {
     return(SelectOne <MarkingPeriodClass>(BuildConditions(query)));
 }
Exemplo n.º 4
0
 public IList <MarkingPeriodClass> GetList(MarkingPeriodClassQuery query)
 {
     return(SelectMany <MarkingPeriodClass>(BuildConditions(query)));
 }
Exemplo n.º 5
0
 public void Delete(MarkingPeriodClassQuery query)
 {
     SimpleDelete(BuildConditions(query));
 }