Code First Development
Code First development is the direct application of Domain Driven Design where the flow of the application is driven by the domain and not by the database. Usually this type of approach is accomplished when the database hasn't been designed yet or isn't legacy, so that the datastore has some flexibility that allows you to model the domain in a better way.
As noted earlier, the DDD approach requires a graph of objects that is business-centric. Moreover, with DDD, the domain is totally unaware about the persistence techniques. So, in contrast to the previous AR pattern, with the domain first approach you work on the domain without caring about the datastore. At the end of the development process, when the domain is ready, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access