DataSet/DataTableAdapter是否可以认为是DAL?
我正在做一个三层架构的系统。我有 2 个名为 DAL 和 BLL 的文件夹。我可以将 Dataset.xsd 文件放在 DAL 文件夹中并将其视为该数据访问层吗?或者根据现实世界的情况这是错误的?
I am doing a system with 3 tier architecture. I have 2 folder named DAL and BLL. Can I put my Dataset.xsd file in DAL folder and consider it as a that data access layer. Or is it wrong according to real world situation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DAL 是直接处理数据存储和检索的任何东西。在您的情况下,
DataTableAdapter
直接处理数据层,因此被视为 DAL - 您是对的。BLL 将是您希望在 DAL 之上抽象的任何业务规则或附加功能。
DAL is anything dealing directly with the data storage and retrieval. In your case, the
DataTableAdapter
is dealing directly with the data layer and thus is considered DAL - you are correct.BLL will be any business rules or additional functionality that you wish to abstract above the DAL.