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
Todos os testes de integração quebram por conta da incompatibilidade dentre 'Microsoft.EntityFrameworkCore.InMemory' e 'Npgsql.EntityFrameworkCore.PostgreSQL'.
Stacktrace completo:
Message:
System.InvalidOperationException : Services for database providers 'Microsoft.EntityFrameworkCore.InMemory', 'Npgsql.EntityFrameworkCore.PostgreSQL' have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible, ensure that Entity Framework is managing its service provider by removing the call to 'UseInternalServiceProvider'. Otherwise, consider conditionally registering the database provider, or maintaining one service provider per database provider.
Todos os testes de integração quebram por conta da incompatibilidade dentre 'Microsoft.EntityFrameworkCore.InMemory' e 'Npgsql.EntityFrameworkCore.PostgreSQL'.
Stacktrace completo:
Message:
System.InvalidOperationException : Services for database providers 'Microsoft.EntityFrameworkCore.InMemory', 'Npgsql.EntityFrameworkCore.PostgreSQL' have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible, ensure that Entity Framework is managing its service provider by removing the call to 'UseInternalServiceProvider'. Otherwise, consider conditionally registering the database provider, or maintaining one service provider per database provider.
Stack Trace:
DbContextServices.Initialize(IServiceProvider scopedProvider, DbContextOptions contextOptions, DbContext context)
DbContext.get_ContextServices()
DbContext.get_InternalServiceProvider()
DbContext.get_DbContextDependencies()
DbContext.SetTEntity
BaseRepository1.ctor(XCompanyDBContext db) line 15
ProductRepositoryTest.ctor() line 19
RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
The text was updated successfully, but these errors were encountered: