entity-framework-6 - XAF 查找属性在列表视图中正确显示,但在详细视图中为空
问题描述
我有以下商务课程(简化)
public class Customer {
Customer()
{
}
public int Id {get;set;}
public string Name {get;set;}
public virtual Category {get;set;}
}
Public Class Category {
public int Id {get;set;}
public string Name {get;set;}
}
如果我将它们粘贴到新的 XAF EF Winforms 演示项目中,它们可以正常工作。
但是在我的开发项目中,类别在列表视图中正确显示,但在详细视图中为空。
为什么?
[Nuget?] 开发项目正在使用Nuget安装XAF。我目前正在使演示项目使用 Nuget 来查看是否会导致问题。
我不这么认为,演示项目使用Nuget后仍然很好。
[数据库中是否存在 smallint?] 该字段存在于表中,但模型中不存在...正在调查。
[LazyLoading?] 这可以解释,但我看不到任何设置打开它
解决方案
public class Customer {
public Customer()
{
}
// etc
}
推荐阅读
- azure - 仅通过 Azure VM 访问 Synapse Workspace Studio?
- c# - 如何控制为 NuGet 包安装的传递依赖版本?
- javascript - HeadlessUI React,如何检测当前聚焦的元素?
- javascript - 如何使用 Discord.js 在我的音乐机器人上添加队列?
- sql - SQL MAX((SUM)) 组合使用
- javascript - 如何使用 Inquirer.js 确定函数的参数?
- java - 如何使用 tftpput 全局变量 talend 检查上传到 ftp 是否成功
- reactjs - 注销时清除 useContext 状态
- apache-spark - 将 Spark 应用程序提交到 Kubernetes 时出错
- pandas - 将 Dataframe 转换为 HTML 时,是否可以设置列最大宽度