Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/01/10 13:58:24 (15 years ago)
Author:
kgrading
Message:

Removed References to HiveLogging and updated the default logging mechanism (#991)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/ClientDao.cs

    r3203 r3578  
    4343      dbclient.UseCalendarFromResourceId = clientGroupId;
    4444      dbclient.CalendarSyncStatus = Enum.GetName(typeof(CalendarState), CalendarState.Fetch);
    45       Context.SubmitChanges();
     45      CommitChanges();
    4646    }
    4747
     
    4949      Client c = DtoToEntity(info, null);     
    5050      Context.Clients.InsertOnSubmit(c);
    51       Context.SubmitChanges();
     51      CommitChanges();
    5252      info.Id = c.ResourceId;
    5353      return info;
     
    5858      Resource res = Context.Resources.SingleOrDefault(c => c.ResourceId.Equals(info.Id));           
    5959      Context.Resources.DeleteOnSubmit(res);
    60       Context.SubmitChanges();
     60      CommitChanges();
    6161    }
    6262
     
    6464      Client client = Context.Clients.SingleOrDefault(c => c.ResourceId.Equals(info.Id));
    6565      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();     
    7267    }
    7368
Note: See TracChangeset for help on using the changeset viewer.