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.
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.