title: create classes at runtime from database
body: <p>How can I create classes by using database entries in runtime?</p>
  
  <p>for example:</p>
  
  <p><strong>ID    (int) :</strong></p>
  
  <h2><em>1</em></h2>
  
  <p><strong>Name  (string) :</strong></p>
  
  <h2><em>Product</em></h2>
  
  <p><strong>Content (string) :</strong></p>
  
  <pre><code>public class Product
  {
      public string Name { get; set; }
  
      public string Family { get; set; }
  
      public int Age { get; set; }      
  }
  </code></pre>
  
  <p>or another pattern</p>
  
  <p>its for dynamic page generator </p>
  
  <hr>
  
  <p><strong>Update :</strong></p>
  
  <p>more precisely i mean i need to have a class for each record of database not a class for each table , and this class most be able to give me ability to use usual instructions of SQL like CRUD  </p>