为什么Acumatica找不到方法
Why Acumatica can't find method
我正在使用 Acumatica 5.30.2347。我的图表中有以下选择器:
var check = PXSelect<POLine,Where<POLine.orderType, Equal<POOrderType.regularOrder>>>
.Select(this);
但是当我尝试执行它时,我收到以下错误:
未找到方法:'Void PX.Data.PXLineAttribute..ctor'(System.Type).
最初我的印象是,出现此错误消息是因为 class PXLineAttribute 没有接受 System.Type 的构造函数,但在反射器的帮助下我发现 PXLineAttribute 有以下声明:
public PXLineNbrAttribute(System.Type sourceType)
: this(sourceType, false)
{
}
这让我知道 PXLineNbrAttribute 需要构造函数。所以我有两个问题:为什么 Acumatica Framework 找不到 PXLineNbrAttribute 的构造函数?如何帮助Acumatica找到前面提到的构造函数?
请检查您的 VS class 库项目对 Acumatica 程序集的引用。我怀疑他们引用了来自不同 Acumatica 版本的程序集,因此在运行时导致 "Method not found ..." 错误。
我正在使用 Acumatica 5.30.2347。我的图表中有以下选择器:
var check = PXSelect<POLine,Where<POLine.orderType, Equal<POOrderType.regularOrder>>>
.Select(this);
但是当我尝试执行它时,我收到以下错误: 未找到方法:'Void PX.Data.PXLineAttribute..ctor'(System.Type).
最初我的印象是,出现此错误消息是因为 class PXLineAttribute 没有接受 System.Type 的构造函数,但在反射器的帮助下我发现 PXLineAttribute 有以下声明:
public PXLineNbrAttribute(System.Type sourceType)
: this(sourceType, false)
{
}
这让我知道 PXLineNbrAttribute 需要构造函数。所以我有两个问题:为什么 Acumatica Framework 找不到 PXLineNbrAttribute 的构造函数?如何帮助Acumatica找到前面提到的构造函数?
请检查您的 VS class 库项目对 Acumatica 程序集的引用。我怀疑他们引用了来自不同 Acumatica 版本的程序集,因此在运行时导致 "Method not found ..." 错误。