title: Using Entity Framework classes without database connection
body: <p>I have a strange situation. I have created a data model visually and generated a database from it. This project is referenced by two projects:</p>
  
  <ul>
  <li>ASP .NET application.</li>
  <li>WinForms application.</li>
  </ul>
  
  <p>The ASP .NET application deals directly with the database while I need the WinForms application to interact with the database via the Web application.</p>
  
  <p>I have created a page called API.aspx and use HTTP POST to send values and get results in XML.</p>
  
  <p>However, since the WinForms application still needs to use the data model classes, I am running into issues using them without creating a database object.</p>
  
  <p>What is a good strategy to use in this scenario?</p>