© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
6 replies
Saiyanslayer

Database Design with EF Core: Two Entities share another Entity

I'm building a website to store Procedures, which contains multiple Steps. Both the procedure and the steps have Media entities, a wrapper for files stored on the server. The procedure has a single media (the header picture, one-to-one), but the steps have multiple images (many-to-many).

How can I handle the context setup?
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

❔ EF Core not getting all entities
C#CC# / help
3y ago
Entity framework core - database
C#CC# / help
2y ago
❔ Adding database entries with EF Core
C#CC# / help
3y ago
❔ Best Approach to deal with DDD Entities and EF Core Entities
C#CC# / help
3y ago