应该在企业级Web应用程序中使用数据集吗? [英] Should Datasets be used in an enterprise level web application?

查看:149
本文介绍了应该在企业级Web应用程序中使用数据集吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个以前的项目的架构师,他们反对数据集。他讨厌他们,并表示他们在网络应用程序中没有任何地方,特别是一个流量很大的网络应用程序。



我注意到在许多情况下



他们真的那么糟糕/性能杀戮吗?



我应该考虑用数据库的大量使用来替代它们,并将它们替换为通过数据读取器填充的列表?



我很好奇听到你们都有发现主题或你的偏好。



再次感谢!数据

解决方案

Dino Esposito文章数据集与集合可能在比较使用数据集与集合之间是一个很好的参考。



我的偏好是使用域(业务对象)和集合,遵循域驱动设计结合使用NHibernate的数据持久性,还有一个依赖注入


So I had an architect on a previous project who railed against Datasets. He hated them, and said they had no place in a web application, specifically a web app which will have a lot of traffic.

I've noticed in many instances of code I've taken over that Datasets are used quite heavily.

Are they really that bad/performance killing?

Should I think about gutting the application of it's heavy use of datasets and replace them with lists populated via data readers?

I'm curious to hear what you all have found on the topic, or what your preference is.

Thanks again guys!data

解决方案

Dino Esposito article DataSets vs. Collections might be a good reference in comparing between using Dataset vs Collections.

My preference is using Domain (Business Objects) and Collections by following the concept of Domain Driven Design combined with using NHibernate for the data persistence and also Dependency Injection

这篇关于应该在企业级Web应用程序中使用数据集吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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