属性 无法设置为 'null' 值
The property could not be set to a 'null' value
我今天更新到最新版本的 Devart Entity Developer 6.3.569 和相关的 Salesforce .net 连接器。现在我收到这样的消息
无法将 'Account' 上的 'ForeclosureShortsaleDate' 属性 设置为 'null' 值。您必须将此 属性 设置为 'System.DateTime' 类型的非空值。
当我从上下文中提取记录时会发生这种情况。我已经从生成此错误的模型中删除了许多字段,因为我不需要它们,但这并不理想。特别是模型需要重新创建,谁能给我解释一下?所有有问题的列都将 Nullable 属性 设置为 true。
附加信息:
模板:DBContext
我不能说更新版本是问题所在,因为我不知道 Salesforce 团队在 Sandbox 中做什么,但上周通过将数据拉入和推送到 Sandbox 中,该上下文正常工作。到目前为止,我这边还没有模型更改。任何帮助将不胜感激。
更新:
我创建了一个全新的模型并得到了相同的结果。
更新:
我相信它确实是Devart Entity Developer。我检查了版本控制中的最新版本,这是 属性 在版本 6.3.569
之前的样子
/// <summary>
/// There are no comments for BillingLatitude in the schema.
/// </summary>
public virtual global::System.Nullable<double> BillingLatitude
{
get;
set;
}
以及 6.3.569 的外观
/// <summary>
/// There are no comments for BillingLatitude in the schema.
/// </summary>
public virtual global::System.Double BillingLatitude
{
get;
set;
}
我要恢复到上一个版本并重新生成模型。
问题出在 Entity Developer 的 6.3.569 版本上。模型生成工作不正常。
这是 6.3.555 的结果
/// <summary>
/// There are no comments for BillingLatitude in the schema.
/// </summary>
public virtual global::System.Nullable<double> BillingLatitude
{
get;
set;
}
我今天更新到最新版本的 Devart Entity Developer 6.3.569 和相关的 Salesforce .net 连接器。现在我收到这样的消息
无法将 'Account' 上的 'ForeclosureShortsaleDate' 属性 设置为 'null' 值。您必须将此 属性 设置为 'System.DateTime' 类型的非空值。
当我从上下文中提取记录时会发生这种情况。我已经从生成此错误的模型中删除了许多字段,因为我不需要它们,但这并不理想。特别是模型需要重新创建,谁能给我解释一下?所有有问题的列都将 Nullable 属性 设置为 true。
附加信息: 模板:DBContext
我不能说更新版本是问题所在,因为我不知道 Salesforce 团队在 Sandbox 中做什么,但上周通过将数据拉入和推送到 Sandbox 中,该上下文正常工作。到目前为止,我这边还没有模型更改。任何帮助将不胜感激。
更新: 我创建了一个全新的模型并得到了相同的结果。
更新: 我相信它确实是Devart Entity Developer。我检查了版本控制中的最新版本,这是 属性 在版本 6.3.569
之前的样子 /// <summary>
/// There are no comments for BillingLatitude in the schema.
/// </summary>
public virtual global::System.Nullable<double> BillingLatitude
{
get;
set;
}
以及 6.3.569 的外观
/// <summary>
/// There are no comments for BillingLatitude in the schema.
/// </summary>
public virtual global::System.Double BillingLatitude
{
get;
set;
}
我要恢复到上一个版本并重新生成模型。
问题出在 Entity Developer 的 6.3.569 版本上。模型生成工作不正常。
这是 6.3.555 的结果
/// <summary>
/// There are no comments for BillingLatitude in the schema.
/// </summary>
public virtual global::System.Nullable<double> BillingLatitude
{
get;
set;
}