title: Difference between .edmx file and creating an Entities.cs file
body: <p>I have looked at two of Microsoft's tutorials for MVC.   In one tutorial they are creating a .edmx file to handle the Entity Framework in order to execute Linq queries.  In another tutorial they made a class called "MusicStoreEntities.cs"  here is the code:</p>
  
  <pre><code>using System.Data.Entity;
  
  namespace MvcMusicStore.Models
  {
      public class MusicStoreEntities : DbContext
      {
          public DbSet&lt;Album&gt;     Albums  { get; set; }
          public DbSet&lt;Genre&gt;     Genres  { get; set; }
          public DbSet&lt;Artist&gt;    Artists { get; set; }
          public DbSet&lt;Cart&gt;      Carts { get; set; }
          public DbSet&lt;Order&gt;     Orders { get; set; }
          public DbSet&lt;OrderDetail&gt; OrderDetails { get; set; }
      }
  }
  </code></pre>
  
  <p>And the tutorial creates an instance of this class and starts doing Linq queries as well.  What are the differences between these 2 methods? and how can I make DbSet objects in a .edmx file?  Thank you.</p>