0
說我有一個像類:如何將2個相同的屬性添加到模型中?
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哪個屬性?
...你可以通過... – gunr2171 2013-05-06 18:34:48
你如何創建一個新的ProductSale對象? – AContractor 2013-05-06 18:37:17