/// <summary> Retrieves in this StoreCollection object all StoreEntity objects which are related via a relation of type 'm:n' with the passed in ContactTypeEntity. /// All current elements in the collection are removed from the collection.</summary> /// <param name="contactTypeInstance">ContactTypeEntity object to be used as a filter in the m:n relation</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="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param> /// <returns>true if the retrieval succeeded, false otherwise</returns> public bool GetMultiManyToManyUsingContactTypeCollectionViaStoreContact(IEntity contactTypeInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath prefetchPathToUse) { if (!base.SuppressClearInGetMulti) { this.Clear(); } StoreDAO dao = DAOFactory.CreateStoreDAO(); return(dao.GetMultiUsingContactTypeCollectionViaStoreContact(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, contactTypeInstance, prefetchPathToUse)); }