DTO - Data Transfer Objects

Posts   
 
    
Posts: 112
Joined: 09-Aug-2004
# Posted on: 22-Jun-2009 20:27:15   

I have been using the DTOs from Thread 13256 - "DTO's and WCF - My Templates Provided"

They have been working pretty well, but I ran into an issue when there are multiple levels of table inheritance. I fixed this issue by returning the Root Entity Type name and moving base.ToEntity() to the top of the method. Also, in thread 13256 a user mentioned ReadOnly fields are overwritten so I added a check for to omit those. Lastly I changed the spaces to tabs. The template bindings point to 3.x now.

I have attached my changes.

Attachments
Filename File size Added on Approval
DTOTemplates.zip 4,270 22-Jun-2009 20:27.31 Approved
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 23-Jun-2009 03:44:20   

Thanks for the contribution. For the records, the mentioned thread is http://llblgen.com/TinyForum/Messages.aspx?ThreadID=13256

Maybe you should put a link to this thread at the original discussion so those users can see your contribution wink

David Elizondo | LLBLGen Support Team
Rushmore
User
Posts: 125
Joined: 27-Jan-2005
# Posted on: 04-Nov-2010 00:38:46   

daelmo wrote:

http://llblgen.com/TinyForum/Messages.aspx?ThreadID=13256

These templates aren´t LLBLGen 3.0 compatible? What do I have to change that the DTO templates are working with LLBLGen 3.0?

Thanks in advance.

Kind regards, Carlo

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 09-Nov-2010 21:21:52   

Have you tried the templates attached to the first message in this thread...?

Matt

Rushmore
User
Posts: 125
Joined: 27-Jan-2005
# Posted on: 10-Nov-2010 12:45:52   

MTrinder wrote:

Have you tried the templates attached to the first message in this thread...?

Matt

Yes of course. LLBLGen doesn´t start. Maybe the missing framework sections are the problem (LLBLGen, Entityframework etc.)

Regards Carlo