Web API DAL entities (OnModelCreating)
hello, I need help with object modeling using my created ERD
6 Replies
If I have to have a "back relation" is modifier as
required
? (or record
or readonly
?)
example
for the Orders i dont have to backtrack the relation because i use the ID as the attribute
but when I have Offer
i have to backtrack to get the OnModelCreating working is that supposed to be correct?by back relation you mean navigation property?
yes
so that means I have to add a "return relation"
ICollection<Orders> Order {get;set;}
?
or? public object Offer { get; internal set; }
?