title: ASP.NET MVC 3 and the Entity Framework with MySQL and LINQ
body: <p>I have downloaded ASP.NET MVC 3 and I am now ready to use a MySQL database as my source of data.</p>
  
  <p>I have understood that the Entity Framework will allow me to abstract the actual sql-business out, and I can wrap my linq queries in a repository pattern.
  I have tried to follow <a href="http://pattersonc.com/blog/2009/04/01/using-mysql-with-entity-framework-and-aspnet-mvc-%E2%80%93-part-i/" rel="nofollow">http://pattersonc.com/blog/2009/04/01/using-mysql-with-entity-framework-and-aspnet-mvc-%E2%80%93-part-i/</a> but when I get to the place reading</p>
  
  <pre><code>var result = from p in mySqlEntities.ProductSet select p;
  </code></pre>
  
  <p>I realize that I don't have such a ProductSet.</p>
  
  <p>So, is this the right way of doing things, or is there some easier or more preferable way?</p>