Skip to content

Instantly share code, notes, and snippets.

@dnewcome
Created July 7, 2010 18:04
Show Gist options
  • Save dnewcome/467025 to your computer and use it in GitHub Desktop.
Save dnewcome/467025 to your computer and use it in GitHub Desktop.
public BusinessEntityCollection RetrieveMultiple( Microsoft.Crm.Sdk.Query.QueryBase query ) {
QueryExpression queryExpression = ( QueryExpression )query;
BusinessEntityCollection retval = new BusinessEntityCollection();
if( data.ContainsKey( query.EntityName ) ) {
foreach( BusinessEntity entity in data[ query.EntityName ] ) {
if( true == EvaluateFilters( queryExpression.Criteria, entity ) ) {
retval.BusinessEntities.Add( entity );
}
}
}
return retval;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment