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

Allow templates to be placed anywhere instead of CodeTemplates from the scaffolder. #27656

Closed
AraHaan opened this issue Mar 16, 2022 · 4 comments
Labels
closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed. customer-reported

Comments

@AraHaan
Copy link
Member

AraHaan commented Mar 16, 2022

On old ef6 projects, templates were generated along beside the edmx file (which could have been anywhere they wanted) and the files it generated automatically, in this case it would be great if such thing could be done here for compatibility.

The ability to have the templates picked up from anywhere within our projects from the scaffolder.

@AraHaan AraHaan changed the title Allow templates to be placed anywhere instead of CodeTemplates. Allow templates to be placed anywhere instead of CodeTemplates from the scaffolder. Mar 16, 2022
@bricelam
Copy link
Contributor

Those templates in EF6 generated code directly from the edmx. There was another set of templates in EF6 that were used when generating code first from an existing database which also had to be in a specific place in the project: (we stole the design from ASP.NET Scaffolding)

  • CodeTemplates/
    • EFModelFromDatabase/
      • Context.cs.t4
      • Context.vb.t4
      • EntityType.cs.t4
      • EntityType.vb.t4

But I say all that just for historical context. We should still discuss the feasibility of this issue.

@AraHaan
Copy link
Member Author

AraHaan commented Mar 17, 2022

image

What I got so far on how my code does it.

@ajcvickers ajcvickers added this to the Backlog milestone Mar 25, 2022
@AraHaan
Copy link
Member Author

AraHaan commented Sep 18, 2022

Now that EFCore 7 has templates, I feel like a lot of the formatting issues could be closed now that is in the backlog.

@ajcvickers
Copy link
Member

Note from triage: we don't plan to support this.

@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2022
@ajcvickers ajcvickers removed this from the Backlog milestone Oct 26, 2022
@ajcvickers ajcvickers added the closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed. label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed. customer-reported
Projects
None yet
Development

No branches or pull requests

3 participants