How is the session or context in entity framework configured?
Does it pull the connection string from the web.config?
And does it handle connection pooling also?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Entity Framework context is usually configured using the app.config file for a standalone application or the web.config file for a web app, the connection string is part of this configuration. There is an overloaded constructor though that will allow you to “manually” pass in a connection string to be used if this default does not work for you.
The EF context is just a wrapper over a SQL connection, so if the underlying connection supports connection pooling – i.e. SQL Server Connection Pooling (ADO.NET) – this will work the same way with an EF context.