.NET 9 - Devart.Data.Oracle.EfCore - NullReferenceException
Hi,
On EFCore 9, with today driver v10.4.191.9, many operators are failing with this error :
- System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression.PushdownIntoSubqueryInternal(Boolean liftOrderings)
at Microsoft.EntityFrameworkCore.Query.SqlExpressions.SelectExpression.PushdownIntoSubquery()
at NuKuCJsuoCT0G4HAkeu.V1HIAgerrF(Object, NuKuCJsuoCT0G4HAkeu)
at Devart.Data.Oracle.Entity.ClassicPagingVisitor.v4nXtb986G(SelectExpression )
at Devart.Data.Oracle.Entity.ClassicPagingVisitor.VisitSelectExpression(SelectExpression selectExpression)
at Devart.Data.Oracle.Entity.ClassicPagingVisitor.VisitExtension(Expression node)
at xKXfW2OyYoQIcN80hsY.V1HIAgerrF(Object, Expression, xKXfW2OyYoQIcN80hsY)
at Devart.Data.Oracle.Entity.ClassicPagingVisitor.VisitExtension(Expression node)
at xKXfW2OyYoQIcN80hsY.V1HIAgerrF(Object, Expression, xKXfW2OyYoQIcN80hsY)
at Devart.Data.Oracle.Entity.OracleQueryTranslationPostprocessor.Process(Expression query)
at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutorExpression[TResult](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__DisplayClass11_0`1.<ExecuteCore>b__0()
at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetAsyncEnumerator(CancellationToken cancellationToken)
at System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.GetAsyncEnumerator()
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
Everything is OK with EFCore 8 and previous version.
Packages used:
- Microsoft.EntityFrameworkCore: 9.0.1
- Devart.Data.Oracle.EFCore: 10.4.191.9
You can find a sample project in attachements.