怎么叫也Access数据库DTO类?数据库、Access、DTO

2023-09-06 11:17:43 作者:|▍说伱爱俄╮

DTO 从维基百科的定义如下:

The definition of DTO from Wikipedia is the following:

数据传送对象(DTO)的是一个对象,进行进程间的数据。 数据传输对象和业务对象或数据访问对象之间的区别在于,一个的 DTO不具有除用于存储其自己的数据(accessor和mutator)和检索的任何行为。的DTO是不应该包含这将需要测试的任何业务逻辑简单的对象。的

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.

如果,相反,不用于数据传输的包含数据的类,并且还具有的方法CRUD操作,它应该是那种类的

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?

推荐答案

这就是所谓的的活动记录

和它确实是一个非常糟糕的主意使用它,因为到处都是解释有关。

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

 
精彩推荐
图片推荐