Beispiel #1
0
        public static int Update(string tablename, string setstr, string where)
        {
            int result = new DAL.CommonData <T>().Update(tablename, setstr, where);

            return(result);
        }
Beispiel #2
0
        /// <summary>
        /// 向表插入一行数据
        /// </summary>
        /// <param name="t"></param>
        /// <param name="returnType"></param>
        /// <returns></returns>
        public static int Insert(T t, ReturnTypes returnType)
        {
            var rel = new DAL.CommonData <T>().Insert(t, returnType);

            return(rel);
        }
Beispiel #3
0
        /// <summary>
        /// 根据主键判断是否存在记录
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        public static bool IsExist(string where)
        {
            bool result = new DAL.CommonData <T>().IsExist(where);

            return(result);
        }
Beispiel #4
0
        public static DataTable GetPager(string WhereClause, string OrderBy, int PageIndex, int PageSize, ref int TotalRows, string StoredProcedure)
        {
            var list = new DAL.CommonData <T>().GetPager(WhereClause, OrderBy, PageIndex, PageSize, ref TotalRows, StoredProcedure);

            return(list);
        }
Beispiel #5
0
        public static DataTable GetPager(int pagesize, int currentpage, string where, string orderby, string columns, ref int record)
        {
            var list = new DAL.CommonData <T>().GetPager(pagesize, currentpage, where, orderby, columns, ref record);

            return(list);
        }
Beispiel #6
0
        public static DataTable GetTable(string sqlText)
        {
            var list = new DAL.CommonData <T>().GetTable(sqlText);

            return(list);
        }