© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
barcode

❔ EFCore One-To-One

Hello, I am trying to save working hours as an entry in the database for each business. One approach is to store 14(7 days * 2 from,to) columns, other approach I thought of is to move this to a separate entity WorkingHour which contains from and to and have 7 of them. How would I make the entity convertible to db since it is not normal int, string and it is not a separate entity with a separate table?
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

❔ EFCORE DESIGN ONE TO MANY
C#CC# / help
3y ago
❔ EFCore: One has mutliple Entities
C#CC# / help
3y ago
❔ Can't seed one-to-many relation efcore
C#CC# / help
3y ago
SQL EFCore
C#CC# / help
2y ago