Giter VIP home page Giter VIP logo

Comments (6)

msawczyn avatar msawczyn commented on May 19, 2024

Unfortunately, that's pretty much an edge condition that I don't think should be implemented in the main project. The reason the tool decides the default visibility of the default constructor the way it does is due to required properties, both scalar values and associations. It would be all too easy to allow an override that would then allow an invalid object to attempt to be saved, which would blow up at runtime.

This is a perfect case for the ability to modify the generated code by editing the T4. You clearly have a good grasp on how the template works, and I'd suggest that you just override the generation the way you need it done. That will give you the ability to use the POCO objects for ODATA while at the same time giving design safety for the masses.

from efdesigner.

dcastenholz avatar dcastenholz commented on May 19, 2024

I was trying to stay in sync with your updates on the .tt's if possible. Even if it could be moved into the model without exposing it in the UI, that would help. I would just set it in the first .tt and all the others would be as-is.

from efdesigner.

dcastenholz avatar dcastenholz commented on May 19, 2024

If I did a pull request, would you be inclined to consider it? I might decide to branch it anyway, but that is a significant effort for the return. If not, I COMPLETELY understand. Thanks.

from efdesigner.

msawczyn avatar msawczyn commented on May 19, 2024

Certainly! Always welcome pull requests.

from efdesigner.

dcastenholz avatar dcastenholz commented on May 19, 2024

I am in the middle of a big project right now, but i AM planning on doing a pull request. I will address this issue as well as another that I am going to enter shortly. Thanks for a great project.

from efdesigner.

msawczyn avatar msawczyn commented on May 19, 2024

Closing due to age. Looking forward to the PR!

from efdesigner.

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.