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
Type String contain method StartsWith, but SKU as primitive type doesn't contain it.
In EF Core it leads me to use explicit converter in every place where I want to use some specific method.
I want to use expressions as in the third example. But it doesn't work and I know about it. Right now the solution is to use it like in the 2nd example.
The main problem is lack of internal type's methods using primitive types. Using Value is a lot more convenient way than using explicit operator.
Describe the solution you'd like
Primitive types is constructed by ValueConverter. Constructor of ValueConverter contains a LambdaExpression. The LambdaExpression can be deconstructed to expression tree where primitive type looks like x.Value or similar.
And the expression from database query also contains the same syntax in my third example.
Сan you consider adding this translation of LINQ expression?
The text was updated successfully, but these errors were encountered:
What problem are you trying to solve?
I use primitive types in my project. But primitive types doesn't contains all methods which exists in internal type.
Type String contain method StartsWith, but SKU as primitive type doesn't contain it.
In EF Core it leads me to use explicit converter in every place where I want to use some specific method.
My code:
I want to use expressions as in the third example. But it doesn't work and I know about it. Right now the solution is to use it like in the 2nd example.
The main problem is lack of internal type's methods using primitive types. Using Value is a lot more convenient way than using explicit operator.
Describe the solution you'd like
Primitive types is constructed by ValueConverter. Constructor of ValueConverter contains a LambdaExpression. The LambdaExpression can be deconstructed to expression tree where primitive type looks like x.Value or similar.
And the expression from database query also contains the same syntax in my third example.
Сan you consider adding this translation of LINQ expression?
The text was updated successfully, but these errors were encountered: