예제 #1
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        /// <param name="model"></param>
        public int UpdateCarCrossGateRecordById(ServCarCrossGateRecordModel model)
        {
            int result = mapContext.Update("UpdateCarCrossGateRecord", model);

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

            return(id);
        }