erikojebo/WeenyMapper — Issue #47: Support read/write for entities with relationship mapped as both reference property and foreign key value
Author: erikojebo
Created: 2012-02-03 02:27:34+00:00
State: open

For example:

public class Employee
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime BirthDate { get; set; }

public int ManagerId { get; set; }
public int CompanyId { get; set; }

public Company Company { get; set; }
public Employee Manager { get; set; }
public IList Subordinates { get; set; }
}