Creating Phone Entity
Let's start by creating a new Entity, Phone in .Core project:
And PhoneConsts in Core.Shared project:
Phone entities are stored in PbPhones table. Its primary key is long and it inherits creation auditing properties. It has a reference to Person entity which owns the phone number.
We added a Phones collection to the People:
We have a PhoneType enum in .Core.Shared project as shown below:
Lastly, we're also adding a DbSet property for Phone to our DbContext: