-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
There are lot's of duplicated code #44
Comments
@Zhao-Michael Thank you so much for reaching out. I shall take care of it. Or You can request an MR. |
Hi TanvirArjel, |
Hi @Zhao-Michael, I removed the duplicate code (#58). About lambda expressions: public virtual object? Find(
[DynamicallyAccessedMembers(IEntityType.DynamicallyAccessedMemberTypes)] Type entityType,
params object?[]? keyValues)
public virtual TEntity? Find<[DynamicallyAccessedMembers(IEntityType.DynamicallyAccessedMemberTypes)] TEntity>(
params object?[]? keyValues)
where TEntity : class
public virtual ValueTask<object?> FindAsync(
[DynamicallyAccessedMembers(IEntityType.DynamicallyAccessedMemberTypes)] Type entityType,
params object?[]? keyValues)
public virtual ValueTask<object?> FindAsync(
[DynamicallyAccessedMembers(IEntityType.DynamicallyAccessedMemberTypes)] Type entityType,
object?[]? keyValues,
CancellationToken cancellationToken)
public virtual ValueTask<TEntity?> FindAsync<
[DynamicallyAccessedMembers(IEntityType.DynamicallyAccessedMemberTypes)] TEntity>(params object?[]? keyValues)
where TEntity : class
public virtual ValueTask<TEntity?> FindAsync<[DynamicallyAccessedMembers(IEntityType.DynamicallyAccessedMemberTypes)] TEntity>(
object?[]? keyValues,
CancellationToken cancellationToken)
where TEntity : class However, these methods do not support Therefore, we use
Best Regards, |
The code to build 'expressionTree' are duplicated
https://github.com/TanvirArjel/EFCore.GenericRepository/blob/01a306dc7ed892806d669cdbc183138ad721c068/src/TanvirArjel.EFCore.QueryRepository/QueryRepository.cs#L330C2-L330C2
EFCore.GenericRepository/src/TanvirArjel.EFCore.QueryRepository/QueryRepository.cs
Line 389 in 01a306d
https://github.com/TanvirArjel/EFCore.GenericRepository/blob/01a306dc7ed892806d669cdbc183138ad721c068/src/TanvirArjel.EFCore.QueryRepository/QueryRepository.cs#L571C38-L571C38
The text was updated successfully, but these errors were encountered: