© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
Seth

Entity Framework DbContextOptionsBuilder.UseSqlServer() missing definition

I just installed the newest version of Entity Framework (6.0.9) and am inside my program.cs trying to run this line
builder.Services.AddDbContext<MyDbContext>(options => options.UseSqlServer(blah blah);
builder.Services.AddDbContext<MyDbContext>(options => options.UseSqlServer(blah blah);


But DBContextOptionsBuilder is complaining saying that definition doesn't exist. I am using Microsoft.EntityFrameworkCore package and can see other DBContextOptionsBuilder definitions but not this one. I am very new to ASP.NET and Entity Framework.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Entity framework
C#CC# / help
14mo ago
❔ Entity Framework
C#CC# / help
3y ago
❔ Entity Framework
C#CC# / help
4y ago
Entity Framework Entity Saving
C#CC# / help
11mo ago