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
Message:
System.ArgumentException : Expression of type 'Microsoft.EntityFrameworkCore.Relational.Query.Pipeline.RelationalShapedQueryCompilingExpressionVisitor+QueryingEnumerable`1[Oculos.Gnaf.Courses.ReadModels.Models.Course]' cannot be used for parameter of type 'System.Linq.IQueryable`1[Oculos.Gnaf.Courses.ReadModels.Models.Course]' of method 'System.Linq.IQueryable`1[Oculos.Gnaf.Courses.ReadModels.Models.Course] IgnoreQueryFilters[Course](System.Linq.IQueryable`1[Oculos.Gnaf.Courses.ReadModels.Models.Course])'
Parameter name: arg0
Stack Trace:
at ExpressionUtils.ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arguments, ParameterInfo pi, String methodParamName, String argumentParamName, Int32 index)
at Expression.Call(MethodInfo method, Expression arg0)
at MethodCallExpression1.Rewrite(Expression instance, IReadOnlyList`1 args)
at ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
at MethodCallExpression.Accept(ExpressionVisitor visitor)
at ExpressionVisitor.Visit(Expression node)
at QueryCompilationContext2.CreateQueryExecutor[TResult](Expression query)
at Database.CompileQuery2[TResult](Expression query, Boolean async)
at QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async)
at <>c__DisplayClass9_0`1.<Execute>b__0()
at CompiledQueryCache.GetOrAddQueryCore[TFunc](Object cacheKey, Func`1 compiler)
at CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler)
at QueryCompiler.Execute[TResult](Expression query)
at EntityQueryProvider.Execute[TResult](Expression expression)
at EntityQueryable`1.GetEnumerator()
at List`1.ctor(IEnumerable`1 collection)
at Enumerable.ToList[TSource](IEnumerable`1 source)
@jose8789 First, many thanks for trying preview 6. We really appreciate people trying the previews and filing issues on what they find.
If you haven't seen it already, there is some good information in the preview announcement post about the changes that are happening to LINQ queries for EF Core 3.0. Preview 6 is the first release containing these changes, which means we are both expecting things to be broken, but at the same time very grateful for everyone who tries the release and generated feedback.
Note from triage: In this case, query filters is something that is not working in this preview. @smitpatel Do we have/need a specific issue tracking this?
I have a simple repository with a method to retrieve all courses
and it gives the current error
Steps to reproduce
in dbcontex
in repository:
Further technical details
EF Core version: 3.0.0-preview6.19304.10
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system:
IDE: (e.g. Visual Studio 2019 16.2)
The text was updated successfully, but these errors were encountered: