Juicy
Explore posts from serversDbConcurrencyException, what am I missing?
Hi, getting this on the SaveChangesAsync and im not really sure what im doing wrong.
DbConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded.
Inside UserService.cs:
Inside User.cs:
Inside UserRepository.cs:
62 replies
❔ SignalR for real-time REST api data in WPF?
Hey,
Im working on a hobby WPF application that needs to consume a rest api for real-time updates on game camera positions. Since the camera position data is always updating I want my wpf app to reflect those updates in realtime....would signalR be a good solution or is api polling good enough?
Or anyone has any other recommendations for a straightforward way to ensure the client recieves near real-time updates from the rest api?
Thanks!
45 replies
No route matches supplied values but values seem to match?
Hi I am getting this error on return CreatedAtAction:
But how are the route values incorrect when im giving it productId and the userId? To note, they also exist in the same controller and user.Id + productId are both guids (productId comes from parameter).Dont really understand what im missing here, let me know if you need me to provide more information
38 replies