Repository navigation
Internals documentation for the internal service provider - #2066
ajcvickers wants to merge 1 commit into
Conversation
|
@aspnet/efteam This is the start of work on internals/architecture documentation. I'm doing this in a feature branch because I'm not sure what the overall structure will look like until I have more content. All links are currently just placeholders for where I want to link to something. |
roji
left a comment
There was a problem hiding this comment.
Great to see this starting... Am sure I'll have more to say once this is in context with other internal docs.
One thought - this seems to be a more general article about services in EF Core, and not just about the internal service provider (which seems like a subset of that).
| @@ -0,0 +1,166 @@ | |||
| --- | |||
| title: The internal service provider - EF Core | |||
There was a problem hiding this comment.
Nit: I think we capitalize our top-level titles
| uid: core/internals/internal-service-provider | ||
| --- | ||
|
|
||
| # The internal service provider |
| * [Singleton]() services are shared between DbContext instances | ||
| * [Scoped]() services are shared within, but not between, DbContext instances | ||
|
|
||
| A DbContext instance typically represents a [session]() or [unit-of-work](). |
There was a problem hiding this comment.
Maybe say a word about DI scopes at the beginning of this section before going into DbContext etc.?
There was a problem hiding this comment.
What I'm hoping here is that I can find links to these concepts in the D.I. documentation. I decided not to try to describe D.I. in general here. Depending what I find to link to I will revisit this.
| Likewise, some changes in context configuration require different service implementations. | ||
| For example, [changing the database provider]() requires different implementations for many services. | ||
|
|
||
| These additional service providers are cached automatically. |
There was a problem hiding this comment.
Go into ISingletonOptions here or is it too much? Am worried this is a bit too abstract for newbies.
There was a problem hiding this comment.
I think that should go into a different page--I created a list of possible things to cover here: #1920
|
Closing for now; will bring it back in a new format later. |
No description provided.