///// <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)); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(DataAngine_Set.Model.dataset model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public bool Add(DataAngine_Set.Model.dataset model) { return(dal.Add(model)); }