dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.62k stars 1.96k forks source link

third template called EntityTypeConfiguration.t4 #4088

Open netbizsystems opened 1 year ago

netbizsystems commented 1 year ago

Where can I find that third template? I only see the two ["DbContext.t4","EntityType.t4"] [Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ajcvickers commented 1 year ago

@netbizsystems We don't currently have an example of this.

@ErikEJ: @bricelam mentioned that you might be interested in creating a template that uses this.

ErikEJ commented 1 year ago

Correct, it is on my TODO list: https://github.com/ErikEJ/EFCorePowerTools/issues/1499

R4ND3LL commented 1 year ago

If interested, I created a EntityTypeConfiguration.t4 file located here.

This is part of the project EntityFrameworkRuler.Design, which provides design time scaffolding services for altering the entity model. I'm currently using it to make the model match the old EF6 EDMX structure for a few projects I'm upgrading.

Config splitting is an option that can be enabled in there.

ErikEJ commented 1 year ago

@R4ND3LL maybe add that tool to the list of tools in the docs?

R4ND3LL commented 1 year ago

@R4ND3LL maybe add that tool to the list of tools in the docs?

Sure. Where do I go about doing that?

ErikEJ commented 1 year ago

Add an entry to the end of this doc and do a PR: https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/extensions/index.md