假设我有这样的课程:
public class User
{
..
}
public class ProductSale
{
[ForeignKey("User")]
public int CreatedByUserId {get;set;}
[ForeignKey("User")]
public int UpdatedByUserId {get;set;
public virtual User CreatedByUser {get;set;}
public virtual User ModifiedByUser {get;set}
}
实体框架如何确定 CreatedByUser 和 ModifiedByUser 使用哪个属性?