CustomRepository Error #7
Replies: 1 comment
-
|
@juanitoDruort I'm so sorry for the delay. It's a matter of configuration. You need to specify the service provider instance which should be used by EF Core internally. Example: services.AddEntityFrameworkInMemoryDatabase(); // Use the method from your database provider to add the required services to the service provider
services.AddDbContext<AutenticacionContext>((provider, options) =>
{
options.UseInMemoryDatabase($"Async-{nameof(AutenticacionContext)}")
.UseInternalServiceProvider(provider); // Explicitly sets up the service provider instance
},
ServiceLifetime.Transient);By doing this, everything should work properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Agregar el servicio
Implementación de la interfase
Realizando el Test
Resultado
Beta Was this translation helpful? Give feedback.
All reactions