title: Determine Datatype of Parameter to SQL Query in C#
body: <p>In a C# application. I want to be able to retrieve the expected parameters to a query and their meta data.</p>
  
  <p>For example if there was a query like </p>
  
  <pre><code>select * from customer where name = @customer_name
  </code></pre>
  
  <p>Is it possible to determine the expected data type of the @customer_name field from the query.  I know I can retrieve other meta data about the resultant columns using </p>
  
  <pre><code>DbDataReader.GetSchemaTable()
  </code></pre>
  
  <p>I need to be able to perform a similar action with the parameters.  I'm open to using 3rd party providers if they can solve this issue.</p>