예제 #1
0
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public static T GetModel(string zj)
        {
            Bridge <T> bll = new Bridge <T>();

            return(bll.GetModel(zj));
        }
예제 #2
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public static bool Update(T model)
        {
            Bridge <T> bll = new Bridge <T>();

            return(bll.Update(model));
        }
예제 #3
0
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public static bool Delete(string zj)
        {
            Bridge <T> bll = new Bridge <T>();

            return(bll.Delete(zj));
        }
예제 #4
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public static void Add(T model)
        {
            Bridge <T> bll = new Bridge <T>();

            bll.Add(model);
        }