DTOClasses namespace not found

Posts   
 
    
hchattaway
User
Posts: 38
Joined: 06-Apr-2006
# Posted on: 21-Jan-2018 20:17:49   

hello all,

I am trying out the generation of DTO's for the first time and I created one Derived model based on one entity...

After code generation, it creates a new folder with <namespace>.Persistence and in there are the methods "ProjectTo" and "UpdateFrom" etc.... and all of the methods in there reference the "DtoClasses" name space.. but no where do I see that defined... Looking at various threads on this, it seems there should be a "DtoClasses" folder created somewhere....

What is missing here? Thanks for all the great help? Harold

hchattaway
User
Posts: 38
Joined: 06-Apr-2006
# Posted on: 21-Jan-2018 20:43:52   

ok, found partial solution... it was generated in another directory, not named DTOClasses.. so I found the DTO class and moved it into the persistence folder and it works....

But should the DTOClasses folder been created automatically?

Thanks Harold

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 22-Jan-2018 05:32:40   

Hi Harold,

When you generate code and select DTO task, you can "Edit the tasks specifics" and put there the root folder where you want your classes generated. In that folder, two inner folders should be created, one for the DTOs (<yourRootNamespace>.Common) and Persistence (<yourRootNamespace>.Common.Persistence).

David Elizondo | LLBLGen Support Team
hchattaway
User
Posts: 38
Joined: 06-Apr-2006
# Posted on: 22-Jan-2018 16:02:34   

ok, thanks David... I'll try that out shortly!