Enity Frame work in webapi with all the tables in Database. In Database first approach. Error Self referencing loop detected. RRS feed

  • Question

  • User-1202100973 posted

    Hi Every one,

    I have a database with the multiple tables. i.e around 15 tables. And I have been using the Entity Frame used  EDMX to fetch Data.

    I have added all the tables (15)in the EDMX.  My data base is well designed with all the Primary Keys and Foreign keys.

    When I was using the webapi get and fetching the data its was showing me an error like infinite loop. 

    Self referencing loop detected

    But for test when I use 2-3 tables every thing is working fine.

    Is there any thing I need to after adding all the tables in the EDMX file Auto Mapping(As my mapping was done while creating the data base).

    Please any one help me fixing the issue.

    Thank you 


    Monday, August 28, 2017 3:55 AM


All replies