You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document EF Core architecture and internal technical details #1920
To make it easier for contributors and provider authors to understand the code.
Please comment on this issue with internal areas you would like to see documented.
Working list of possible topics to document. This list will evolve in the issue as we make progress. Not everything in the list will necessarily make it to documentation--it will depend on value, resources, etc. as usual.
Reacted by Moien Tajik, Andrei Nitescu, Loïc Sharma, paule96, Sedat Kapanoğlu, Benito E. Gómez, Kevin Le, Will 保哥, Tudor Turcu, Joao Grassi and 11 more
@aspnet/efteam Please add anything with internals that it might be worth documenting. I would rather have too many things on this list and then trim it, so treat this as brainstorming list--no bad ideas!
I'm not sure if this counts as "internals" but after EF Core 3.0, satisfying the query compiler to run the code on the server-side has been really time consuming. I don't argue the benefits of the change but it's not a straightforward process. I wish there was a documentation comparing client-side running queries with equivalent server-side running ones.
It would be great to see how the major patterns were implemented (or not) in EF - identity map, data mapper, repository, unit-of-work, lazy loading, association table mapping, metadata mapping, query object etc..
I in general agree with @ssg , but I want to see how do you generate SQL from different kind of queries. All releases of EF Core starting from betas has changes which require rewriting of the queries to satisfy new version. Expecially many issues I see withing queries which involve GROUP BY or other aggregate functions. If you explain how do you generate SQL using your internal model, it would be easier to write LINQ which will conform to your expected set of queries.
Activity
ajcvickers commentedon Jan 30, 2020
@aspnet/efteam Please add anything with internals that it might be worth documenting. I would rather have too many things on this list and then trim it, so treat this as brainstorming list--no bad ideas!
bricelam commentedon Jan 30, 2020
HamedFathi commentedon Jan 30, 2020
Please consider these:
How to get current Table/Column/... information from DbContext. Like this
How to call the scaffold/reverse tool by code (Not CLI). Like this
ssg commentedon Jan 31, 2020
I'm not sure if this counts as "internals" but after EF Core 3.0, satisfying the query compiler to run the code on the server-side has been really time consuming. I don't argue the benefits of the change but it's not a straightforward process. I wish there was a documentation comparing client-side running queries with equivalent server-side running ones.
tudort-iquest commentedon Jan 31, 2020
It would be great to see how the major patterns were implemented (or not) in EF - identity map, data mapper, repository, unit-of-work, lazy loading, association table mapping, metadata mapping, query object etc..
kant2002 commentedon Jan 31, 2020
I in general agree with @ssg , but I want to see how do you generate SQL from different kind of queries. All releases of EF Core starting from betas has changes which require rewriting of the queries to satisfy new version. Expecially many issues I see withing queries which involve GROUP BY or other aggregate functions. If you explain how do you generate SQL using your internal model, it would be easier to write LINQ which will conform to your expected set of queries.
kant2002 commentedon Jan 31, 2020
Also what is TPT, TPH, TPC and PMC ? It is not very clear.
tudort-iquest commentedon Jan 31, 2020
table per type, table per hierarchy, table per concrete class - most O/RMs support these inheritance mapping strategies, maybe under different names..
3 remaining items
bricelam commentedon Jul 21, 2023
We've had a few community standups related to this:
roji commentedon Jul 22, 2023
Awesome - let's add these to the provider writer "docs": #4424.
Document plug-in APIs
Document plug-in APIs (#4473)
Document the design-time tools architecture
Document the design-time tools architecture
Document the design-time tools architecture
Document the design-time tools architecture (#4569)