Update README with ASP.NET info.
This commit is contained in:
parent
56fd0e44e7
commit
ba77fbd176
@ -152,3 +152,10 @@ This is the least recommended method of loading data. It requires the [Microsoft
|
||||
* **Matches** are played by many **Teams** (M:M)
|
||||
|
||||
You can use [EF Core Power Tools](https://marketplace.visualstudio.com/items?itemName=ErikEJ.EFCorePowerTools) to create diagrams.
|
||||
|
||||
## ASP.NET Core with Entity Framework Core
|
||||
|
||||
A web application will make connection to the database on demand, which is a scoped connection. When not using the database, the web application is in a disconnected state.
|
||||
You cannot create a new context in a file, because a new connection needs to be established every time and also closed, when the database is no longer needed. Also, *no tracking* is recommended, because multiple people can manipulate data.
|
||||
|
||||
An Inversion of Control (IoC) container will be used to handle dependancy injection for the DbContext. And also the DbContext will need a constructor with parameters to initialize itself properly.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user