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.
I am also missing the CreateObjectSet();
using (MyEntities entitiesContext = new MyEntities())
{
var entitySet = entitiesContext.CreateObjectSet<T>();
}
Not sure why, but now the entitiesContext doesn't have the .CreateObjectSet();
I wonder if someone could clear up what is going on.