Should Datasets be used in an enterprise level web application?(数据集是否应该在企业级 Web 应用程序中使用?)
问题描述
所以我在之前的一个项目中有一位架构师,他反对数据集.他讨厌它们,并说它们在 Web 应用程序中没有位置,特别是在具有大量流量的 Web 应用程序中.
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.
再次感谢大家!数据
推荐答案
Dino Esposito 文章 DataSets vs. Collections 可能是比较使用 Dataset 和 Collections 的一个很好的参考.
Dino Esposito article DataSets vs. Collections might be a good reference in comparing between using Dataset vs Collections.
我的偏好是遵循 域驱动设计的概念来使用域(业务对象)和集合 结合使用 NHibernate 进行数据持久化以及 依赖注入
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 应用程序中使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:数据集是否应该在企业级 Web 应用程序中使用?


- C# 中多线程网络服务器的模式 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 输入按键事件处理程序 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01