public Class Animal
{
public int Id{get;set;}
public string Name {get;set;}
public ICollection<int> OwnerIds{ get; set; }
}
Animal class contains a list of int (ownerIds).
Entity framework is not creating a table for OwnerIds, how can i map this??
Add second entity Owner, only property is int ID, add a relationship/association between them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With