Exemplo n.º 1
0
 private void UpdateAskLeg(AskLeg leg, InfoExchangeContext context)
 {
     leg.Ask = null;
     context.AskLegs.Attach(leg);
     context.Entry(leg).State = EntityState.Modified;
     context.SaveChanges();
 }
Exemplo n.º 2
0
 public void UpadateAskLeg(AskLeg leg)
 {
     using (var context = new InfoExchangeContext())
     {
         UpadateAskLeg(leg);
     }
 }