当必须使用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>";
答案 0 :(得分:0)
那么,您可以使用代理类,也可以查询元数据以获取属性类型,或者,因为属性类型是不可变的,如果您在编写代码时知道属性的类型,则可以硬编码。
答案 1 :(得分:0)
如果您使用的是后期绑定,那么在获取此类错误时,最好对查询使用QueryExpression。