/// <summary>
        /// 条件模糊查询
        /// </summary>
        /// <param name="condition">查询条件</param>
        /// <returns>查询结果</returns>
        public IList <Meterial> SelectLike(dynamic condition)
        {
            string SQL       = SQLBuilder.BuildSelectLikeSQL(condition, TableName);
            var    meterials = Connection.QuerySql <Meterial>(SQL, (object)condition);

            return(meterials);
        }
        /// <summary>
        /// 条件模糊查询
        /// </summary>
        /// <param name="condition">查询条件</param>
        /// <returns>查询结果</returns>
        public IList <Employee> SelectLike(dynamic condition)
        {
            string SQL       = SQLBuilder.BuildSelectLikeSQL(condition, TableName);
            var    employees = Connection.QuerySql <Employee>(SQL, (object)condition);

            return(employees);
        }
Beispiel #3
0
        /// <summary>
        /// 条件模糊查询
        /// </summary>
        /// <param name="condition">查询条件</param>
        /// <returns>查询结果</returns>
        public IList <Dishes> SelectLike(dynamic condition)
        {
            string SQL     = SQLBuilder.BuildSelectLikeSQL(condition, TableName);
            var    dishess = Connection.QuerySql <Dishes>(SQL, (object)condition);

            return(dishess);
        }
Beispiel #4
0
        /// <summary>
        /// 条件模糊查询
        /// </summary>
        /// <param name="condition">查询条件</param>
        /// <returns>查询结果</returns>
        public IList <Order> SelectLike(dynamic condition)
        {
            string SQL    = SQLBuilder.BuildSelectLikeSQL(condition, TableName);
            var    orders = Connection.QuerySql <Order>(SQL, (object)condition);

            return(orders);
        }