title: How to Map many one-to-many relationship in ASP.NET MVC?
body: <p>I have few Domain Models - <code>Address</code>, <code>Customer</code>, <code>Employee</code>, <code>StoreLocation</code>. <code>Address</code> has many to one relationship with <code>Customer</code>and <code>Employee</code> and one to one relationship with StoreLocation.</p>
  
  <pre><code>public class Address
  {
      public int Id;
      public string Line1 { get; set; }
      public string Line2 { get; set; }
      public string Line3 { get; set; }
  }
  
  public class Customer
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public IList&lt;Address&gt; Addresses { get; set; }
  }
  
  public class StoreLocation
  {
      public int Id { get; set; }
      public string ShortCode { get; set; }
      public string Description { get; set; }
      public Address Address { get; set; }
  }
  
  
  public class Employee
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public DateTime Dob { get; set; }
      public IList&lt;Address&gt; Addresses { get; set; }
  }
  </code></pre>
  
  <p>How to Map this relationship?. I am using ASP.NET MVC 3.0 and Entity Framework 4.1.</p>