/// <summary> /// 更新日工作时间{日工作时间}对象(即:一条记录 /// </summary> public int Update(CfgWorktime cfgWorktime) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new CfgWorktimeRepository(dbContext).Update(cfgWorktime)); } }
/// <summary> /// 添加日工作时间{日工作时间}对象(即:一条记录 /// </summary> public long Add(CfgWorktime cfgWorktime) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new CfgWorktimeRepository(dbContext).Add(cfgWorktime)); } }
/// <summary> /// 更新日工作时间{日工作时间}对象(即:一条记录 /// </summary> public int Update(CfgWorktime cfgWorktime) { return(Update <CfgWorktime>(cfgWorktime)); }
/// <summary> /// 添加日工作时间{日工作时间}对象(即:一条记录 /// </summary> public long Add(CfgWorktime cfgWorktime) { return(Add <CfgWorktime>(cfgWorktime)); }