예제 #1
0
 public void Dispose()
 {
     if (oleDb != null)
     {
         oleDb.Dispose();
     }
     if (oleDbDataReader != null)
     {
         oleDbDataReader.Close();
     }
     if (oleDbCommand != null)
     {
         oleDbCommand.Dispose();
     }
     if (oleDbConnection != null)
     {
         oleDbConnection.Close();
         oleDbConnection.Dispose();
     }
     if (tables != null)
     {
         tables.Clear();
         tables = null;
     }
 }
예제 #2
0
 public void Dispose()
 {
     oleDb.Dispose();
     tables.Clear();
     tables = null;
 }