I’m working on project where we recently upgraded to Entity Framework 5. After we upgraded I created a new .edmx model and moved all out entities over to the new model.
From what I can tell Entity Framework 5 runs of POCO objects. The problem I’m having is that POCO objects don’t seem to be included in source control. If a new developer opens the solution it doesn’t include any generated POCO objects. To get around this we can right click “MyModel.Context.tt” and “MyModel.tt” and click “run custom tool” to generate the POCO objects. So is there a way to include the POCO objects in tfs so we don’t have to generate them when a new dev opens the solution?
UPDATE
So I tried what a few people have suggested and use “include in project” but if I look at the the folder that contains the model in visual studio with the show all files options on none of the classes show up. BUT if I look at the folder with windows explorer it shows all the files… what give?
It turns out this was a bug with Visual Studio 2012 and the model being in a sub folder. Updated to SP1 and the problem when away.