I'm starting with EF 4.1 code first and I was wondering if somebody out there can help me understand the best way to map this scenario:
I have a class Address:
public class Address
{
public int Id { get; set; }
public string Line1 { get; set; }
public string Line2 { get; set; }
public string City { get; set; }
public string State { get; set; }
public string ZipCode { get; set; }
}
And I have two other classes who has addresses:
A) Company has Office Address (required) and Mailing Address
A) Person has Home Address (required), Work Address and "Other Address"
The same scenario also happens with phone numbers. I really appreciate any help on this. Thanks in advance.