ctx.Entry(user).Collection(t => t.UserPrivileges).Load();
Come form:https://www.thereformedprogrammer.net/updating-a-many-to-many-relationship-in-entity-framework/
ctx.Entry(user).Collection(t => t.UserPrivileges).Load();
Come form:https://www.thereformedprogrammer.net/updating-a-many-to-many-relationship-in-entity-framework/
转载于:https://www.cnblogs.com/swobble/p/11164449.html