public override void LoadFromXml(XmlElement xml) { base.LoadFromXml(xml); var xe = xml.FindElement("Expr"); if (xe != null) { Expr = DmlfExpression.Load(xe); } }
public static DmlfSortOrderCollection BuildFromExpression(DmlfExpression expr) { return(new DmlfSortOrderCollection { new DmlfSortOrderItem { Expr = expr, OrderType = DmlfSortOrderType.Ascending } }); }
public int GetExpressionIndex(DmlfExpression expr) { for (int i = 0; i < Count; i++) { if (this[i].Expr == expr) { return(i); } } return(-1); }
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); } }