You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When registering a Type with [DynamicLinqType] or with adding it in custom type provider, it gains precedence over passed input parameters. Even if the case is different from Type, type get higher preference.
Ideally input parameters should have highest priority.
2. Exception
Exception message:Unhandled exception. '.' or '(' or string literal expected (at index 3)
Stack trace: at System.Linq.Dynamic.Core.Tokenizer.TextParser.ValidateToken(TokenId tokenId, String errorMessage) in C:\Dev\GitHub\System.Linq.Dynamic.Core\src\System.Linq.Dynamic.Core\Tokenizer\TextParser.cs:line 451
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseTypeAccess(Type type, Boolean getNext) in C:\Dev\GitHub\System.Linq.Dynamic.Core\src\System.Linq.Dynamic.Core\Parser\ExpressionParser.cs:line 1658
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIdentifier() in C:\Dev\GitHub\System.Linq.Dynamic.Core\src\System.Linq.Dynamic.Core\Parser\ExpressionParser.cs:line 941
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimaryStart() in C:\Dev\GitHub\System.Linq.Dynamic.Core\src\System.Linq.Dynamic.Core\Parser\ExpressionParser.cs:line 817
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimary() in C:\Dev\GitHub\System.Linq.Dynamic.Core\src\System.Linq.Dynamic.Core\Parser\ExpressionParser.cs:line 785
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseUnary() in C:\Dev\GitHub\System.Linq.Dynamic.Core\src\System.Linq.Dynamic.Core\Parser\ExpressionParser.cs:line 780
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseMultiplicative() in C:\Dev\GitHub\System.Linq.Dynamic.Core\src\System.Linq.Dynamic.Core\Parser\ExpressionParser.cs:line 725
The text was updated successfully, but these errors were encountered:
abbasc52
changed the title
Type from registered registered type has higher preference than input parameter expression
Type from registered type has higher preference than input parameter expression
Aug 2, 2023
abbasc52
changed the title
Type from registered type has higher preference than input parameter expression
Type from registered type has higher preference than input parameter expression with same name
Aug 2, 2023
1. Description
When registering a Type with
[DynamicLinqType]
or with adding it in custom type provider, it gains precedence over passed input parameters. Even if the case is different from Type, type get higher preference.Ideally input parameters should have highest priority.
2. Exception
3. Fiddle or Project
If you are able,
Provide a Fiddle that reproduce the issue: https://dotnetfiddle.net/6nbGZ6
4. Any further technical details
Add any relevant detail that can help us.
The text was updated successfully, but these errors were encountered: