Esempio n. 1
0
        /*===========================================================*/

        /// <summary>設定欄位值與查詢條件</summary>
        IWhereParams IWhereParams.SetValues <TValue>(string name, WhereOperator oper, TValue[] values)
        {
            if (values == null)
            {
                values = new TValue[0];
            }

            string[] strings = values.Convert <string>().ToArray();
            _source[name] = new WhereParamsPair(oper, strings);
            return(this);
        }
Esempio n. 2
0
        /// <summary>設定欄位值與查詢條件</summary>
        private WhereParams <TParams> setValues <TProperty>(LambdaExpression lambdaExpr, WhereOperator oper, params TProperty[] values)
        {
            if (values == null)
            {
                values = new TProperty[0];
            }
            string[] strings = values.Convert <string>().ToArray();

            string name = getPropertyName(lambdaExpr);

            _source[name] = new WhereParamsPair(oper, strings);
            return(this);
        }