我需要设置有效合同的范围,以告知在未来3个月内将要到期的合同有多少。因此,每天,当用户打开工作区时,都应该有图块,上面会说出未来三个月即将到期的确切合同数量。为此,我需要查询有日期范围参数的地方。 我写了代码,但我遗漏了一些东西。有什么建议吗?
public class GetProjectManager
{
public string ProjectManagerId { get; set; }
public string Email { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public IList<GetProjectDto> GetProjects { get; set; }
}
public class GetProjectDto
{
public int ProjectId { get; set; }
public string ProjectName { get; set; }
public DateTime PlannedStartDate { get; set; }
public DateTime PlannedEndDate { get; set; }
public DateTime? ActualStartDate { get; set; }
public DateTime? ActualEndDate { get; set; }
public string ProjectDescription { get; set; }
}
public class ProjectManager
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Required]
public int Id { get; set; }
[Required]
public int ProjectId { get; set; }
[Required]
public int UserId { get; set; }
public Project Project { get; set; }
public AppUsers User { get; set; }
}