Does “Save” method belong to the Business Domain Entity?
问题 I am not using any ORM. So I am having a debate whether "Save" method actually belongs to a Business Domain entity or should be abstracted in some service that will be handed over the Business Domain Entity for saving ? e.g. class Employee { string Name; DateTime Birth; GetAge() { } Save() { } } OR class Employee { string Name; DateTime Birth; GetAge() { } } SomePersistenceService { Save(Employee emp) { } } 回答1: Since this question is tagged with 'domain-driven-design', you'll need a