我在使用EntityFramework
保留状态时收到如下错误MT-Reason:错误
MT-Fault-Message:找不到方法:'System.Threading.Tasks.Task`1 Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlCommandAsync(Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade, System.String,System.Threading.CancellationToken,System.Object [])'。
MT-Fault-StackTrace:在MassTransit.EntityFrameworkCoreIntegration.Saga.EntityFrameworkSagaRepository1.d__81.MoveNext() 在 System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start [TStateMachine](TStateMachine&安培; stateMachine)at MassTransit.EntityFrameworkCoreIntegration.Saga.EntityFrameworkSagaRepository1.SendQuery [T](SagaQueryConsumeContext2 context,ISagaPolicy2策略,IPipe1 next)at MassTransit.Saga.Pipeline.Filters.QuerySagaFilter2> - 发送> d__6.MoveNext() 在 在GreenPipes.Filters.TeeFilter1.d__5.MoveNext()处的MassTransit.Saga.Pipeline.Filters.QuerySagaFilter2.-发送> d__6.MoveNext() GreenPipes.Filters.OutputPipeFilter2.d__6.MoveNext() 在 GreenPipes.Filters.OutputPipeFilter2.-SEND> d__6.MoveNext() 在 MassTransit.Pipeline.Filters.DeserializeFilter.d__4.MoveNext() 在 GreenPipes.Filters.RescueFilter2.d__5.MoveNext()
我的所有测试都在通过,状态机正在使用InMemorySagaRepository
。
但是当我将其更改为EntityFrameworkSagaRepository
时,它很难存储并抛出错误。有什么建议吗?