Exemplo n.º 1
0
 /// <summary>
 /// 添加宿舍楼信息
 /// </summary>
 /// <param name="Building"></param>
 /// <returns></returns>
 public bool Add(Entity.T_Building Building)
 {
     return(BuildingDb.Insert(Building));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 通过ID删除
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public bool Delete(int id)
 {
     return(BuildingDb.DeleteById(id));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 更新宿舍楼信息
 /// </summary>
 /// <param name="Building"></param>
 /// <returns></returns>
 public bool Update(Entity.T_Building Building)
 {
     return(BuildingDb.Update(Building));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 通过ID查询
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Entity.T_Building FindById(int id)
 {
     return(BuildingDb.GetById(id));
 }