Esempio n. 1
0
 internal void SetConnection(string commandText, IDbConnection connection)
 {
     if (connection == null)
     {
         if (LoggingUtilities.FindSqlCommand(CommandCollection, commandText).Connection != null)
         {
             LoggingUtilities.FindSqlCommand(CommandCollection, commandText).Connection.Close();
         }
     }
     LoggingUtilities.FindSqlCommand(CommandCollection, commandText).Connection = connection;
 }