Replies: 6 comments 3 replies
-
还有就是 动不动就报: System.Exception:“AggregateRootRepository 使用仓储对象查询后,才可以保存数据 (1, False, False, 2023/11/24 11:09:46, api, 2023/11/24 11:09:46, api, , 2, 0, Txt)” 这...我明明就是从仓储里面查出来的根实体对象. 而且 即使开启了EnableCascadeSave 结果也还是一样,每次只会新增一条记录. |
Beta Was this translation helpful? Give feedback.
-
更新了最新版本的FreeSql,问题依旧. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
聚合根仓储的状态管理有要求,查询的时候,不要指定查询 直接 ToList() |
Beta Was this translation helpful? Give feedback.
-
指定字段查询,不会进入状态管理,更新的时候就会报错先查询再更新的错误 |
Beta Was this translation helpful? Give feedback.
-
看最新的release日志,貌似可能是解决了?可喜可贺,那就先关掉了。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
请加一下怎么导航属性,我用的聚合根仓储,这个级联保存怎么保存?
因为我发现,FreeSql只会保存LabelParamType.Params 中第一个Id=0的数据,其他数据都会被忽略.
不管是调用InsertOrUpdate 还是调用SaveMany结果都是一样的.
获取仓储的时候我也特地手动开启了
repo.DbContextOptions.EnableCascadeSave = true;
我的FreeSql版本是:
说实话我不敢升级:因为去年我升级了几个版本,普遍存在一些bug.这个版本当时相对稳定一点.
一旦升级后就会出现 一些不报错的地方开始报错.
所以我已经很久没升级了.
Beta Was this translation helpful? Give feedback.
All reactions