/// <summary> /// 更新接口配置{接口配置}对象(即:一条记录 /// </summary> public int Update(CfgInterface cfgInterface) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new CfgInterfaceRepository(dbContext).Update(cfgInterface)); } }
/// <summary> /// 添加接口配置{接口配置}对象(即:一条记录 /// </summary> public long Add(CfgInterface cfgInterface) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new CfgInterfaceRepository(dbContext).Add(cfgInterface)); } }
/// <summary> /// 更新接口配置{接口配置}对象(即:一条记录 /// </summary> public int Update(CfgInterface cfgInterface) { return(Update <CfgInterface>(cfgInterface)); }
/// <summary> /// 添加接口配置{接口配置}对象(即:一条记录 /// </summary> public long Add(CfgInterface cfgInterface) { return(Add <CfgInterface>(cfgInterface)); }