Exemple #1
0
 /// <summary>
 /// 修改单位
 /// </summary>
 /// <param name="u"></param>
 /// <returns></returns>
 public int UpdUnit(DT_WorkUnit w)
 {
     return(ef.Update(w));
 }
Exemple #2
0
 /// <summary>
 /// 删除单位
 /// </summary>
 /// <param name="u"></param>
 /// <returns></returns>
 public int DelUnit(DT_WorkUnit w)
 {
     return(ef.Remove(w));
 }
Exemple #3
0
        ///// <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));
        }