LLBLGen: Auto generate DTO files

498 Views Asked by At

In my project I am using LLBLGen as ORM. I am able to generate entity objects for all the tables present in database but respective DTO objects are not getting generated automatically for all the table. I have to manually select each table and generate. Is there any automatic way to do this in one go? LLBLGen version used: 5.2

1

There are 1 best solutions below

1
David Elizondo On

DTO Model is a Derived Model in LLBLGen. You have to create Derived Model in you LLBLGen Designer. You add the DTO you want based on some entity, you repeat the process to add all the necessary DTOs you need.

Then when you generate code, you have the option to generate that specific Derived Model, which include all your DTOs.

More info: