Comments (6)
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.
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.
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.
Certainly! Always welcome pull requests.
from efdesigner.
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.
Closing due to age. Looking forward to the PR!
from efdesigner.
Related Issues (20)
- Cant set inherited entity HOT 1
- No way to import HOT 2
- Partial classes being deleted on regeneration HOT 4
- Missing ForaignKey on 1 <-> 0..1
- How add /drag an existing model or entity to design surface HOT 1
- How to import model/tables From existing Database HOT 2
- INotifyPropertyChanged removed - Help needed HOT 1
- Toolbox Items missing/Greyed out HOT 4
- Null Reference exception in Solution Explorer context menu
- Code Generation Creating Ambiguous Constructor Signatures in Specific Inheritance Scenario
- Meaningless error when trying to drag-and-drop a dll file on diagram area
- Support for per-entity inheritance hierarchy types
- Many to many with EF core 7 HOT 1
- Upgrade entity framework visual editor to latest version, now EF Model Diagrams disabled HOT 2
- Add an Example for ModelElementExtensions.GetAll(T) Method
- Missing INotifyPropertyChanged option on entity HOT 1
- "Save as image" needs work HOT 2
- "Is Identity" field missing from properties view HOT 3
- Auto include flag on connections not working
- I can't open my schema anymore with the latest version of visual studio 2022 17.7.4. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efdesigner.