© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
2y ago
•
5 replies
restingphantom131
✅ Setting Foreign key as Primary Key (EF Core)
I want to set a foreign key as my primary key in a link table im using
. How would I do this in EF Core
? or would it be better to not have a 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
❔ ef core foreign key problem
C
C# / help
4y ago
EF Core Nullable Foreign Key Relationship
C
C# / help
7mo ago
❔ Ef core creating shadow foreign key, why?
C
C# / help
3y ago