Example #1
0
        protected Criteria BuildCriteriaByCtx()
        {
            Criteria ct = new Criteria(CriteriaType.None);

            foreach (QueryField qf in Ctx.QueryFields)
            {
                ct.Add(ModelDBHelper.ConvertOperationType(qf.Operator), qf.Column.Name, qf.Value);
            }
            return(ct);
        }