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