public QueryExpression(string EntityName = null, ColumnSet columnSet = null)
 {
     ColumnSet = new ColumnSet();
     if (columnSet != null)
         this.ColumnSet = columnSet;
     this.Criteria = new FilterExpression();
     this.LinkEntities = new DataCollection<LinkEntity>();
     this.Orders = new DataCollection<OrderExpression>();
     this.PageInfo = new PagingInfo();
     this.EntityName = EntityName;
 }
 public QueryByAttribute()
 {
     Attributes = new DataCollection<string>();
     ColumnSet = new ColumnSet();
     Orders = new DataCollection<OrderExpression>();
     Values = new DataCollection<object>();
 }
 static internal ColumnSet LoadFromXml(XElement item)
 {
     ColumnSet columnSet = new ColumnSet()
     {
         AllColumns = Util.LoadFromXml<bool>(item.Element(Util.ns.a + "AllColumns"))
     };
     foreach (XElement Column in item.Element(Util.ns.a + "Columns").Elements(Util.ns.f + "string"))
     {
         columnSet.Columns.Add(Column.Value);
     }
     return columnSet;
 }
 public LinkEntity()
 {
     Columns = new ColumnSet();
     LinkCriteria = new FilterExpression();
     LinkEntities = new DataCollection<LinkEntity>();
 }
 public LinkEntity()
 {
     Columns      = new ColumnSet();
     LinkCriteria = new FilterExpression();
     LinkEntities = new DataCollection <LinkEntity>();
 }