Hi ,
I am using service.RetrieveMultiple for retrieve data.
Code:
quotequery = new QueryExpression() { Distinct = false, EntityName = modulename, ColumnSet = new ColumnSet(true), Criteria = { Filters = { new FilterExpression { FilterOperator = LogicalOperator.And, Conditions = { new ConditionExpression("ownerid", ConditionOperator.Equal, userid), new ConditionExpression(contactfield, ConditionOperator.Equal, lstcredential.Contactid.ToString()) }, } } } }; queryentityCollection = _serviceProxy.RetrieveMultiple(quotequery).Entities;
i have above common function which has different different conditions at different different call so there is possibility to use some variable or something which stores conditions ans pass it in conditions={ } like I use modulename which stores entityname?or any other way?
Please suggest answer.