© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
4y ago
•
30 replies
Elio
❔ Unique Constraint Failed EF core
Hi
, i tried to add a new program bending with a userId but I
've this following error and i do not understand why because in my database i didn
't set unique value for the UserId even if it is an foreign key
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ UNIQUE constraint failed
C
C# / help
13mo ago
❔ Ef Core Unique Index Problem
C
C# / help
3y ago
EF Core
C
C# / help
2y ago