Q:

Query in Ado.net Entity Object Generator template

I used Ado.net Entity Object Generator template to generate the business objects from the Edmx file. By default it is adding two files namely

Model.tt
Model.Context.tt

The Model.tt template is generating the business objects, can any one explain the use of Model.Context.tt?

A:

Model.Context.tt generates your derived context exposing all ObjectSets, function imports etc. You can further extend this context in your own partial class and add custom methods you need. ObjectContext is entry point to EF functionality.

