日期:2014-05-17 浏览次数:20457 次
public class ProjectsinForschung
{
[Key]
public Guid ID { get; set; }
public Guid ProjectID { get; set; }
public DateTime Date { get; set; }
public string Comment { get; set; }
public virtual Project project { get; set; }
}
public class Project
{
[Key]
[ForeignKey("projectinforschung")]
public Guid ProjectID { get; set; }
public DateTime CreateDate { get; set; }
public DateTime FinishDate { get; set; }
public DateTime CutOffDate { get; set; }
public string Comment { get; set; }
public virtual ProjectsinForschung projectinforschung { get; set; }
}
public class ProjectsinForschung
{
[Key]
public Guid ID { get; set; }
public Guid ProjectID { get; set; }
public DateTime Date { get; set; }
public string Comment { get; set; }
public virtual Project project { get; set; }
}
List<ProjectsInDepartment> datesource = db.prosindeps.ToList();