I am planning on moving to EF for data access in an ASP.NET WebForms application. I would like to know when is the appropriate time in the ASP.NET page lifecycle to create my derived DbContext.
Should it be created on page initialization and the shared during the various page lifecycle events?
Should it be created during the specific page lifecycle event when data access is needed?
Should it be created on application request creation and shared through the HttpContent?