title: Executing a stored procedure using a DbConnection
body: <p>I need to execute a stored procedure on a database. This is what I got so far that works:</p>
  
  <pre><code>protected DbProviderFactory dbProviderFactory;
  this.dbProviderFactory = DalFactory.GetFactory(this.adapterConfiguration);
  
  DbConnection dbConnection = dbProviderFactory.CreateConnection();
  
  dbConnection.ConnectionString = this.adapterConfiguration.DatabaseInformation.ExternalDatabaseInformation.connectionString;
              try
              {
                  dbConnection.Open();
              }
              catch (Exception e)
              {
  
                  throw;
              }
  </code></pre>
  
  <p>I suspect that DbCommand would do it, but haven't found anything working. Let's say that the stored procedure by the name "initialize" has to be executed. How do I do that?</p>