© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
18 replies
tama

How does EF know what database to use?

Hello there.
I am building an entity related management system, and I'm wondering how EF know what database I want it to use. I am using .Net 8, and the only place I have referenced the database was in the Program.cs file, however, I have commented out that part and it is still able to update my database. How is that possible?
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

Does anyone know how to use this cue4parse
C#CC# / help
3y ago
✅ How does the button know what to do?
C#CC# / help
17mo ago
✅ Online Database: How To Use?
C#CC# / help
2y ago
What does null! do in EF CORE? [Answered]
C#CC# / help
4y ago