Skip to main content
8 events
when toggle format what by license comment
Mar 15, 2019 at 20:28 comment added Robert Harvey Let us continue this discussion in chat.
Mar 15, 2019 at 20:20 comment added X.Otano Ok that will work for business logic, what about private setters?(ef work with them?) And handling of value objects? Have you handled them correctly with this approach? Do you know some github repo where I can have a look?
Mar 15, 2019 at 20:19 history edited Robert Harvey CC BY-SA 4.0
deleted 9 characters in body
Mar 15, 2019 at 20:16 comment added Robert Harvey You can do anything you want inside the Invoice class. If you need logic inside your EF entities, those are partial classes. Just create another partial class, for example, partial class Address, and put your logic there.
Mar 15, 2019 at 20:14 history edited Robert Harvey CC BY-SA 4.0
added 2 characters in body
Mar 15, 2019 at 20:14 comment added X.Otano Yeah I see your point, but how do you put all your business logic inside that class? Imagine u want to follow DDD style . With private setters and multiple stuff as other child entities (aggregate roots) , Valiue objets, methods with business logic etc
Mar 15, 2019 at 19:59 history edited Robert Harvey CC BY-SA 4.0
added 104 characters in body
Mar 15, 2019 at 19:38 history answered Robert Harvey CC BY-SA 4.0