Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 04, 2012 12:18 PM by zuperboy90
Nov 04, 2012 12:18 PM|LINK
I am learning DDD development for few days, and i start to like it.
I (think i) understand the principle of DDD, where your main focus is on business objects, where you have aggregates, aggregates roots, repositories just for aggregates roots and so on.
I am trying to create a simple project where i combine DDD development with Code First approach.
My questions are: (I am using asp.net MVC)
DDD Business Objects will be different than Code First objects? Even if they will probably be the same, for example i can have a "Product" business object which has all the rules and methods, and i can have a "Product" code
first (POCO) object which will just contain the properties i need to save in database.
If answer to question 1 is "true", then how do i notify the "Product" POCO object that a property from business object "Product" has been changed and i have to update it? I am using an "AutoMapper" or something like this? If the answer is "no", i am completely
Can you show me the most simple (CRUD) example of how can i put those two together?