Replies: 1 comment 3 replies
-
这个问题确实有点坑,只要是引用类型都不行。 粗爆解决方法,如果指定必更新可以 Attach 后重新 new 一次,或者 尝试 Clone 一次: entity.JsonMapProperty = new |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
参考问题:#280
Repository Update 下 JsonMap 字段无法自动更新,建议增加一个参数是否强制更新 JsonMap 字段,毕竟 JsonMap 字段是否更新,使用的人最清楚。
如: int Update(TEntity entity, bool withJsonMap);
withJsonMap 设置为 true 时强制更新 JsonMap 字段
Beta Was this translation helpful? Give feedback.
All reactions