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
Please see the codes below
public string[] FindAssets() { string[] result; using (var ctx = new StockContext()) { var predicate = PredicateBuilder.New<Asset>().Or(asset => asset.Symbol.Contains("TSLA")); result = ctx.Assets.AsExpandable() .Where(predicate) .Select(z => z.Symbol) .ToArray(); } return result; }
When the code start exec at result = , it throws
result =
Exception: Unhandled expression type: 'Extension' LinqKit.ExpressionVisitor.Visit(Expression exp) LinqKit.ExpressionVisitor.VisitExpressionList(ReadOnlyCollection<Expression> original) LinqKit.ExpressionVisitor.VisitMethodCall(MethodCallExpression m) LinqKit.ExpressionVisitor.Visit(Expression exp) LinqKit.Extensions.Expand(Expression expr) LinqKit.ExpandableQueryProvider<T>.System.Linq.IQueryProvider.CreateQuery<TElement>(Expression expression) System.Linq.Queryable.Where<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
EF Core version: 5.0.0-preview.4.20220.10 Database provider: Microsoft.EntityFrameworkCore.SqlServer 5.0.0-preview.4.20220.10 Target framework: netcoreapp3.1 Operating system: Windows 10 IDE: Visual Studio 2019
The text was updated successfully, but these errors were encountered:
#116
Sorry, something went wrong.
@mannok Can you try https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore/5.0.0-preview.1 ?
Thank you so much!
I'll release LinqKit.Microsoft.EntityFrameworkCore version 5.0.0-preview.6 in some time.
5.0.0-preview.6
(I keep the same preview version as the one which is used by https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/5.0.0-preview.6.20312.4)
StefH
No branches or pull requests
Steps to reproduce
Please see the codes below
When the code start exec at
result =
, it throwsFurther technical details
EF Core version: 5.0.0-preview.4.20220.10
Database provider: Microsoft.EntityFrameworkCore.SqlServer 5.0.0-preview.4.20220.10
Target framework: netcoreapp3.1
Operating system: Windows 10
IDE: Visual Studio 2019
The text was updated successfully, but these errors were encountered: