【问题标题】:XAF Listview is empty when there are records有记录时 XAF Listview 为空
【发布时间】:2019-05-01 00:02:11
【问题描述】:

我的表中有记录,但我的 xaf 列表视图为空。

我已确定问题出在我的模型中,因为如果我从模型中删除此字段,那么我会看到记录

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

我有cross posted to Dev Express

【问题讨论】:

    标签: sql-server entity-framework-core xaf


    【解决方案1】:

    根据 Anatol 的回答

    原来我拼错了列名。 这不是在日志文件中拾取的 但是使用 SQL Server Profiler 显示查询失败。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-13
      • 2012-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多