Is it ever acceptable for a DTO to have instance methods which return derived values based on the DTO\'s data?Or should DTOs be pure data containers with no additional methods (other than getters/sett
I\'m using DataNucleus as a JPA implementation to store my classes in my web application.I use a set of converters which all have toDTO() and fromDTO().
I am using T4 for generation of some DTO classes + mappers. I am splitting the files in a number of re-usable bits (some of which containing common methods, some others common procedures) and includi
When using simple DTOs in various scenarios I have frequently run into the same kind of problem and I always wondered whether there\'s a better way to deal with it.
Is it ever appropriate to put functionality other t开发者_高级运维han basic setters and getters in a DTO?Well, in a number of scenarios you may well need some serialization code (for whatever serializ
First of all some context: I have a form, where I post back some objects that are automatically materialized into objects by MVCs built-in ModelBinder:
I\'m building an app with Rails 2.3.4 and using script/generate controller home index to generate a controller and home page. I\'ve got Haml installed. I get an erb file:
Background We have our own Business Object Architecture, a much lighter (...and loosely based on, but does\'nt actually use...) version of the \"CSLA\" business object framework with similar usage, v
I often need, depending on cases, of several DTOs for a same resource. Take the example of photo Albums. Depending of what i want to display, i\'ll need different data into my DTOs (creation thru a f
I have a standard Domain Layer entity: public class Product { public int Id { get; set; } public string Name { get; set; }