用于将数据从一个层返回到另一个层的数据表或通用列表? [英] Datatable or generic list to return data from one layer to another ?

查看:50
本文介绍了用于将数据从一个层返回到另一个层的数据表或通用列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑是否使用数据表或通用列表将值从dal传递到bal和ui,因为尽管使用了数据表或通用列表,但数据量相同?



谷歌上的一些帖子说它没有太大的区别,有些人说列表比数据表更好?



请证明....... ..?



另外,如何通过3层架构中的通用列表在gridview中实现排序?

请提供步骤和示例它的解释。



我尝试了什么:



排序gridview in 3层架构..............

解决方案

使用通用列表,因为它比数据表更轻量级,并且它也是强类型的

I am confused whether to use datatable or generic list to pass values from dal to bal and ui since the amount of data is same despite of using both datatable or generic list ?

Some posts on google says it doesn't make much difference while some says list is better over datatable ?

Please justify.........?

Also, how to implement sorting in gridview through generic list in 3 tier architecture ?
Please provide a example with steps and its explanation.

What I have tried:

sorting gridview in 3 tier architecture..............

解决方案

Use a generic list as it's more lightweight than a datatable and it's also strongly typed.


这篇关于用于将数据从一个层返回到另一个层的数据表或通用列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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