I have a relationship that goes like this: A sale has a business (the business where the sale was made)
Then I have the business entity by itself, it is not related to sales.
Now, I made a change in the project, and I have to list the Businesses with their sales, so what I did was to the business entity to include a sales collection.
What happens is that when you run it, the business looks for your sales, and in turn that sale, looks for a business, and so I have a loop and I get an error (Self referencing loop detected with type)
Now, there is some way of telling the Business entity that when you go to look for your sales, do not bring the business (since you already have it because it is the same) I hope it has been understood, I am using Entity Framework 6 with Anotations and Code First. Thanks