【发布时间】:2019-08-02 03:54:36
【问题描述】:
我一直在我的 dotnet 核心 Web 应用程序中使用这个 Reconciler plugin。
类似于GraphDiff,但是这个插件支持ef core。
当我更新我的模型时,我有这些线条。
_context.Reconcile(applicationForm, r => r.WithMany(m => m.AccessArea).WithMany(m => m.TrainingRecord));
await _context.SaveChangesAsync();
问题是,Reconcile() 不接受 null 参数,所以当我传递 null 子实体时会出错。
AggregateException: One or more errors occurred. (Value cannot be null. Parameter name: source)
有什么解决方法吗?
非常感谢!
【问题讨论】:
标签: c# asp.net-core web-applications .net-core ef-core-2.2