应该在企业级Web应用程序中使用数据集吗? [英] Should Datasets be used in an enterprise level web application?
问题描述
我注意到在许多情况下
他们真的那么糟糕/性能杀戮吗?
我应该考虑用数据库的大量使用来替代它们,并将它们替换为通过数据读取器填充的列表?
我很好奇听到你们都有发现主题或你的偏好。
再次感谢!数据
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屋!