Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void AddTestRun(TestRunTableEntity testRun)
 {
     this.AddObject(TableName, testRun);
     this.SaveChangesWithRetries();
 }