EF Core and Defeating The Self Referencing Loop

I have come across an error “Self referencing loop detected for property…..” when working with EF Core. Turns out, EF is trying to return data that inherently has a self-referencing loop. The Json serializer is trying to take your object graph and create a hierarchy. For example, say we have an object called Order, an object called Product, and an…

Read more »