- Published on
- Authors
- koskila
How to solve 'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer' error in .NET Core?
This is another, kind of a classic and simple solution to a fairly simple problem: How to fix it, when your DbContextOptionsBuilder fails to take in your connection string and complains about UseSqlServer missing or whatever? AI-powered summary: Efficiently Solve ‘DbContextOptionsBuilder’ Error in .NET Core The ‘DbContextOptionsBuilder’ error in .NET Core arises when setting up DbContext. The ‘UseSqlServer’ method is not found during the build. The solution is to add the ‘Microsoft.
























