title: Using Entity Data Model in VS 2012
body: <p>I have used Entity Data Model before with VS 2010, but now I am having trouble with VS 2012.
  First of all, now in 2012 Entity Data Model there are two new files with .tt extension. Also the Designer.cs file is empty and has a message how to enable the code generation, but when I do enable the code generation it says that the objects already exist. </p>
  
  <p>I am also missing the CreateObjectSet();</p>
  
  <pre><code> using (MyEntities entitiesContext = new MyEntities())
              {
                  var entitySet = entitiesContext.CreateObjectSet&lt;T&gt;();
  
              }
  </code></pre>
  
  <p>Not sure why, but now the entitiesContext doesn't have the .CreateObjectSet();</p>
  
  <p>I wonder if someone could clear up what is going on.</p>