예제 #1
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();
     }
 }
예제 #2
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();
     }
 }
예제 #3
0
 public static void UpdateEntity(Product UpdateProduct)
 {
     using (DistributionContext context = new DistributionContext())
     {
         Product ag = context.t_product.Find(UpdateProduct.F_Id);
         CommLogic.DeepClone <Product>(ag, UpdateProduct);
         context.SaveChanges();
     }
 }
예제 #4
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();
     }
 }
예제 #5
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();
     }
 }
예제 #6
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();
     }
 }
예제 #7
0
 public static void UpdateEntity(Agent UpdateAgent)
 {
     using (DistributionContext context = new DistributionContext())
     {
         Agent ag = context.t_agent.Find(UpdateAgent.c_id);
         CommLogic.DeepClone <Agent>(ag, UpdateAgent);
         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();
     }
 }