我的表中有记录,但是我的xaf listview是空的。
我已经确定问题出在我的模型中,因为如果我从模型中删除这个字段,我就会看到记录
public bool ExcludeFromPrioritizeByDueByDate { get; set; }此字段在表中。
我试过使用不同的名字
[Column("ExcludeFromPrioritizeByDueByDate")]
public bool ExcPByDueByDate { get; set; }但这无济于事。
我还尝试使用fluent配置
public class JobListConfiguration : EntityTypeConfiguration<JobList>
{
public JobListConfiguration()
{
Property(x => x.ExcPByDueByDate).HasColumnName("ExcludeFromPrioritizeByDueByDate");
}
}我不确定问题是实体框架还是XAF
发布于 2019-05-02 05:38:53
根据Anatol的回答
结果是我拼写错了列名。在日志文件中没有发现这一点,但是使用SQL Server事件探查器显示查询失败。
https://stackoverflow.com/questions/55930111
复制相似问题