怎么叫也Access数据库DTO类? [英] How is called DTO class that also access db?

查看:159
本文介绍了怎么叫也Access数据库DTO类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

这篇关于怎么叫也Access数据库DTO类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆