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
at Microsoft.EntityFrameworkCore.Query.Internal.NavigationExpandingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor)
at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
at Microsoft.EntityFrameworkCore.Query.Internal.NavigationExpandingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor)
at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
at Microsoft.EntityFrameworkCore.Query.Internal.NavigationExpandingExpressionVisitor.Expand(Expression query)
at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.Process(Expression query)
at Microsoft.EntityFrameworkCore.Query.RelationalQueryTranslationPreprocessor.Process(Expression query)
at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query)
at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass9_0`1.<Execute>b__0()
at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetEnumerator()
at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Test.Program.Main() in C:\Users\ASUS\Source\Repos\ConsoleApp_Test_Issue\Program.cs:line 39`
Exception output in IDE:
System.InvalidOperationException: 'The LINQ expression 'DbSet<Order>()
.GroupJoin(
inner: DbSet<BotTask>(),
outerKeySelector: o => o.Id,
innerKeySelector: bt => bt.OrderId,
resultSelector: (o, bt) => new {
Order = o,
BotTasks = bt
})' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.'
Include provider and version information
EF Core version: 5.0.16
Database provider: Microsoft.EntityFrameworkCore.Sqlite (5.0.16)
Target framework: NET 5.0
Operating system: Windows 10 Home Edition (build 19044.1645)
IDE: Visual Studio 2019 16.11.2
The text was updated successfully, but these errors were encountered:
Sergio1C
changed the title
GroupJoin clause is not working - EFCore throw an exception
GroupJoin clause is not working - EFCore throws an exception
Apr 24, 2022
Include your code
Include stack traces
Exception output in IDE:
Include provider and version information
EF Core version: 5.0.16
Database provider: Microsoft.EntityFrameworkCore.Sqlite (5.0.16)
Target framework: NET 5.0
Operating system: Windows 10 Home Edition (build 19044.1645)
IDE: Visual Studio 2019 16.11.2
The text was updated successfully, but these errors were encountered: