Search
Get Started
C
C#
•
2y ago
restingphantom
✅ 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,124
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
❔ ef core foreign key problem
C
C# / help
3y ago
EF Core Nullable Foreign Key Relationship
C
C# / help
6mo ago
❔ Ef core creating shadow foreign key, why?
C
C# / help
3y ago