-
-
Notifications
You must be signed in to change notification settings - Fork 382
feat(Table): add OnAfterDeleteAsync callback on DynamicContext mode #7832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1134,12 +1134,20 @@ protected async Task DeleteAsync() | |||||||||||||||||||
| { | ||||||||||||||||||||
| await DynamicContext.DeleteAsync(SelectedRows.OfType<IDynamicObject>()); | ||||||||||||||||||||
| ResetDynamicContext(); | ||||||||||||||||||||
|
|
||||||||||||||||||||
| // 触发删除回调方法 | ||||||||||||||||||||
| await TriggerDeleteCallback(); | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
Comment on lines
1136
to
+1140
|
||||||||||||||||||||
| ResetDynamicContext(); | |
| // 触发删除回调方法 | |
| await TriggerDeleteCallback(); | |
| // 触发删除回调方法 | |
| await TriggerDeleteCallback(); | |
| ResetDynamicContext(); |
Copilot
AI
Apr 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR changes behavior by firing OnAfterDeleteAsync/OnAfterModifyAsync in DynamicContext mode, but there doesn't appear to be a unit test asserting these callbacks are invoked (and with the expected deleted rows) for DynamicContext deletion. Adding a test alongside the existing DynamicContext_* Table tests would prevent regressions here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package version is changed to
10.5.1-beta01, but the PR description doesn’t mention a versioning/release intent. If this PR isn’t meant to publish a pre-release package, consider reverting this change; otherwise, document the reason for moving to a beta version in the PR description/release process notes.