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 应用程序中使用?
基础教程推荐
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30