public void UpdateTestRun(TestRunTableEntity testRun) { if ((from e in Entities where e.Entity == testRun select e).Count() > 0) { Detach(testRun); AttachTo(TableName, testRun, "*"); } UpdateObject(testRun); SaveChangesWithRetries(SaveChangesOptions.ReplaceOnUpdate); }
public void AddTestRun(TestRunTableEntity testRun) { this.AddObject(TableName, testRun); this.SaveChangesWithRetries(); }