原文:How to find foreign key field for navigation property?
For a given entity I can get all its references by calling var references = dbContext.Entry(entity).References; Now I want to set all references to null. foreach (var reference in references) { ...