title: DatabaseFactory and output parameter
body: <p>I've started using Enterprise Library and have the following questions:</p>
  
  <p>1)How do I add output parameter to this query and how do I get it back:</p>
  
  <pre><code>public int InsertDoc(HDocument document)
  {          
      Database db = DatabaseFactory.CreateDatabase();  
      int result;
      var reader = db.ExecuteNonQuery("sp_InsertDocument", 
                  document.AddedDate,document.AddedBy, document.Title))         
       .
       .
       .
  }
  </code></pre>
  
  <p>The db.AddOutParameter requires paremetrers that I don't have like DbCommand.</p>
  
  <p>2)I have a few methods that work with database (I transfer from ADO.net) stored procedures,
   do I have to declare :  Database db = DatabaseFactory.CreateDatabase(); in each one of them or I can reuse it?</p>