/// <summary> Retrieves all related entities of type 'TerritoryEntity' 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 SD.LLBLGen.Pro.Examples.Auditing.CollectionClasses.TerritoryCollection GetMultiTerritories(bool forceFetch, IEntityFactory entityFactoryToUse, IPredicateExpression filter) { if ((!_alreadyFetchedTerritories || forceFetch || _alwaysFetchTerritories) && !this.IsSerializing && !this.IsDeserializing && !this.InDesignMode) { AddToTransactionIfNecessary(_territories); _territories.SuppressClearInGetMulti = !forceFetch; _territories.EntityFactoryToUse = entityFactoryToUse; _territories.GetMultiManyToOne(this, filter); _territories.SuppressClearInGetMulti = false; _alreadyFetchedTerritories = true; } return(_territories); }