c# - 我在下面的代码中收到 PXDefault 的发布错误
问题描述
我检查了代码的所有大括号和语法,这是唯一发布的代码。我已经删除了其他所有内容
using PX.Objects;
using PX.Data;
namespace MaxQ.Products.RBRR
{
public class ContractMaint_Extension : PXGraphExtension<ContractMaint>
{
#region Event Handlers
protected virtual void XRBContrHdr_DestSiteID_CacheAttached(PXCache cache)
{
[PXDefault(typeof(Search2<INSite.siteCD,
InnerJoin<BAccount, On<BAccount.bAccountID, Equal<Current<XRBContrHdr.bAccountID>>>,
InnerJoin<LocationExtAddress, On<LocationExtAddress.locationID, Equal<BAccount.defLocationID>>>>,
Where<INSite.siteID, Equal<LocationExtAddress.cSiteID>>>), PersistingCheck = PXPersistingCheck.Nothing)]
}
#endregion
}
}
我得到的错误是
\App_RuntimeCode\ContractMaint.cs(13): 错误 CS1513: } 预期
\App_RuntimeCode\ContractMaint.cs(18):错误 CS1519:类、结构或接口成员声明中的令牌“}”无效
\App_RuntimeCode\ContractMaint.cs(22):错误 CS1022:类型或命名空间定义,或预期文件结尾
\App_RuntimeCode\ContractMaint.cs(13): 错误 CS1513: } 预期
解决方案
推荐阅读
- excel - 尝试访问不存在的数组元素时 Excel VBA 中出现超出范围错误
- neo4j - Neo4j Enterprise VM 3.5 版数据库传输
- spring-boot - Reactive Redis 不会持续发布对 Flux 的更改
- dart - 通过流发送未来
- r - column_spec 不在投影仪演示中呈现
- ruby-on-rails - 如何在 ruby 中的 Faraday 客户端的每次重试中更改 Auth 标头?
- import - 如何将 wiki 移动到 Azure DevOps 中的其他项目
- splunk - 如何使用 REX 命令提取 splunk 中的多个字段?
- c# - 如何在 C# 中或使用 Windows 命令终止 RabbitMQ 连接?
- javascript - TypeError:无法读取未定义的属性“rtl”