-
Is there an existing issue for this?
Describe the bug点击表格行中的编辑按钮,弹窗不执行修改操作直接关闭,报tracked错误。 Expected BehaviorNo response Steps To Reproduce复现操作截图如下: Exceptions (if any)No response .NET VersionNo response Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@KasimYe Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem. |
Beta Was this translation helpful? Give feedback.
-
增加检查是否已经跟踪了具有相同主键的实体,如果找到了已经被跟踪的相同主键实体,将其分离。 |
Beta Was this translation helpful? Give feedback.
-
在 @niubia 大佬的修改方案基础上,再完善一下,DefaultDataService 类的中 DeleteAsync 方法也要做同样分离的操作,不然也会发生 tracked 的错误。 |
Beta Was this translation helpful? Give feedback.
@KasimYe 由于组件未开启
IsTracking
编辑时内部克隆了一个实体类进行编辑,EFCore
数据服务取消时,不需要进行CancelAsync
即可