❔ EntityFrameworkCore

The libraries I am using are Quartz.NET and Discord.NET. I am adding the discord bot with AddHostedService. The job I am scheduling with 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. My worry is that how do I handle concurrency? If both the job is updating it and the bot is reading it.
1 Reply
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server