dto
How do I use AutoMapper to populate back to a DataTable?
I\'m using AutoMapper which is a great tool. There\'s lots of examples converting from DataTable/IDataRead to DTO\'s but I can\'t seem to find any that convert the DTO back to a DataTable.[详细]
2023-01-04 22:35 分类:问答Is it good practice to have DTO objects deepy integrated in code?
I\'m building a fairly large application that makes use of the DAO/DTO design pattern to obtain data from a database. In the application a particular DTO has become the \"core data structure\" in that[详细]
2023-01-04 04:37 分类:问答With NHibernate, how can I create an INHibernateProxy?
After lots of reading about serialization, I\'ve decided to try to create DTOs. After more reading, I decided to use AutoMapper.[详细]
2023-01-03 21:27 分类:问答Different types of Id when exposing DTO over WCF
Lets say we have a simple DTO with properties Id, Name. If this DTO comes from database through some data layer, Id should be of type int. If this DTO comes from Activ开发者_如何学Pythone Directory, t[详细]
2023-01-01 19:13 分类:问答Dozer mapping for Hibernate object to DTO
I try to use Dozer to convert my domain entity to DTO objects. So, I want to convert PersistentList, PersistentBag, ... from my domain entity to ArrayList, ... in my DTO objects to avoid lazy problem.[详细]
2022-12-29 23:24 分类:问答MVVM pattern: ViewModel updates after Model server roundtrip
I have stateless services and anemic domain objects on server side. Model between server and client is POCO DTO. The client should become MVVM. The model could be graph of about 100 instances of 20 di[详细]
2022-12-26 20:09 分类:问答Should business objects be able to create their own DTOs?
开发者_开发百科Suppose I have the following class: class Camera { public Camera( double exposure, double brightness,[详细]
2022-12-25 23:26 分类:问答In DDD, how do you work with multiple repositories for read-only lists
What do you do if you need to generate a read-only list of data on a page and that data would naturally come from several, potentially 5 or more different repositories?[详细]
2022-12-24 14:42 分类:问答Convert XML to Java DTO and back in GWT
Looking for best approach to convert Java DTO to XML and back while using GWT.I saw GWT has XMLParser in its client package which is a DOM Parser.I\'m looking for more like a JAXB kind of plugin featu[详细]
2022-12-23 04:27 分类:问答MVC: Is it considered bad form to give a DTO a reference to the data access layer?
Is it considered bad form to give a DTO a reference to the data access layer? Or should you always pass a DTO between the data access layer and the application layer?[详细]
2022-12-21 01:05 分类:问答