Skip to content

Instantly share code, notes, and snippets.

View dnewcome's full-sized avatar

Dan Newcome dnewcome

  • Try.com
  • San Francisco
View GitHub Profile
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 );
}
}
}