예제 #1
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 /// <param name="entity"></param>
 public int AddEntity(BaseCarTypeModel entity)
 {
     try
     {
         int id = (int)mapContext.Insert("InsertCarType", entity);
         return(id);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 /// <param name="model"></param>
 public int UpdateBaseCarTypeById(BaseCarTypeModel model)
 {
     try
     {
         int result = mapContext.Update("UpdateCarType", model);
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #3
0
 public bool UpdateEntity(int id, BaseCarTypeModel newentity)
 {
     throw new NotImplementedException();
 }