Hello,
After I 'v updated DB connector from version "10.1.134.7" to "10.1.151.7" , I started to get errors on compiled queries. I'm using EF7 on NET7. In the previous version, everything worked pretty well.
Example of call:
- private static readonly Func<Model, IAsyncEnumerable<Table>> compiledQuery =
- EF.CompileAsyncQuery((Model ctx) => ctx.Table.AsNoTracking());
- await compiledQuery(context).ToArrayAsync(ct);
Error:
- InvalidOperationException: Calling 'ShapedQueryExpression.VisitChildren' is not allowed. Visit the expression manually for the relevant part in the visitor.
- Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression.VisitChildren(ExpressionVisitor visitor)
- Devart.Data.Oracle.Entity.l.VisitExtension(Expression node)
- Devart.Data.Oracle.Entity.g.Process(Expression query)
- Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor<TResult>(Expression query)
- Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery<TResult>(Expression query, bool async)
- Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore<TResult>(IDatabase database, Expression query, IModel model, bool async)
- Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CreateCompiledAsyncQuery<TResult>(Expression query)
- Microsoft.EntityFrameworkCore.Query.Internal.CompiledAsyncEnumerableQuery<TContext, TResult>.CreateCompiledQuery(IQueryCompiler queryCompiler, Expression expression)
- Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryBase<TContext, TResult>+<>c.<EnsureExecutor>b__6_0(CompiledQueryBase<TContext, TResult> t, TContext c, LambdaExpression q)
- Microsoft.EntityFrameworkCore.Internal.NonCapturingLazyInitializer.EnsureInitialized<TParam1, TParam2, TParam3, TValue>(ref TValue target, TParam1 param1, TParam2 param2, TParam3 param3, Func<TParam1, TParam2, TParam3, TValue> valueFactory)
- Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryBase<TContext, TResult>.EnsureExecutor(TContext context)
- Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryBase<TContext, TResult>.ExecuteCore(TContext context, CancellationToken cancellationToken, object[] parameters)
- Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryBase<TContext, TResult>.ExecuteCore(TContext context, object[] parameters)
- Microsoft.EntityFrameworkCore.Query.Internal.CompiledAsyncEnumerableQuery<TContext, TResult>.Execute(TContext context)