You are not logged in.
Pages: 1
Hi all,
What is difference between DTO vs entities that inherited from TSQLRecord? and when be used?
Thanks in advance
Offline
Online
Thank you very much AB
Do you have any sample about using DTO and entities with together that how can I mapping between DTO and domain entities?
Your sample about DTO only using DTO .
Thanks again
Offline
Hmdsadeghian,
Did you read it?
https://github.com/synopse/mORMot/tree/ … ical%20DDD
In example 04 you have shown how to combine DTO with SQLRecord...
https://github.com/synopse/mORMot/blob/ … sitory.pas
Offline
Thanks a lot
Offline
I just use TSQLRecord-descendants, it feels handy, simple and no over-abstraction, and so far I don't see any drawbacks.
I know people must use DDD/DTO for a reason, but so far I feel it's a little over-abstraction for my own purpose, I might be wrong
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Pages: 1