- Timestamp:
- 05/01/10 13:58:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/ClientDao.cs
r3203 r3578 43 43 dbclient.UseCalendarFromResourceId = clientGroupId; 44 44 dbclient.CalendarSyncStatus = Enum.GetName(typeof(CalendarState), CalendarState.Fetch); 45 Co ntext.SubmitChanges();45 CommitChanges(); 46 46 } 47 47 … … 49 49 Client c = DtoToEntity(info, null); 50 50 Context.Clients.InsertOnSubmit(c); 51 Co ntext.SubmitChanges();51 CommitChanges(); 52 52 info.Id = c.ResourceId; 53 53 return info; … … 58 58 Resource res = Context.Resources.SingleOrDefault(c => c.ResourceId.Equals(info.Id)); 59 59 Context.Resources.DeleteOnSubmit(res); 60 Co ntext.SubmitChanges();60 CommitChanges(); 61 61 } 62 62 … … 64 64 Client client = Context.Clients.SingleOrDefault(c => c.ResourceId.Equals(info.Id)); 65 65 DtoToEntity(info, client); 66 try { 67 Console.WriteLine("Sending from thread: " + Thread.CurrentThread.ManagedThreadId); 68 Context.SubmitChanges(); 69 } catch (System.Data.Linq.ChangeConflictException cce) { 70 Console.WriteLine(cce); 71 } 66 CommitChanges(); 72 67 } 73 68
Note: See TracChangeset
for help on using the changeset viewer.