Same for Startup.cs, we will change it later. You can manage this process manually by using the Connection property.ValuesController is added by the template and we will leave it as it is for now. For example, when working with SQL Server Compact, it is often recommended to maintain a separate open connection to the database for the lifetime of the application to improve performance. There are cases when you want to have more control over when the connection opens and closes. For example, the context opens a connection to execute a query, and then closes the connection when all the result sets have been processed. The context opens and closes connections as needed.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |