GithubHelp home page GithubHelp logo

Comments (10)

ErikEJ avatar ErikEJ commented on May 29, 2024

Where did you get EntityTypeConfiguration.t4 from? It is not a file I am aware of

from efcorepowertools.

CyberbobGit avatar CyberbobGit commented on May 29, 2024

I think I downloaded T4 from here. Can you please advise which one I should use? I will compare them.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 29, 2024

I only have these: https://github.com/ErikEJ/EFCorePowerTools/tree/master/samples/CodeTemplates/EFCore

Could it be from here? https://github.com/R4ND3LL/EntityFrameworkRuler/blob/main/src/EntityFrameworkRuler.Design/Resources/EntityTypeConfiguration.t4 (I link to it from this issue: #1499 )

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 29, 2024

Use the linked file also depend on changes in DbContext.cs: https://github.com/R4ND3LL/EntityFrameworkRuler/blob/main/src/EntityFrameworkRuler.Design/Resources/DbContext.t4

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 29, 2024

I would just stick with the option in the tool and use the default templates for now (none of the templates linked to above) - or use the set of templates that I provide in my sample folder only.

from efcorepowertools.

CyberbobGit avatar CyberbobGit commented on May 29, 2024

I only have these: https://github.com/ErikEJ/EFCorePowerTools/tree/master/samples/CodeTemplates/EFCore

Could it be from here? https://github.com/R4ND3LL/EntityFrameworkRuler/blob/main/src/EntityFrameworkRuler.Design/Resources/EntityTypeConfiguration.t4 (I link to it from this issue: #1499 )

You are right I used that one.

from efcorepowertools.

CyberbobGit avatar CyberbobGit commented on May 29, 2024

I would just stick with the option in the tool and use the default templates for now (none of the templates linked to above) - or use the set of templates that I provide in my sample folder only.

Unfortunately it didn't work for me. I was able to rename properties in Model classes but they remained with the original name in Configuration classes.
Maybe I'm doing something wrong...

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 29, 2024

Unfortunately it didn't work for me. I was able to rename properties in Model classes but they remained with the original name in Configuration classes.

Ah, of course! Then you can uncheck the built-in option I think.

from efcorepowertools.

CyberbobGit avatar CyberbobGit commented on May 29, 2024

Unfortunately it didn't work for me. I was able to rename properties in Model classes but they remained with the original name in Configuration classes.

Ah, of course! Then you can uncheck the built-in option I think.

It is not my problem. Build Action se set to None for all T4 files. I don't understand how can I affect property names generation in Configuration classes from EntityType.T4 file.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 29, 2024

I meant uncheck the; "Split DbContext into Configuration classes" option 

from efcorepowertools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.