This inspection reports dependent relationship between the classes used in the context of Entity Framework. In the example below, a bidirectional relationship between Person and Animal forms a cycle: a Person has Pets (of type Animal), and each Animal has an Owner (of type Person):
publicclassPerson{publicint Id {get;set;}publicIList<Animal> Pets {get;}}publicclassAnimal{publicint Id {get;set;}publicPerson Owner {get;set;}}publicclassLocation{publicIList<Person> Clients {get;}publicIList<Animal> Pets {get;}}
note
You can disable all Entity Framework model-specific inspections by clearing the corresponding checkbox on the Editor | Inspection Settings | Entity Framework page of JetBrains Rider settings CtrlAlt0S.