我怎样才能ProfileBase
在我的课堂上做出 FK?例如,我有 class Department
,我需要设置Manager
..所以我会这样做:
class Department { ..
public int managerId {get;set;}
public ProfileBase manager {get;set;}
..
}
但这不起作用。我已经扩展了这个类并且我有profileCommon
,就像 [here][1] 甚至 fk to profileCommon
(with UserId 属性) 都不起作用。