public static void UpdateEntity(AgentRelation UpdateAgentRelation) { using (DistributionContext context = new DistributionContext()) { AgentRelation ag = context.t_agent_relation.Find(UpdateAgentRelation.c_id); CommLogic.DeepClone <AgentRelation>(ag, UpdateAgentRelation); context.SaveChanges(); } }
public static void UpdateEntity(PublicNotice UpdateProduct) { using (DistributionContext context = new DistributionContext()) { PublicNotice ag = context.t_public_notice.Find(UpdateProduct.F_Id); CommLogic.DeepClone <PublicNotice>(ag, UpdateProduct); context.SaveChanges(); } }
public static void UpdateEntity(Order UpdateOrder) { using (DistributionContext context = new DistributionContext()) { Order ag = context.t_order.Find(UpdateOrder.F_Id); CommLogic.DeepClone <Order>(ag, UpdateOrder); context.SaveChanges(); } }
public static void UpdateEntity(LevelConfig UpdateProduct) { using (DistributionContext context = new DistributionContext()) { LevelConfig ag = context.t_level_config.Find(UpdateProduct.c_id); CommLogic.DeepClone <LevelConfig>(ag, UpdateProduct); context.SaveChanges(); } }
public static void UpdateEntity(ExpApply UpdateExpApply) { using (DistributionContext context = new DistributionContext()) { ExpApply ag = context.t_exp_apply.Find(UpdateExpApply.F_Id); CommLogic.DeepClone <ExpApply>(ag, UpdateExpApply); context.SaveChanges(); } }
public static void UpdateEntity(CommConfig UpdateCommConfig) { using (DistributionContext context = new DistributionContext()) { CommConfig ag = context.t_common_config.Find(UpdateCommConfig.c_id); CommLogic.DeepClone <CommConfig>(ag, UpdateCommConfig); context.SaveChanges(); } }
public static void UpdateEntity(ScoreDetail UpdateScoreDetail) { using (DistributionContext context = new DistributionContext()) { ScoreDetail ag = context.t_score_detail.Find(UpdateScoreDetail.c_id); CommLogic.DeepClone <ScoreDetail>(ag, UpdateScoreDetail); context.SaveChanges(); } }
public static void UpdateEntity(ScoreCash UpdateScoreCash) { using (DistributionContext context = new DistributionContext()) { ScoreCash ag = context.t_score_cash.Find(UpdateScoreCash.F_Id); CommLogic.DeepClone<ScoreCash>(ag, UpdateScoreCash); ag.F_LastModifyTime = DateTime.Now; context.SaveChanges(); } }
public static AgentRelation FindEntity(Expression <Func <AgentRelation, bool> > predicate) { return(CommLogic.FindEntity <AgentRelation>(predicate)); }
public static PublicNotice FindEntity(Expression <Func <PublicNotice, bool> > predicate) { return(CommLogic.FindEntity <PublicNotice>(predicate)); }
public static Order FindEntity(Expression <Func <Order, bool> > predicate) { return(CommLogic.FindEntity <Order>(predicate)); }
public static Product FindEntity(Expression <Func <Product, bool> > predicate) { return(CommLogic.FindEntity <Product>(predicate)); }
public static ExpApply FindEntity(Expression <Func <ExpApply, bool> > predicate) { return(CommLogic.FindEntity <ExpApply>(predicate)); }
public static CommConfig FindEntity(Expression <Func <CommConfig, bool> > predicate) { return(CommLogic.FindEntity <CommConfig>(predicate)); }
public static ScoreDetail FindEntity(Expression <Func <ScoreDetail, bool> > predicate) { return(CommLogic.FindEntity <ScoreDetail>(predicate)); }
public static ScoreCash FindEntity(Expression<Func<ScoreCash, bool>> predicate) { return CommLogic.FindEntity<ScoreCash>(predicate); }