Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }