C#C
C#13mo ago
morry329#

✅ System.InvalidOperationException: No database provide has been configured for this DbContext

It is all about this newbie error

System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.


I have no clue what triggered all this. Could kindly point me in the right direction?

https://pastebin.com/RbkExv6j This is full code and full exception message for your reference.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?