Skip to content

Document EF Core architecture and internal technical details #1920

Open

Description

@ajcvickers

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.

Activity

  1. added this to the Backlog milestone on Nov 14, 2019
  2. self-assigned this
    on Nov 14, 2019
  3. modified the milestones: Backlog, 5.0.0 on Jan 30, 2020
  4. ajcvickers commented on Jan 30, 2020

    @ajcvickers
    ContributorAuthor

    @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!

  5. bricelam commented on Jan 30, 2020

    @bricelam
    Contributor
    • 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)
  6. HamedFathi commented on Jan 30, 2020

    @HamedFathi

    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

  7. ssg commented on Jan 31, 2020

    @ssg

    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.

  8. tudort-iquest commented on Jan 31, 2020

    @tudort-iquest

    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..

  9. kant2002 commented on Jan 31, 2020

    @kant2002

    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.

  10. kant2002 commented on Jan 31, 2020

    @kant2002

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

  11. tudort-iquest commented on Jan 31, 2020

    @tudort-iquest

    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..

  12. 3 remaining items

  13. added this to the Backlog milestone on Dec 7, 2020
  14. self-assigned this
    on Jul 21, 2023
  15. bricelam commented on Jul 21, 2023

    @bricelam
    Contributor
  16. roji commented on Jul 22, 2023

    @roji
    Member

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

  17. removed their assignment
    on Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions