I am creating domain model. I have Goal ( something that user wants to achieve in his entire year) concept/object and it has status that will vary over time. Now, User will update his status. Where should I put the responsibility of creating, updating and deleting the status.
Share
You would be looking to use the Repository Pattern to keep the database responsibility out of your domain model. This is known as “Persistence Ignorance.”