/// <summary> /// 更新一条数据 /// </summary> /// <param name="model"></param> public int UpdateCarCrossGateRecordById(ServCarCrossGateRecordModel model) { int result = mapContext.Update("UpdateCarCrossGateRecord", model); return(result); }
public bool UpdateEntity(int id, ServCarCrossGateRecordModel newentity) { throw new NotImplementedException(); }
/// <summary> /// 增加一条数据 /// </summary> /// <param name="entity"></param> public int AddEntity(ServCarCrossGateRecordModel entity) { int id = (int)mapContext.Insert("InsertCarCrossGateRecord", entity); return(id); }