예제 #1
0
 public void Update(OnboardToken token)
 {
     OnboardTokenDb d = new OnboardTokenDb(token);
     context.AttachTo(TableName, d, null);
     context.UpdateObject(d);
     context.SaveChangesWithRetries();
 }
예제 #2
0
 public void Remove(OnboardToken token)
 {
     OnboardTokenDb d = new OnboardTokenDb(token);
     context.AttachTo(TableName, d);
     context.DeleteObject(d);
     context.SaveChangesWithRetries();
 }