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.
在我的项目中,我使用 LLBLGen 作为 ORM。我能够为数据库中存在的所有表生成实体对象,但不会为所有表自动生成相应的 DTO 对象。我必须手动选择每个表并生成。有没有一种自动的方法可以一次性做到这一点?使用的 LLBLGen 版本:5.2
DTO 模型是 LLBLGen 中的派生模型。您必须在 LLBLGen 设计器中创建派生模型。您根据某个实体添加所需的 DTO,重复该过程以添加所需的所有必要 DTO。
然后,当您生成代码时,您可以选择生成包含所有 DTO 的特定派生模型。
更多信息: