We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think it'll be convenient for users to manipulate the query to include desired referenced tables. What do you think?
The text was updated successfully, but these errors were encountered:
#74 specification pattern
c9826c0
How about specification pattern?
Sorry, something went wrong.
something like this...
var spec = new BaseSpecification<Product>(); spec.Includes.Add(a => a.Brand); var product = await _repository.GetByIdAsync<Product, ProductDetailsDto>(id, spec); return await Result<ProductDetailsDto>.SuccessAsync(product);
var spec = new BaseSpecification<Product>();
spec.Includes.Add(a => a.Brand);
var product = await _repository.GetByIdAsync<Product, ProductDetailsDto>(id, spec);
return await Result<ProductDetailsDto>.SuccessAsync(product);
PS, this is just the initial change.. There is a lot to refactor.
iammukeshm
No branches or pull requests
I think it'll be convenient for users to manipulate the query to include desired referenced tables. What do you think?
The text was updated successfully, but these errors were encountered: