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();
     }
 }
예제 #2
0
 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();
     }
 }
예제 #3
0
 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();
     }
 }
예제 #4
0
 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();
     }
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
 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();
     }
 }
예제 #7
0
 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();
     }
 }
예제 #8
0
 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));
 }
예제 #10
0
 public static PublicNotice FindEntity(Expression <Func <PublicNotice, bool> > predicate)
 {
     return(CommLogic.FindEntity <PublicNotice>(predicate));
 }
예제 #11
0
 public static Order FindEntity(Expression <Func <Order, bool> > predicate)
 {
     return(CommLogic.FindEntity <Order>(predicate));
 }
예제 #12
0
 public static Product FindEntity(Expression <Func <Product, bool> > predicate)
 {
     return(CommLogic.FindEntity <Product>(predicate));
 }
예제 #13
0
 public static ExpApply FindEntity(Expression <Func <ExpApply, bool> > predicate)
 {
     return(CommLogic.FindEntity <ExpApply>(predicate));
 }
예제 #14
0
 public static CommConfig FindEntity(Expression <Func <CommConfig, bool> > predicate)
 {
     return(CommLogic.FindEntity <CommConfig>(predicate));
 }
예제 #15
0
 public static ScoreDetail FindEntity(Expression <Func <ScoreDetail, bool> > predicate)
 {
     return(CommLogic.FindEntity <ScoreDetail>(predicate));
 }
예제 #16
0
 public static ScoreCash FindEntity(Expression<Func<ScoreCash, bool>> predicate)
 {
     return CommLogic.FindEntity<ScoreCash>(predicate);
 }