Page 1 of 1

Out of memory exception serializing generated DTO objects

Posted: Sun 02 Feb 2014 03:55
by temelvin
I am receiving an out of memory exception when serializing DTO objects that were generated by the DTO template. This is being caused by the WCF [DataMember] attributes being applied to navigation properties that in turn down the chain re-reference the original DTO creating a closed loop. Is there a way to change the DTO template to avoid this behavior ? I noticed that some of the other templates have options to not mark navigation properties with WCF attributes.

I can simply remove the [DataMember] attribute from navigation properties in the generated classes and the problem goes away. However I want to avoid them being re-populated when the code is regenerated.

Re: Out of memory exception serializing generated DTO objects

Posted: Mon 03 Feb 2014 15:27
by Shalex
Thank you for your report. We will notify you when the property WCF DataMember Attribute on Navigation Properties is implemented for the Data Transfer Object template.

As a workaround, please set the DTO Classes In Associations property to False.

Re: Out of memory exception serializing generated DTO objects

Posted: Wed 12 Feb 2014 11:38
by Shalex
The "WCF DataMember Attribute on Navigation Properties" property is added to the Data Transfer Object template for pointing the end (-s) where the attribute should be generated. We will notify you when the corresponding build of dotConnect for Oracle is available for download.

Re: Out of memory exception serializing generated DTO objects

Posted: Thu 13 Feb 2014 16:26
by Shalex
New build of dotConnect for Oracle 8.2.100 is available for download!
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=1&t=28938.