Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #229 +/- ##
==========================================
+ Coverage 96.63% 96.64% +0.01%
==========================================
Files 41 41
Lines 6654 6683 +29
==========================================
+ Hits 6430 6459 +29
Misses 224 224
Continue to review full report at Codecov.
|
Collaborator
|
Good point, thanks for the PR. However I would propose this:
For item 1 and 2: public interface IQueryProviderAnalyzer
{
bool IsProviderEnumerableQuery(IQueryProvider provider)
}And default implementation is public class DefaultQueryProviderAnalyzer
{
public bool IsProviderEnumerableQuery(IQueryProvider provider)
{
// copy code from ParsingConfig -> IsProviderEnumerableQuery method here
}
}Item 3 would be like: public IQueryableProviderAnalyzer QueryableProviderAnalyzer
{
get
{
return _queryableProviderAnalyzer ?? (_queryableProviderAnalyzer = new DefaultQueryableProviderAnalyzer());
}
set
{
if (_queryableProviderAnalyzer != value)
{
_queryableProviderAnalyzer = value;
}
}
} |
StefH
previously requested changes
Nov 25, 2018
Collaborator
|
I will take a look and try to refactor the code... |
Collaborator
|
@david-garcia-garcia - I did update the code, please take a look. |
Collaborator
|
@david-garcia-garcia : can you please take a look at my updates for this PR? |
Contributor
Author
|
Looks impecable! Been bussy... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current implementation of IsLinqToObjects might no always return the correct result because there is no specificatin or reliable way of actually answering the question "IsLinqToObjects".
I..e in our project we are using LinqKit's AsExpandable() and we had to extend the current implementation by forking:
The proposal is to move IsLinqToObjects to the ParsingConfig object, so that users can customize it depending on what libraries they are using.
This is of course a breaking change as it breaks the current's library public contract.