Icollection和IList的使用 [英] Icollection and IList use

查看:95
本文介绍了Icollection和IList的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在做一些编码工作的项目.
在此使用3-T架构.在数据访问层中
通过
获取一些数据并将其发送到业务逻辑层 ICollection
或IList我出于安全原因而使用数据表的地方.
所以我的问题是
正确吗?
使用数据表时,安全性会体现出来吗?
:confused:

请清除我的疑问..:rose:

Hi all,

I am working on project where some of coding is done.
3-T architecture is used in this. In Data access layer
some data is fetched and sent to business logic layer through
ICollection
or IList where i was using datatable and this for "security reason".
so my question is
Is it correct?
and does security comes into picture when we are using datatable?
:confused:

Plz clear my doubt..:rose:

推荐答案

安全性与使用此类列表无关.与数据表相比,返回实体对象的列表更干净,更容易连接.
Security has nothing to do with using a list like this. It''s just cleaner and more disconnected to return a list of entity objects, than a datatable.


这篇关于Icollection和IList的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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