C
C#2y ago
barcode

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
barcode
barcode2y ago
btw this works I just want to know how and why that's in class Tender and then in class Category
barcode
barcode2y ago
barcode
barcode2y ago
it somehow connects them
undisputed world champions
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
barcode
barcode2y ago
ty