Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个具有 3 层架构的系统。我有 2 个名为 DAL 和 BLL 的文件夹。我可以将我的 Dataset.xsd 文件放在 DAL 文件夹中,并将其视为数据访问层。还是根据现实世界的情况是错误的?
DAL 是直接处理数据存储和检索的任何东西。在您的情况下,DataTableAdapter直接处理数据层,因此被认为是 DAL - 您是正确的。BLL 将是您希望在 DAL 之上抽象的任何业务规则或附加功能。
DataTableAdapter