We have separate DTOs for the Commands(Change customer address to X) vs Query (Show me customer details for Customer X). When a command comes in we just use all of it's information.
The one place where we did have to do some work was in terms of tracking lists. Our solution was to just have an Add/Remove list on the command DTO and do the work by hand. I think in the future it'd be interesting to look at some convention over configuration stuff to handle the add/remove handling via generics or something. On Oct 21, 1:09 pm, Kurt <[email protected]> wrote: > Thankfully i've had help in the area of not using domain in UI, but i'm > still not 100% on how a DTO would be able to fit into NH session > tracking? This may be a question based on a false premise, that DTO is two > way. I'm still really trying to get a handle on all of it. > > Thnaks > > > > On Wed, Oct 21, 2009 at 2:01 PM, Shane C <[email protected]> wrote: > > > I create screen and operation specific DTOs. That way they can > > contain as much or as little information as needed specific to their > > usage. > > > I also don't use my domain for displaying information on the UI. > > Instead I've pulled a few ideas from the Command/Query separation > > stuff that's been going on lately. > > > Regards, > > > Shane > > > On Oct 19, 12:12 pm, YankeeImperialistDog <[email protected]> > > wrote: > > > i'm really going overbord with DTO's in my quest for the "correct" > > > way. > > > > what do some of you consider correct for property naming? > > > > given a Customer and CustomerDTO (class) > > > > each with an id and a string for a Name property > > > > Customer.ID > > > Customer.Name > > > > what would the CustomerDTO properties be? > > > > Thanks > > > KES > > -- > Kurt Schroeder > EverybodySafe, llc > 847-800-7563www.IKnowTek.comwww.EverybodySafe.com > > Learning makes me feel alive. > > Sharing what I learn gives my life meaning! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
