© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
KKSK@🌸🎵🌸🎵🌸

❔ EntityFrameworkCore

The libraries I am using are
Quartz.NET
Quartz.NET
and
Discord.NET
Discord.NET
.
I am adding the discord bot with
AddHostedService
AddHostedService
.
The job I am scheduling with
Quartz.Net
Quartz.Net
basically updates my database every 30 minutes.
I would like to enable the discord bot to interact return a query from the database updated by the scheduled job.
I was told to add the db with
AddDbContext
AddDbContext
.
My worry is that how do I handle concurrency? If both the job is updating it and the bot is reading it.
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

✅ EntityFrameworkCore lists
C#CC# / help
4y ago
❔ Mocking with EntityFrameworkCore
C#CC# / help
4y ago
WPF Database records question (EntityFrameworkCore)
C#CC# / help
3y ago
❔ EntityframeworkCore starts project on migration
C#CC# / help
4y ago