kianyuen
Migration not reflecting Model correctly
Context: I'm using .NET core 6.0, ASP.NET MVC, trying to initiate the db with Migrations
Got this error:
I clearly defined the ParentId to be nullable here:
Any suggestion on how I can fix this? I think I can just modify the generated migration file, but I'm afraid that would break the migrations.
6 replies
How to stream bytes from SerialPort (System.IO.Ports) into a chart.
I'm using WPF on .NET Framework 4.8.
The packet that I'm trying to catch is sent at 250Hz.
I was under the assumption
My current basic implementation is as follow:
On port.DataReceived, I will collect the data then store it to another buffer to further process it later (to deal with potential last unfinished packet by just queueing them).
I personally think this is hacky and non-efficient, is there a better existing approach that I'm not aware of?
13 replies
ViewModel Command ran when I debugged, but the View is not updated
This is my ViewModel:
When initialized,
ExecuteShowBloodPressureViewCommand
ran normally, but when I use UI to run other commands, the Execute function still ran, but the View doesn't update.18 replies
Managed Debugging Assistant 'PInvokeStackImbalance'
I have a dll file that is originally used in a .NET Framework 3.5 Project.
I am trying to port that module to .NET Framework 4.8, but Managed Debugging Assistant keeps throwing the error mentioned above.
Turning off the MDA allowed the program to run, but is that recommended?
This is how I import a function from the dll file
11 replies