You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, when we create Meeting we specify the location. MeetingGroup in turn also has _location which is not used anywhere, so I wonder, what sense does it make to have _location in MeetingGroup considering that we don't use it and specify other location when creating Meeting? 🤔
One note: According to DDD Aggregate definition you should not have attributes which are not used to protect business invariants. This is that case and location should be moved outside the aggregate. However, I am not such a orthodox and sometimes I keep more data in an aggregate if it does not affect performance and causes concurrency issues.
Hi, Kamil!
Here, when we create
Meeting
we specify the location.MeetingGroup
in turn also has_location
which is not used anywhere, so I wonder, what sense does it make to have_location
inMeetingGroup
considering that we don't use it and specify other location when creatingMeeting
? 🤔modular-monolith-with-ddd/src/Modules/Meetings/Domain/MeetingGroups/MeetingGroup.cs
Lines 96 to 123 in 37de062
The text was updated successfully, but these errors were encountered: