Created
July 7, 2010 18:04
-
-
Save dnewcome/467025 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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