Serialization attribute not generated

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Serialization attribute not generated

Post by crazypit » Mon 14 Dec 2009 14:53

Hello,

If i set the Serialization Mode to Unidirectional, all properties that are generated through an Association, do not get a DataMember Attribute and therefore cannot be serialized.

crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Post by crazypit » Tue 15 Dec 2009 11:19

Specifically the Child property do not get a DataMember attribute. e.g. A Case is a child of a CaseType. The CaseType property on the Case class do not get the attribute.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 15 Dec 2009 11:24

I have just made some tests using the upcoming build and the DataMember attribute is generated successfully for Associations.
Could you please provide us a detailed description of the problem, maybe with code samples?

crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Post by crazypit » Tue 15 Dec 2009 11:33

Ok, maybe the problem is generated on a more complex design. Is there a way to send you the .view file in order to check it yourself?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 15 Dec 2009 12:24

Please send the test model illustrating the problem to support * devart * com, subject "ED: Unidirectional Serialization".

crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Post by crazypit » Tue 15 Dec 2009 12:46

Model sent...

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 06 Jan 2010 08:58

We have fixed the problem with the wrong Order number generation.
As for the DataMember attribute, it is not generated for the Microsoft models also in the similar situation.
The reason is that this attribute is not necessary for the successful deserialization of the model.

Post Reply