WCF issue (serialization)

Thread is closed for posting
2 posts, 0 answers
  1. Jerves
    Jerves avatar
    3 posts
    Member since:
    Aug 2011

    Posted 08 May 2012 Link to this post


    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?
  2. Viktor Zhivkov
    Viktor Zhivkov avatar
    324 posts

    Posted 11 May 2012 Link to this post

    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.

    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!
Back to Top