Ejemplo n.º 1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="relation">条件关联关系</param>
        /// <param name="column">条件关联字段</param>
        public Condition(ConditionRelation relation, SearchColumn column)
        {
            this.relation = relation;

            if (column != null)
            {
                this.searchColumn = column;
                this.searchColumn.ConditionCollection.Add(this);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="relation">条件关联关系</param>
        /// <param name="column">条件关联字段</param>
        public Condition(ConditionRelation relation, SearchColumn column)
        {
            this.relation = relation;

            if (column != null)
            {
                this.searchColumn = column;
                this.searchColumn.ConditionCollection.Add(this);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public LessEqualCondition(SearchColumn column, object paramValue)
     : this(ConditionRelation.And, column, paramValue)
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">条件关联字段</param>
 public Condition(SearchColumn column) : this(ConditionRelation.And, column)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValueList">参数的值的集合</param>
 public InCondition(ConditionRelation relation, SearchColumn column, object[] paramValueList)
     : base(relation, column)
 {
     this.ParamValueList = paramValueList;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public LargeThanCondition(SearchColumn column, object paramValue)
     : this(ConditionRelation.And, column, paramValue)
 {
 }
Ejemplo n.º 7
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="sql">子查询语句</param>
 public SQLEqualCondition(SearchColumn column, string sql)
     : this(ConditionRelation.And, column, sql)
 {
 }
Ejemplo n.º 8
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">条件关联字段</param>
 public Condition(SearchColumn column)
     : this(ConditionRelation.And, column)
 {
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public NotLikeCondition(SearchColumn column, object paramValue)
     : this(ConditionRelation.And, column, paramValue)
 {
 }
Ejemplo n.º 10
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="startValue">赋值开始的值</param>
 /// <param name="endValue">赋值结束的值</param>
 public BetweenCondition(ConditionRelation relation, SearchColumn column, object startValue, object endValue)
     : base(relation, column)
 {
     this.StartValue = startValue;
     this.EndValue   = endValue;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 public IsNotNullCondition(ConditionRelation relation, SearchColumn column)
     : base(relation, column)
 {
 }
Ejemplo n.º 12
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 public IsNotNullCondition(SearchColumn column)
     : this(ConditionRelation.And, column)
 {
 }
Ejemplo n.º 13
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="startValue">赋值开始的值</param>
 /// <param name="endValue">赋值结束的值</param>
 public BetweenCondition(ConditionRelation relation, SearchColumn column, object startValue, object endValue)
     : base(relation, column)
 {
     this.StartValue = startValue;
     this.EndValue = endValue;
 }
Ejemplo n.º 14
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="startValue">赋值开始的值</param>
 /// <param name="endValue">赋值结束的值</param>
 public BetweenCondition(SearchColumn column, object startValue, object endValue)
     : this(ConditionRelation.And, column, startValue, endValue)
 {
 }
Ejemplo n.º 15
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public NotLikeCondition(SearchColumn column, object paramValue)
     : this(ConditionRelation.And, column, paramValue)
 {
 }
Ejemplo n.º 16
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValueList">参数的值的集合</param>
 public InCondition(SearchColumn column, object[] paramValueList)
     : this(ConditionRelation.And, column, paramValueList)
 {
     this.ParamValueList = paramValueList;
 }
Ejemplo n.º 17
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValueList">参数的值的集合</param>
 public InCondition(ConditionRelation relation, SearchColumn column, object[] paramValueList)
     : base(relation, column)
 {
     this.ParamValueList = paramValueList;
 }
Ejemplo n.º 18
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="startValue">赋值开始的值</param>
 /// <param name="endValue">赋值结束的值</param>
 public BetweenCondition(SearchColumn column, object startValue, object endValue)
     : this(ConditionRelation.And, column, startValue, endValue)
 {
 }
Ejemplo n.º 19
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public NotLikeCondition(ConditionRelation relation, SearchColumn column, object paramValue)
     : base(relation, column)
 {
     this.ParamValue = paramValue;
 }
Ejemplo n.º 20
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 public IsNotNullCondition(SearchColumn column)
     : this(ConditionRelation.And, column)
 {
 }
Ejemplo n.º 21
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public LargeEqualCondition(ConditionRelation relation, SearchColumn column, object paramValue)
     : base(relation, column)
 {
     this.ParamValue = paramValue;
 }
Ejemplo n.º 22
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 public IsNullCondition(ConditionRelation relation, SearchColumn column)
     : base(relation, column)
 {
 }
Ejemplo n.º 23
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="sql">子查询sql语句</param>
 public SQLEqualCondition(ConditionRelation relation, SearchColumn column, string sql)
     : base(relation, column)
 {
     this.SQL = sql;
 }
Ejemplo n.º 24
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="sql">子查询语句</param>
 public SQLInCondition(SearchColumn column, string sql)
     : this(ConditionRelation.And, column, sql)
 {
 }
Ejemplo n.º 25
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValueList">参数的值的集合</param>
 public InCondition(SearchColumn column, object[] paramValueList)
     : this(ConditionRelation.And, column, paramValueList)
 {
     this.ParamValueList = paramValueList;
 }
Ejemplo n.º 26
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="relation">关联关系</param>
 /// <param name="column">查询字段对象</param>
 /// <param name="sql">子查询语句</param>
 public SQLInCondition(ConditionRelation relation, SearchColumn column, string sql)
     : base(relation, column)
 {
     this.SQL = sql;
 }
Ejemplo n.º 27
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public LessEqualCondition(SearchColumn column, object paramValue)
     : this(ConditionRelation.And, column, paramValue)
 {
 }
Ejemplo n.º 28
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="column">查询字段对象</param>
 /// <param name="paramValue">条件的值</param>
 public LargeThanCondition(SearchColumn column, object paramValue)
     : this(ConditionRelation.And, column, paramValue)
 {
 }