I have read that DbContext object should be created as InstancePerHttpRequest, not SingleInstance, because of its thread-unsafe nature and it might consume too much resource between requets which makes sence. But I am using Repository objects which uses DbContext instance. Should I make them InstancePerHttpRequest or make them SingleInstance and use DependencyResolver to get the current DbContext.
What would the best object creation design be, for Autofac (or any other DI), DbContext, Repository and Service based Web application?
Another question, how expensive it is to create a different DbContext object for each repository or service for each web request (like 10-15 of them in a request)?