/// <summary> /// 获得数据列表 /// </summary> public List <ALS.Model.actiontitle> DataTableToList(DataTable dt) { List <ALS.Model.actiontitle> modelList = new List <ALS.Model.actiontitle>(); int rowsCount = dt.Rows.Count; if (rowsCount > 0) { ALS.Model.actiontitle model = null; for (int n = 0; n < rowsCount; n++) { model = (ALS.Model.actiontitle)dal.DataRowToModel(dt.Rows[n]); if (model != null) { modelList.Add(model); } } } return(modelList); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(ALS.Model.actiontitle model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public bool Add(ALS.Model.actiontitle model) { return(dal.Add(model)); }