20. April 2010 09:52
20. April 2010 11:54
20. April 2010 14:16
Dim cols As New ColumnSet()
cols.Attributes = New String() { "name", "accountid"}
Dim condition As ConditionExpression = New ConditionExpression()
condition.AttributeName = "accountnumber"
condition.Operator = ConditionOperator.[Like]
condition.Values = New Object() {"i0005"}
Dim filter As New FilterExpression()
filter.FilterOperator = LogicalOperator.And
filter.Conditions = New ConditionExpression() {condition}
Dim query As New QueryExpression()
query.EntityName = EntityName.account.ToString()
query.ColumnSet = cols
query.Criteria = filter
21. April 2010 21:45
QueryExpression query = new QueryExpression
{
PageInfo = new PagingInfo { Count = 1, PageNumber = 1 },
EntityName = "account",
Criteria = new FilterExpression { FilterOperator = LogicalOperator.And },
ColumnSet = new AllColumns()
};
ConditionExpression accountNumberFormatCondition = new ConditionExpression
{
AttributeName = "accountnumber",
Operator = ConditionOperator.Like,
Values = new object[] { "i%" }
};
query.Criteria.AddCondition(accountNumberFormatCondition);
OrderExpression descendingOrder = new OrderExpression
{
AttributeName = "accountnumber",
OrderType = OrderType.Descending
};
query.Orders.Add(descendingOrder);
22. April 2010 08:05