title: Dynamically Create C# Properties From Database Columns
body: <p>I don't know if this can be done in C#/.NET 2.0 but I want to be able to add a sql call to a method and build the properties based off the call. So, it would be something like this:</p>
  
  <pre><code>QueryResult result = QueryDataTable.Query("SELECT ...", "DataConnection");
  int someVar = result.SomeTableId;
  </code></pre>
  
  <p>So, above the SomeTableId property would actually exist until the "SELECT" statement. It checks for the columns and if exists creates the property</p>