Beispiel #1
0
        /// <summary>
        /// 动态Sql拼接
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        public WhereHelper <T> Where <T>(Expression <Func <T, bool> > where) where T : class, new()
        {
            var whereHelper = new WhereHelper <T>(this);

            whereHelper.Where(where);
            return(whereHelper);
        }
Beispiel #2
0
        /// <summary>
        /// 动态Sql拼接,
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="where"></param>
        /// <returns></returns>
        public WhereHelper <T> Where <T>(string where) where T : class, new()
        {
            var whereHelper = new WhereHelper <T>(this);

            whereHelper.Where(where);

            return(whereHelper);
        }