23. August 2012 11:56
QueryExpression query = new QueryExpression(entityName);
EntityCollection coll;
query.PageInfo.PageNumber = 1;
query.Criteria.AddCondition(new ConditionExpression("fullname", ConditionOperator.DoesNotContain ,","));
query.ColumnSet = new ColumnSet("lastname", "middlename", "firstname", "fullname");
coll = service.RetrieveMultiple(query);
23. August 2012 13:37
// Abfrage erstellen
EntityCollection coll;
QueryExpression query = new QueryExpression(entityName);
query.ColumnSet.AddColumns(new string[] { "lastname", "middlename", "firstname", "fullname" });
query.Criteria = new FilterExpression();
query.Criteria.AddCondition("fullname", ConditionOperator.DoesNotContain ,",");
coll = service.RetrieveMultiple(query);
23. August 2012 13:51