- Timestamp:
- 06/04/09 15:13:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/3.2/ClientAdapter.cs
r1634 r1999 78 78 } 79 79 } 80 81 private IClientConfigAdapter clientConfigAdapter = null; 82 83 private IClientConfigAdapter ClientConfigAdapter { 84 get { 85 if (clientConfigAdapter == null) { 86 clientConfigAdapter = 87 this.Session.GetDataAdapter<ClientConfig, IClientConfigAdapter>(); 88 } 89 90 return clientConfigAdapter; 91 } 92 } 80 93 #endregion 81 94 … … 128 141 client.FreeMemory = 0; 129 142 130 //todo: config adapter (client.config) 143 if (!row.IsClientConfigIdNull()) 144 client.Config = ClientConfigAdapter.GetById(row.ClientConfigId); 145 else 146 client.Config = null; 131 147 132 148 return client; … … 151 167 row.FreeMemory = client.FreeMemory; 152 168 153 //todo: config adapter 154 /*if (client.Config != null) 155 row.ClientConfigId = client.Config.ClientConfigId; 156 else 157 row.ClientConfigId = null;*/ 169 if (client.Config != null) 170 row.ClientConfigId = client.Config.Id; 171 else 172 row.SetClientConfigIdNull(); 158 173 } 159 174 … … 167 182 if (client != null) { 168 183 ResAdapter.Update(client); 184 ClientConfigAdapter.Update(client.Config); 169 185 170 186 base.doUpdate(client);
Note: See TracChangeset
for help on using the changeset viewer.