我有一个模型类,它使用数据库第一种方法从数据库生成多个可空属性。现在我想在我的项目中添加水晶报表功能,当我尝试添加数据库字段时,所有可空属性都没有显示在水晶报表中。
这是我的模型类属性
public string Issued_Office { get; set; }
public string Subject { get; set; }
public DateTime DG_Rectt { get; set; }
public DateTime ADG_Rectt { get; set; }
public DateTime DD_Rectt { get; set; }
public DateTime AD_Rectt { get; set; }
public DateTime Assistant_Rectt { get; set; }
public DateTime GM_HRD { get; set; }
public string Send_To { get; set; }
public DateTime Date { get; set; }
public string Action { get; set; }
只有那些字符串类型的属性在水晶报告中显示,其他属性没有显示。请指导我如何在我的水晶报告中显示所有这些字段。提前致谢。
将该null变量转换为字符串(如果为null则将其变为空),然后将其传递给crystal report。