Having Separate Domain Model and Persistence Model in DDD
问题 I have been reading about domain driven design and how to implement it while using code first approach for generating a database. From what I've read and researched there are two opinions around this subject: Have 1 class that serves both as a domain model and a persistence model Have 2 different classes, one implementing the domain logic and one used for a code-first approach Now I know opinion 1) is said to simplify small solutions that do not have many differences between the domain and