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