Timeline for Return domain objects from the repository
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 3, 2017 at 20:51 | comment | added | w0051977 | I really appreciate you answering, however I don't understand. There are two possiblities from what I can see: 1) Map to EF class, then domain object or 2) Map straight to domain object bypassing the EF class. | |
| Aug 3, 2017 at 20:39 | comment | added | Laiv | No. Read again the previous comment :-). Drop the EF word from your vocabulary for a while. Get focused on the ddm | |
| Aug 3, 2017 at 20:36 | comment | added | w0051977 | So are you saying; map to the EF classes and then the domain classes? Thanks. | |
| Aug 3, 2017 at 20:00 | comment | added | Laiv | Nop. I'm saying do model as there were no EF at all. Be pure DDD. Later decide what data of the model need to be persisted. Finally, look at the CF conventions to make the persistence you need possible. For CF, the persistence are mere implementation details. | |
| Aug 3, 2017 at 19:55 | comment | added | w0051977 | Are you saying with a CF approach then you just map EF to domain objects? | |
| Aug 3, 2017 at 19:50 | history | edited | Laiv | CC BY-SA 3.0 |
added 291 characters in body; deleted 1 character in body; deleted 2 characters in body
|
| Aug 3, 2017 at 19:38 | comment | added | Laiv | Yes. But the line between CF and DBF is blurred. As I commented, we still may end up coding POCOS with both approaches. If you are going with CF, model as there were no persistence. Focus on the logic first. Later, follow CF conventions for persisting what should be persisted. | |
| Aug 3, 2017 at 19:34 | comment | added | w0051977 | Thanks. This is what I was thinking when I asked the question. On that basis I think that code first is "better" than database first from a DDD perspective. You can just map to the Domain Objects directly. Have I understood you correctly? | |
| Aug 3, 2017 at 19:17 | history | edited | Laiv | CC BY-SA 3.0 |
deleted 7 characters in body
|
| Aug 3, 2017 at 19:12 | history | edited | Laiv | CC BY-SA 3.0 |
added 53 characters in body; added 53 characters in body
|
| Aug 3, 2017 at 19:01 | history | answered | Laiv | CC BY-SA 3.0 |