/// <summary>
 /// The Constructor
 /// </summary>
 /// <param name="name">Physical Column Name</param>
 /// <param name="ordinal">The Orderinal position in the Table or View</param>
 /// <param name="type">The .NET Data Type of the Column</param>
 /// <param name="esType">The EntitySpaces data type</param>
 public esColumnMetadata(string name, int ordinal, Type type, esSystemType esType)
 {
     this.name    = name;
     this.Ordinal = ordinal;
     this.Type    = type;
     this.esType  = esType;
 }
 /// <summary>
 /// The esQueryItem class is dynamically created by your
 /// BusinessEntity's DynamicQuery mechanism.
 /// </summary>
 /// <param name="query">The esDynamicQueryTransport passed in via DynamicQuery</param>
 /// <param name="columnName">The columnName passed in via DynamicQuery</param>
 /// <param name="datatype">The esSystemType</param>
 public esQueryItem(esDynamicQuerySerializable query, string columnName, esSystemType datatype)
 {
     this.query = query;
     this.Column.Query = query;
     this.Column.Name = columnName;
     this.Column.Query.es.JoinAlias = query.es.JoinAlias;
     this.Column.Datatype = datatype;
 }
 private static esQueryItem ModuloOperator(esQueryItem queryItem, object literal, esSystemType literalType, bool itemFirst)
 {
     esQueryItem qi = new esQueryItem();
     qi.Expression.SelectItem1 = queryItem;
     qi.Expression.Operator = esArithmeticOperator.Modulo;
     qi.Expression.Literal = literal;
     qi.Expression.LiteralType = literalType;
     qi.Expression.ItemFirst = itemFirst;
     return qi;
 }
        private static esComparison GreaterThanOrEqual(esQueryItem queryItem, object literal, esSystemType literalType, bool itemFirst)
        {
            esComparison wi = new esComparison(queryItem.query);
            wi.Operand = esComparisonOperand.GreaterThanOrEqual;

            wi.data.Column = queryItem.Column;
            wi.data.Value = literal;
            wi.data.Expression = queryItem.Expression;
            wi.data.ItemFirst = itemFirst;

            wi.SubOperators = queryItem.SubOperators;
            return wi;
        }
 /// <summary>
 /// The Constructor
 /// </summary>
 /// <param name="name">Physical Column Name</param>
 /// <param name="ordinal">The Orderinal position in the Table or View</param>
 /// <param name="type">The .NET Data Type of the Column</param>
 /// <param name="esType">The EntitySpaces data type</param>
 public esColumnMetadata(string name, int ordinal, Type type, esSystemType esType)
 {
     this.name = name;
     this.Ordinal = ordinal;
     this.Type = type;
     this.esType = esType;
 }