A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
Getting error when running repository test after upgrading to .Net 6.0 from .Net Core 3.1 and EF Core 6 from EF Core 3.1 with a stored procedure
Message:
System.NullReferenceException : Object reference not set to an instance of an object.
Stack Trace:
RelationalDatabaseFacadeExtensions.ExecuteSqlRawAsync(DatabaseFacade databaseFacade, String sql, IEnumerable`1 parameters, CancellationToken cancellationToken)
AuRepository.HasPermissionAsync(AppSession appSession, AppPermission permEntity) line 107
AuRepositoryTest.HasPermissionAsync() line 116
--- End of stack trace from previous location ---
Getting error when running repository test after upgrading to .Net 6.0 from .Net Core 3.1 and EF Core 6 from EF Core 3.1 with a stored procedure returning an int value. There is a service test that passes but the repository test is failing. Could you please advise on what could be going wrong with respect to repository test. Staying on EF Core 3.1 is not a solution as more unit tests failed for which the fix was to upgrade to EF Core 6