Ejemplo n.º 1
0
 /// <summary>
 /// Adds a condition to all RetrieveMultiple calls that constrains the results to only the entities with ids given for entities with their logical name in the entityIds collection.
 /// Entities of a Type other than the given logicalName will not be constrainted
 /// </summary>
 /// <param name="logicalName">Entity Logical Name.</param>
 /// <param name="ids">The entity ids.</param>
 /// <returns></returns>
 public TDerived WithEntityFilter(string logicalName, IEnumerable <Guid> ids)
 {
     foreach (var id in ids)
     {
         EntityFilter.AddOrAppend(logicalName, id);
     }
     return(This);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a condition to all RetrieveMultiple calls that constrains the results to only the entities with ids given for entities with their logical name in the Ids collection.
        /// Entity types not contained in the Ids collection will be unrestrained
        /// </summary>
        /// <param name="ids">The ids.</param>
        /// <returns></returns>
        public TDerived WithEntityFilter(params Id[] ids)
        {
            foreach (var id in ids)
            {
                EntityFilter.AddOrAppend(id);
            }

            return(This);
        }