Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document EF Core architecture and internal technical details #1920

Open
2 of 24 tasks
ajcvickers opened this issue Nov 14, 2019 · 12 comments
Open
2 of 24 tasks

Document EF Core architecture and internal technical details #1920

ajcvickers opened this issue Nov 14, 2019 · 12 comments
Assignees
Milestone

Comments

@ajcvickers
Copy link
Member

ajcvickers commented Nov 14, 2019

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.

@ajcvickers
Copy link
Member Author

@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
Copy link
Contributor

bricelam commented Jan 30, 2020

  • Plugins (type mapping, translators, etc.)
  • Migrations
    • Diffing (especially how provider model attributes become migration operation attributes)
    • DDL generation
  • Scaffolding/Reverse Engineering
    • How design-time services are discovered
    • Reading database metadata
    • Provider code hooks (UseMyProvider, literals, etc.)
  • How the tools work (dotnet-ef and the PMC cmdlets)

@HamedFathi
Copy link

Please consider these:

  1. How to get current Table/Column/... information from DbContext. Like this

  2. How to call the scaffold/reverse tool by code (Not CLI). Like this

@ssg
Copy link

ssg commented 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
Copy link

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
Copy link

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
Copy link

Also what is TPT, TPH, TPC and PMC ? It is not very clear.

@tudort-iquest
Copy link

tudort-iquest commented Jan 31, 2020

Also what is TPT, TPH, TPC and PMC ? It is not very clear.

table per type, table per hierarchy, table per concrete class - most O/RMs support these inheritance mapping strategies, maybe under different names..

@kant2002
Copy link

Thanks, I get it. I decipher TPT and PMC myself, but other abbreviations not very often I see in MS documentation (or maybe communication better to say). So that's why I ask. Maybe I'm not alone in that.

@explorer14
Copy link

  • change tracking
  • interceptors
  • save changes
  • context pooling
    , Please!

@bricelam
Copy link
Contributor

We've had a few community standups related to this:

@roji
Copy link
Member

roji commented Jul 22, 2023

Awesome - let's add these to the provider writer "docs": #4424.

bricelam added a commit to bricelam/EntityFramework.Docs that referenced this issue Aug 31, 2023
bricelam added a commit that referenced this issue Aug 31, 2023
bricelam added a commit to bricelam/EntityFramework.Docs that referenced this issue Nov 27, 2023
bricelam added a commit to bricelam/EntityFramework.Docs that referenced this issue Nov 27, 2023
bricelam added a commit to bricelam/EntityFramework.Docs that referenced this issue Nov 28, 2023
bricelam added a commit that referenced this issue Dec 1, 2023
@ajcvickers ajcvickers removed their assignment Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants