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 |