EFCore models
How does EF core know it's supposed to connect CategoryId with Category, is there a more explicit way to define this?
5 Replies
btw this works
I just want to know how and why
that's in class Tender
and then in class Category
it somehow connects them
there are a couple of naming conventions to declare relationships/navigationproperties
https://learn.microsoft.com/en-us/ef/core/modeling/relationships?tabs=fluent-api%2Cfluent-api-simple-key%2Csimple-key#conventions
Relationships - EF Core
How to configure relationships between entity types when using Entity Framework Core
ty