python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to ignore case when using filters with the mongo driver in dot net core with C#
I have an aggregates pipeline query as below:
string [] sids = { array of Student ids here };
string deptName = "math";
var pipeline = new BsonDocument[]
{
new BsonDocument(&qu...
user20358
Votes: 0
Answers: 1
Why it hangs, rather than throw when SemaphoreSlim is disposed while there's a thread waiting on it
Here's a simple implementation:
SemaphoreSlim s = new SemaphoreSlim(0, 1); // No resource available.
Task<bool> w = s.WaitAsync(TimeSpan.FromSeconds(2)); // Timeout in 2 seconds....

Saar
Votes: 0
Answers: 0
EF Core on .net5 - AddDbContext not working
This has been driving me up the wall as there should be no reason why AddDbContext in startup.cs isn't working. Anyone have any thoughts?
Project specs: .net 5, EF Core 5, MVC
PsContext.cs
public PsCo...

Mike Ooi
Votes: 0
Answers: 0
Why dotnet restore is not working and return platform error?
I am creating an API using dotnet 6 and while running dotnet restore I have the following error:
error MSB4126: The specified solution configuration "Debug|MCD" is invalid. Plid. Please spec...

fyardlest
Votes: 0
Answers: 0