Permalink
Browse files

rename _return to dReturn

  • Loading branch information...
061375 committed Nov 4, 2018
1 parent d7f2ec1 commit 7f4ec42038674a3a2ccf813004b7e2b30fd8ab0c
Showing with 12 additions and 12 deletions.
  1. +12 −12 EDI.Fabric/Libraries/Data/SimpleDB.cs
@@ -9,14 +9,6 @@
namespace EDI.Fabric
{
/**
* I don't expect more than a few 100 records per run
* A simple query and loop to sort the data should suffice
*
* data[0] = {{key, value},{key, value}, etc..},
* data[1] = {{key, value},{key, value}, etc..},
* etc...
* */
class SimpleDB
{
private static SqlConnection sqlConnection1 = null;
@@ -37,8 +29,16 @@ public SimpleDB(string conn)
cmd.Connection = sqlConnection1;
sqlConnection1.Open();
Dictionary<int, Dictionary<string, string>> _return = new Dictionary<int, Dictionary<string, string>>();
/**
* something to hang our results on
* I don't expect more than a few 100 records per run
* A simple query and loop to sort the data should suffice
*
* data[0] = {{key, value},{key, value}, etc..},
* data[1] = {{key, value},{key, value}, etc..},
* etc...
* */
Dictionary<int, Dictionary<string, string>> dReturn = new Dictionary<int, Dictionary<string, string>>();
var reader = cmd.ExecuteReader();
int row = 0;
@@ -79,14 +79,14 @@ public SimpleDB(string conn)
}
*/
}
_return.Add(row, col);
dReturn.Add(row, col);
row++;
}
} while (reader.NextResult());
sqlConnection1.Close();
return _return;
return dReturn;
}
}

0 comments on commit 7f4ec42

Please sign in to comment.