Пример #1
0
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //public bool Delete(int id)
        //{

        //    return dal.Delete(id);
        //}

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int id)
        {
            Model.dataset ds         = new DataAngine_Set.Model.dataset();
            dataset       datasetbll = new dataset();

            ds = datasetbll.GetModel(id);
            return(dal.Delete(ds));
        }
Пример #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(DataAngine_Set.Model.dataset model)
 {
     return(dal.Update(model));
 }
Пример #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(DataAngine_Set.Model.dataset model)
 {
     return(dal.Add(model));
 }