0
Project
을 상속하는 Project
클래스와 Case
클래스가 있습니다. Projects
의 목록을 가지고있을 때 나중에 Case
이 선택된 Project
이되도록 결정할 수 있습니다. 이것을 어떻게 할 수 있습니까?ActiveRecord를 사용하는 동안 클래스를 상속 된 클래스로 변환하는 방법
프로젝트 :
[ActiveRecord (Table = "projects", Lazy = true), JoinedBase]
public class Project : ActiveRecordValidationBase<Project>
{
private int _id;
[PrimaryKey(PrimaryKeyType.Identity, "id")]
public virtual int Id
{
get { return _id; }
set { _id = value; }
}
}
케이스 :
[ActiveRecord(Table = "cases", Lazy = true)]
public class Case : Project
{
private int _caseId;
[JoinedKey("case_id")]
public virtual int CaseId
{
get { return _caseId; }
set { _caseId = value; }
}
}
내 주제와 문제가