You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In EFCore 6, the ModelExtensions class suffered many updates, and the FindEntityType method was turned obsolete. You're using it here. The following error is thrown when using Ziggurat with EFCore 6:
Method not found: 'Microsoft.EntityFrameworkCore.Metadata.IEntityType Microsoft.EntityFrameworkCore.ModelExtensions.FindEntityType(Microsoft.EntityFrameworkCore.Metadata.IModel, System.Type)'.
---> System.MissingMethodException: Method not found: 'Microsoft.EntityFrameworkCore.Metadata.IEntityType Microsoft.EntityFrameworkCore.ModelExtensions.FindEntityType(Microsoft.EntityFrameworkCore.Metadata.IModel, System.Type)'.
at DotNetCore.CAP.Internal.SubscribeInvoker.InvokeAsync(ConsumerContext context, CancellationToken cancellationToken)
at DotNetCore.CAP.Internal.SubscribeDispatcher.InvokeConsumerMethodAsync(MediumMessage message, ConsumerExecutorDescriptor descriptor, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at DotNetCore.CAP.Internal.SubscribeInvoker.InvokeAsync(ConsumerContext context, CancellationToken cancellationToken)
at DotNetCore.CAP.Internal.SubscribeDispatcher.InvokeConsumerMethodAsync(MediumMessage message, ConsumerExecutorDescriptor descriptor, CancellationToken cancellationToken)
Take a look at other packages that faced similar issues:
Thanks for bringing this issue to my attention @luizhlelis. Added support for net6 fo Ziggurat, which enables usings CAP 6.0.* and EF Core 6.0.*
The changes were shipped on the 1.0.0 version (without the beta suffix)
In
EFCore 6
, theModelExtensions
class suffered many updates, and theFindEntityType
method was turned obsolete. You're using it here. The following error is thrown when usingZiggurat
withEFCore 6
:Take a look at other packages that faced similar issues:
EFCore.BulkExtensions
AutoMapper.Collection.EFCore
The text was updated successfully, but these errors were encountered: