I am trying to get my head around business entities that you want to list in a grid or list where a user will pick one to edit/view.
Lets say 开发者_开发问答I have an Entity that have a lot of properties and collections, but my Grid will only display like 2 properties to the user. Besides using lazy loading on collections what would be the best / efficient way to load this data and display to the user?
I am thinking of creating a DTO object with the required properties and pass that to the UI. But I am worrying about over populating DTO's.
To do maintenance on an object you could allways use a Property Grid control if your are in c#.
With this you can view/edit collection and everything else.
精彩评论