EF 如何更新多对多关系的实体

ctx.Entry(user).Collection(t => t.UserPrivileges).Load();

Come form:https://www.thereformedprogrammer.net/updating-a-many-to-many-relationship-in-entity-framework/

posted @ 2019-07-10 15:49  猝不及防  阅读(489)  评论(0编辑  收藏  举报