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