小编naz*_*vic的帖子

类型声明[[Integer] - > Integer]

我正在学习haskell并看到了函数组合.试图复合mapfoldl

mapd = (map.foldl)
Run Code Online (Sandbox Code Playgroud)

test = (mapd (\x y -> x + y ) [1,2,3,4])
Run Code Online (Sandbox Code Playgroud)

测试类型是

test :: [[Integer] -> Integer]
Run Code Online (Sandbox Code Playgroud)

那么这种类型的声明是什么意思呢?

haskell types

4
推荐指数
2
解决办法
138
查看次数

使用PartyList的QueryExpression出错

我正在尝试检索其中"requiredattendees"包含在帐户列表中的某个实体上的约会.requiredattendees有一种PartyList.我的查询如下:

var query = new QueryExpression("appointment")
{
      ColumnSet = columnSet,
      Criteria = new FilterExpression(LogicalOperator.Or)
};
Run Code Online (Sandbox Code Playgroud)

并添加条件:

GetAccounts()
.Select(a => new ConditionExpression("requiredattendees", ConditionOperator.Contains, a.Id))
.ForEach(c => query.Criteria.AddCondition(c));


a.Id is the account guid.
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Cannot add attribute requiredattendees of type partylist in a condition
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral]]
Run Code Online (Sandbox Code Playgroud)

.net c# crm dynamics-crm dynamics-crm-2011

2
推荐指数
1
解决办法
1255
查看次数

标签 统计

.net ×1

c# ×1

crm ×1

dynamics-crm ×1

dynamics-crm-2011 ×1

haskell ×1

types ×1