Open zzzprojects opened 7 years ago
Hi,
When can we expect this to be fixed?
Thanks, Kevin
Hello @ksmithRenweb ,
Thank you for the reminder.
The v1.4.24 is now available which now support InMemory provider for Query Future.
Let me know if it's working.
Best Regards,
Jonathan
Update. For the most part your fix seems to work. We've had one bug report related to the In Memory Provider issue though.
The bug is in this code: Context.Table.Where(x => x.That = this).Update(y => new Item{Points = points});
This is the stacktrace.
<System.InvalidCastException: Unable to cast object of type 'Microsoft.EntityFrameworkCore.Query.Internal.InMemoryQueryContextFactory' to type 'Microsoft.EntityFrameworkCore.Query.Internal.RelationalQueryContextFactory'.
at Z.EntityFramework.Plus.InternalExtensions.GetDbContext[T](IQueryable1 source) at Z.EntityFramework.Plus.BatchUpdate.Execute[T](IQueryable
1 query, Expression`1 updateFactory)
at LessonManagementService.Repository.QuizRepository.Add(WebTestQuestion webTestQuestion) in C:\repos\renweb-backendservice\ManagementService\LessonManagementService\Repository\QuizRepository.cs:line 155
at LessonManagement.Tests.Service.Repository.QuizRepositoryTests.<>cDisplayClass7_0.
at LessonManagement.Tests.Service.Repository.QuizRepositoryTests.LM_QuizRepository_Add_1() in C:\repos\renweb-backendservice\Tests\LessonManagement.Tests\Service\Repository\QuizRepositoryTests.cs:line 181
Setting it to UpdateAsync works...
Issue from #86