Exemple #1
0
        public override void LoadFromXml(XmlElement xml)
        {
            base.LoadFromXml(xml);
            var xe = xml.FindElement("Expr");

            if (xe != null)
            {
                Expr = DmlfExpression.Load(xe);
            }
        }
Exemple #2
0
 public static DmlfSortOrderCollection BuildFromExpression(DmlfExpression expr)
 {
     return(new DmlfSortOrderCollection
     {
         new DmlfSortOrderItem
         {
             Expr = expr,
             OrderType = DmlfSortOrderType.Ascending
         }
     });
 }
Exemple #3
0
 public int GetExpressionIndex(DmlfExpression expr)
 {
     for (int i = 0; i < Count; i++)
     {
         if (this[i].Expr == expr)
         {
             return(i);
         }
     }
     return(-1);
 }
Exemple #4
0
        public override void LoadFromXml(XmlElement xml)
        {
            base.LoadFromXml(xml);
            var xl = xml.FindElement("LeftExpr");

            if (xl != null)
            {
                LeftExpr = DmlfExpression.Load(xl);
            }
            var xr = xml.FindElement("RightExpr");

            if (xr != null)
            {
                RightExpr = DmlfExpression.Load(xr);
            }
        }