Exemple #1
0
 /// <summary> Retrieves all related entities of type 'StoreInformationEntity' using a relation of type '1:n'.</summary>
 /// <param name="forceFetch">if true, it will discard any changes currently in the collection and will rerun the complete query instead</param>
 /// <param name="entityFactoryToUse">The entity factory to use for the GetMultiManyToOne() routine.</param>
 /// <param name="filter">Extra filter to limit the resultset.</param>
 /// <returns>Filled collection with all related entities of the type constructed by the passed in entity factory</returns>
 public virtual ProductSearchEngine.CollectionClasses.StoreInformationCollection GetMultiStoreInformations(bool forceFetch, IEntityFactory entityFactoryToUse, IPredicateExpression filter)
 {
     if ((!_alreadyFetchedStoreInformations || forceFetch || _alwaysFetchStoreInformations) && !this.IsSerializing && !this.IsDeserializing && !this.InDesignMode)
     {
         AddToTransactionIfNecessary(_storeInformations);
         _storeInformations.SuppressClearInGetMulti = !forceFetch;
         _storeInformations.EntityFactoryToUse      = entityFactoryToUse;
         _storeInformations.GetMultiManyToOne(this, filter);
         _storeInformations.SuppressClearInGetMulti = false;
         _alreadyFetchedStoreInformations           = true;
     }
     return(_storeInformations);
 }