Permalink
Browse files

Comments

  • Loading branch information...
061375 committed Nov 4, 2018
1 parent f12a51b commit d7f2ec110b30e6ea46621a372cf0c25fedf2b58b
Showing with 10 additions and 1 deletion.
  1. +10 −1 EDI.Fabric/Libraries/Data/SimpleDB.cs
@@ -9,6 +9,14 @@
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;
@@ -45,7 +53,8 @@ public SimpleDB(string conn)
for (int i = 0; i < count; i++)
{
Console.WriteLine(row + " " + reader.GetName(i) + " " + reader.GetValue(i));
// Console.WriteLine(row + " " + reader.GetName(i) + " " + reader.GetValue(i)); // debug
if(false == col.ContainsKey(reader.GetName(i).ToString()))
col.Add(reader.GetName(i).ToString(), reader.GetValue(i).ToString());
/*

0 comments on commit d7f2ec1

Please sign in to comment.