Entity Ftamework how to bbott context?

Verry! How to bbott context in EF, to create once when you start the application, or for each request to create, and then oduct context? If you have any other more best practices you can share? And the nsche a question, whether the cost of performance create the context?
July 12th 19 at 16:51
1 answer
July 12th 19 at 16:53
Use DI to speed up using caching. Creating a context, not a costly task, because we just created the object, and selecting and connecting to dB happen directly when referring to the entity.

Find more questions by tags ASP.NETC#Entity Framework