使用算术值时,必须使用获取ProxyTypesAssembly才能知道要将值转换为哪些类型

时间:2017-06-23 00:57:46

标签: dynamics-crm crm fetchxml

当必须使用Fetch a ProxyTypesAssembly中的算术值时,才能知道要将值转换为哪些类型。

My Fetch XRML如下所示: -

string fetchXml = string.Empty;
fetchXml = @"<fetch mapping='logical'>
<entity name='***'>
<all-attributes /> 
<filter> 
<condition attribute='****' operator='eq' value='067' />                                 
</filter>
</entity> 
</fetch>";

2 个答案:

答案 0 :(得分:0)

那么,您可以使用代理类,也可以查询元数据以获取属性类型,或者,因为属性类型是不可变的,如果您在编写代码时知道属性的类型,则可以硬编码。

答案 1 :(得分:0)

如果您使用的是后期绑定,那么在获取此类错误时,最好对查询使用QueryExpression。