title: MVC Model Setup
body: <p>I am using pure ado.net for data access. I want to know best practice to do the following.</p>
  
  <p>I have a Generic Product Class....</p>
  
  <pre><code>Class ProductViewModel
  
   Property ItemID as int
   Property Title as string
   ' etc, all other properties.......
  
  End Class
  </code></pre>
  
  <p>Then I have Orders Class</p>
  
  <pre><code>Class OrdersViewModel
  
   Public OrderNumber as string
   Public ShipToAddress as string
   ' etc all properties
  
  End Class
  </code></pre>
  
  <p>I have like 10 other generic classes to be used as ViewModel.</p>
  
  <p>My Question is for every generic class, i need to pull data within my VIEW's....for example GetProductID() Function will return ProductID, GetOrderID will return <strong>OrderID</strong>. <strong>in which class should I perform the actual data access operations?</strong></p>
  
  <p>How Should I structure my classes, so i can make my life easier to access data within views.</p>
  
  <p>Thanks</p>