Beispiel #1
0
 public Statements(string tableName, Connection connection)
 {
     try
     {
         DeleteStatement = new DeleteStatement(tableName, connection);
         InsertStatement = new InsertStatement(tableName, connection);
         SelectStatement = new SelectStatement(tableName, connection);
     }
     catch
     {
         DeleteStatement?.Dispose();
         InsertStatement?.Dispose();
         SelectStatement?.Dispose();
         throw;
     }
 }
Beispiel #2
0
 public void Dispose()
 {
     DeleteStatement.Dispose();
     InsertStatement.Dispose();
     SelectStatement.Dispose();
 }