public void SaveMemoryToDB(Guid networkId, Guid userId, int number, DBInserter dbInserter) { // Saving layer info: dbInserter.InsertLayer(Id, userId, networkId, number); // Saving neurons info: for (int i = 0; i < _neuronList.Count; i++) { _neuronList[i].SaveMemoryToDB(Id, userId, i, dbInserter); } }
public void SaveMemoryToDB(Guid networkId, Guid userId, int number, DBInserter dbInserter) { // Saving layer info: dbInserter.InsertLayer(Id, userId, networkId, number); // Saving neurons info: int foreachIndex = 0; foreach (Neuron neuron in _neuronList) { neuron.SaveMemoryToDB(Id, userId, foreachIndex, dbInserter); foreachIndex++; } }