-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UseCoravelPro() error #8
Comments
Try |
The issue is that whatever type you pass to |
@jamesmh Thanks for your very fast answer :) I tried it
But I also tried to register DbContext like following (without interface):
But then I got this error message:
|
Did you try this combination? services.AddDbContext<SaldeoSynchronizatorContext>(
opts => opts.UseOracle(Configuration.GetConnectionString("SaldeoSynchronizatorDB"),
b => b.MigrationsAssembly(typeof(SaldeoSynchronizatorContext).Namespace))
);
services.AddCoravelPro(typeof(SaldeoSynchronizatorContext)); |
Yes, then I got this error:
EDIT: @jamesmh Wait, but this error is because I inject the dbcontext interface in another service... Hmm but isn't your library prepared for the injectable dbcontext? |
@jamesmh
|
I solved the problem by adding nuget package System.DirectoryServices.Protocols. There is nothing in a documentation about it - maybe you can add some info about it? :) |
That doesn't sound like an issue with Coravel Pro, but looks like some other transient dependencies that was missing. What version of .NET Core are you using? |
I'm using .NET Core 2.2 |
K. Coravel Pro has no dependency on DirectoryServices. Sounds like the either the Oracle provider or potentially something else in perhaps another project (maybe?) has a transitive dependency on that package - for some reason. I'll close this this now 👍 Glad you figure it out 😊 |
I have an error at this line:
app.UseCoravelPro()
. The error says:But according to the documentation I have registered it:
The text was updated successfully, but these errors were encountered: