/// <summary> /// 修改单位 /// </summary> /// <param name="u"></param> /// <returns></returns> public int UpdUnit(DT_WorkUnit w) { return(ef.Update(w)); }
/// <summary> /// 删除单位 /// </summary> /// <param name="u"></param> /// <returns></returns> public int DelUnit(DT_WorkUnit w) { return(ef.Remove(w)); }
///// <summary> ///// 查询出单位所有id ///// </summary> ///// <returns></returns> // public List<int> SelectIds() // { // return ef.Select<DT_WorkUnit>().Select(a => a.Id).ToList(); // } /// <summary> /// 添加单位 /// </summary> /// <param name="u"></param> /// <returns></returns> public int AddUnit(DT_WorkUnit w) { return(ef.Add(w)); }