Пример #1
0
        /// <summary>
        /// Creates a teriary between operation for the value and the min and max clauses
        /// </summary>
        /// <param name="value"></param>
        /// <param name="min"></param>
        /// <param name="max"></param>
        /// <returns></returns>
        public static DBComparison Between(DBClause value, DBClause min, DBClause max)
        {
            DBTertiaryComparisonRef tri = new DBTertiaryComparisonRef();

            tri.MinValue         = min;
            tri.MaxValue         = max;
            tri.TertiaryOperator = TertiaryOp.Between;
            tri.CompareTo        = value;

            return(tri);
        }
Пример #2
0
        internal static DBComparison Between()
        {
            DBTertiaryComparisonRef comp = new DBTertiaryComparisonRef();

            comp.MinValue         = null;
            comp.MaxValue         = null;
            comp.CompareTo        = null;
            comp.TertiaryOperator = TertiaryOp.Between;

            return(comp);
        }