سؤال

The definition of DTO from Wikipedia is the following:

Data transfer object (DTO) is an object that carries data between processes. The difference between data transfer objects and business objects or data access objects is that a DTO does not have any behavior except for storage and retrieval of its own data (accessors and mutators). DTOs are simple objects that should not contain any business logic that would require testing.

If, instead, the class containing the Data is not used for data transfer and has also the methods for CRUD operation which should be the acronym of that kind of class?

هل كانت مفيدة؟

المحلول

It's called Active Records.

And it's indeed a very bad idea using it, as explained about everywhere.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top