Beispiel #1
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        /// <param name="model"></param>
        public int UpdateRoomInfoById(ServRoomInfoModel model)
        {
            int result = mapContext.Update("UpdateRoomInfo", model);

            return(result);
        }
Beispiel #2
0
 public bool UpdateEntity(int id, ServRoomInfoModel newentity)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        /// <param name="entity"></param>
        public int AddEntity(ServRoomInfoModel entity)
        {
            int id = (int)mapContext.Insert("InsertRoomInfo", entity);

            return(id);
        }