© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
33 replies
Jiry_XD

✅ EF Core Junction Tables with seperate columns

In EF Core:
I have entity X which has a list of Item Y
(This will let EF Core make a junction table to represent the many to many relationship)

Now as per my requirements I needed to add a Price to that junction table. So that the price only exists when and if there is a link between X and Y.

So I manually made the junction entity XY and added a single item of X and a single item of Y along with ints for their ID's and I added a decimal price.

Now my question is: Is this the correct way to add columns to Junction tables?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Selecting child tables using EF Core
C#CC# / help
3y ago
EF Core
C#CC# / help
2y ago
✅ EF Core migrations with Docker
C#CC# / help
11mo ago
Calculated Properties with EF Core
C#CC# / help
2y ago