public void SaveMemoryToDB(int iterations, string networkStructure, Guid userId, DBInserter dbInserter) { // Saving network info: dbInserter.InsertNetwork(Id, userId, iterations, networkStructure); // Saving layers info: for (int i = 0; i < _layerList.Count; i++) { _layerList[i].SaveMemoryToDB(Id, userId, i, dbInserter); } }
public void SaveMemoryToDB(int iterations, string networkStructure, Guid userId, DBInserter dbInserter) { // Saving network info: dbInserter.InsertNetwork(Id, userId, iterations, networkStructure); // Saving layers info: int foreachIndex = 0; foreach (Layer layer in _layerList) { layer.SaveMemoryToDB(Id, userId, foreachIndex, dbInserter); foreachIndex++; } }