- Timestamp:
- 03/23/10 10:50:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/ClientDao.cs
r3011 r3203 38 38 select EntityToDto(job.Client, null)).SingleOrDefault(); 39 39 } 40 40 41 public void SetServerSideCalendar(ClientDto client, Guid clientGroupId) { 42 Client dbclient = Context.Clients.SingleOrDefault(c => c.ResourceId.Equals(client.Id)); 43 dbclient.UseCalendarFromResourceId = clientGroupId; 44 dbclient.CalendarSyncStatus = Enum.GetName(typeof(CalendarState), CalendarState.Fetch); 45 Context.SubmitChanges(); 46 } 47 41 48 public ClientDto Insert(ClientDto info) { 42 49 Client c = DtoToEntity(info, null); … … 79 86 target.Resource.Name = source.Name; 80 87 target.Resource.ResourceId = source.Id; 81 88 target.CalendarSyncStatus = Enum.GetName(typeof(CalendarState), source.CalendarSyncStatus); 82 89 target.Login = source.Login; 83 90 target.Memory = source.Memory; … … 96 103 target.FreeMemory = source.FreeMemory; 97 104 target.Id = source.ResourceId; 105 target.CalendarSyncStatus = (CalendarState) Enum.Parse(typeof (CalendarState), source.CalendarSyncStatus); 98 106 target.Login = source.Login; 99 107 target.Memory = source.Memory; … … 103 111 target.State = (State) Enum.Parse(typeof (State), source.Status); 104 112 return target; 105 } 113 } 106 114 } 107 115 }
Note: See TracChangeset
for help on using the changeset viewer.