I have some question related to EF core.
1) Is it good to use relational database in EF core 2.1?
2) If i want to maintain one to one relation between then do i need to define navigation property in both entity(parent, child entity)?
3) i want to use the structure like below FK_ParentId is the foreign key which may be TeacherId or StudentId, How may i build the relationship while creating model in DBContext,
i) I don't want to keep navigation property in Address?
ii) If want to maintain one to one relationship, then how may i do it?
ii) It might be possible, A student might have more then one Address. so how to achieve this?
Class Address {
AddressId
FK_ParentId
Address
City
}
Class Student {
StudentId
Name
Address address
}
Class Teacher {
TeacherId
Name
Address address
}