예제 #1
0
 /// <summary>
 /// Gets first 5000 Active Entities (with the given subset of columns only)
 /// where the columnNameAndValue Pairs match
 /// </summary>
 /// <param name="service"></param>
 /// <param name="logicalName">LogicalName of the Entity.</param>
 /// <param name="columnSet">Columns to retrieve</param>
 /// <param name="columnNameAndValuePairs">List of pairs that look like this:
 /// (string name of the column, value of the column) ie. "name", "John Doe" </param>
 /// <returns></returns>
 public static Task <List <Entity> > GetEntitiesAsync(this IOrganizationServiceAsync2 service, string logicalName, ColumnSet columnSet,
                                                      params object[] columnNameAndValuePairs)
 {
     return(service.GetEntitiesAsync(logicalName, columnSet, default, columnNameAndValuePairs));
예제 #2
0
 /// <summary>
 /// Gets first 5000 Active Entities (with the given subset of columns only)
 /// where the columnNameAndValue Pairs match
 /// </summary>
 /// <param name="service"></param>
 /// <param name="logicalName">LogicalName of the Entity.</param>
 /// <param name="columnSet">Columns to retrieve</param>
 /// <param name="token"></param>
 /// <param name="columnNameAndValuePairs">List of pairs that look like this:
 /// (string name of the column, value of the column) ie. "name", "John Doe" </param>
 /// <returns></returns>
 public static Task <List <Entity> > GetEntitiesAsync(this IOrganizationServiceAsync2 service, string logicalName, ColumnSet columnSet,
                                                      CancellationToken token, params object[] columnNameAndValuePairs)
 {
     return(service.GetEntitiesAsync <Entity>(QueryExpressionFactory.Create(logicalName, columnSet, columnNameAndValuePairs), token));
 }