This is a migrated thread and some comments may be shown as answers.

WCF issue (serialization)

1 Answer 37 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerves
Top achievements
Rank 1
Jerves asked on 08 May 2012, 01:33 PM
HI,

I have a lot of many-to-many relationships in my database. I have generated telerik ORM and try to pass one of the classes (say, Products) as a return type from a WCF service. In this case, as Products has multiple foreign key relationships I get a timeout error from the service (this is because of cyclic references generated by the ORM is what I am assuming). If I remove the FKey references from the Products table then the service function returns the Product without any problem..

How do I solve this issue when I have multiple foreign keys referenced?

1 Answer, 1 is accepted

Sort by
0
Viktor Zhivkov
Telerik team
answered on 11 May 2012, 11:18 AM
Hello Jerves,

Could you please give us a bit more details about the type of WCF services that you are using?
Are you passing the Entity types as result of the service methods?
If possible, please provide a code snippet of the code that you have so we can analyze it and assist you in the best possible way.

Regards,
Viktor Zhivkov
the Telerik team
Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Tags
Development (API, general questions)
Asked by
Jerves
Top achievements
Rank 1
Answers by
Viktor Zhivkov
Telerik team
Share this question
or