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

[ModGen] Private setters is an issue #6

Open
c3dr0x opened this issue Jun 7, 2018 · 1 comment
Open

[ModGen] Private setters is an issue #6

c3dr0x opened this issue Jun 7, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@c3dr0x
Copy link
Member

c3dr0x commented Jun 7, 2018

Having private setter on aggregates objects and lists is an issue when using EF. It forces the use of temporary objects to store a denorm of the final object and to construct it after querying.

@JabX
Copy link
Contributor

JabX commented Jun 9, 2018

The issue isn't specific to EF at all. The problem arises every time we want to create a new object that contains a composed object (or list) during any query (sure during EF queries, but also during any regular linq to objects one too).

Making sure the composed object in always at least initialized is one (good) thing, but forcing the use of (auto) mapping to fill it is IMO one step too far (and ICollection doesn't even have the AddRange() method).

@c3dr0x c3dr0x changed the title [ModGen] Private setters is an issue with EF [ModGen] Private setters is an issue Jun 26, 2018
@durandx durandx added the enhancement New feature or request label Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants