/// <summary> Retrieves in this DeepFryerServiceChangeLogCollection object all DeepFryerServiceChangeLogEntity objects which have data in common with the specified related Entities. /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary> /// <param name="deepFryerServiceInstance">DeepFryerServiceEntity instance to use as a filter for the DeepFryerServiceChangeLogEntity objects to return</param> /// <param name="employee_Instance">EmployeeEntity instance to use as a filter for the DeepFryerServiceChangeLogEntity objects to return</param> /// <param name="employeeInstance">EmployeeEntity instance to use as a filter for the DeepFryerServiceChangeLogEntity objects to return</param> /// <param name="serviceLocationInstance">ServiceLocationEntity instance to use as a filter for the DeepFryerServiceChangeLogEntity objects to return</param> /// <param name="userInstance">UserEntity instance to use as a filter for the DeepFryerServiceChangeLogEntity objects to return</param> /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param> /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param> /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param> /// <param name="pageNumber">The page number to retrieve.</param> /// <param name="pageSize">The page size of the page to retrieve.</param> /// <returns>true if succeeded, false otherwise</returns> public virtual bool GetMultiManyToOne(IEntity deepFryerServiceInstance, IEntity employee_Instance, IEntity employeeInstance, IEntity serviceLocationInstance, IEntity userInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter, int pageNumber, int pageSize) { bool validParameters = false; validParameters |= (deepFryerServiceInstance != null); validParameters |= (employee_Instance != null); validParameters |= (employeeInstance != null); validParameters |= (serviceLocationInstance != null); validParameters |= (userInstance != null); if (!validParameters) { return(GetMulti(filter, maxNumberOfItemsToReturn, sortClauses, null, pageNumber, pageSize)); } if (!base.SuppressClearInGetMulti) { this.Clear(); } DeepFryerServiceChangeLogDAO dao = DAOFactory.CreateDeepFryerServiceChangeLogDAO(); return(dao.GetMulti(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, filter, deepFryerServiceInstance, employee_Instance, employeeInstance, serviceLocationInstance, userInstance, pageNumber, pageSize)); }