-
Notifications
You must be signed in to change notification settings - Fork 394
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
[DataGrid] Make EntityFrameworkAsyncQueryExecutor inheritable #3272
base: dev
Are you sure you want to change the base?
Conversation
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 59.4%
|
{ | ||
private readonly SemaphoreSlim _lock = new(1); | ||
|
||
/// <inheritdoc /> |
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.
Do we need to add virtual
for these public properties ?
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.
I don't think they should be made virtual
. If someone would have the need to override these, than they should probably be looking just implementing a whole different version of this IAsyncQueryExecutor
.
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.
So the PR description must be updated. Now "Make the EntityFrameworkAsyncQueryExecutor class public so that it can be inherited"
I thought that was the goal of this PR: to allow inheritance 🙃
Implement feature request #3269
Make the
EntityFrameworkAsyncQueryExecutor
class public so that it can be inherited from and theExecuteAsync
method can be overridden to provide custom query execution logic.Example:
Usage
When using a custom implementation, you need to add this custom implementation to the DI container in the
Program.cs
file yourself.You do not call the standard
AddDataGridEntityFrameworkAdapter
in this case.