Пример #1
0
        /// <summary>
        /// Retrieves in the calling RecycleVendorCollection object all RecycleVendorEntity objects
        /// which are related via a relation of type 'm:n' with the passed in AccountEntity.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="accountInstance">AccountEntity object to be used as a filter in the m:n relation</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 bool GetMultiUsingAccountCollectionViaRecycleVendorService(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity accountInstance, int pageNumber, int pageSize)
        {
            IEntityFields      fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Reliant.RenuOil.DAL.EntityType.RecycleVendorEntity);
            RelationCollection relations      = new RelationCollection();

            relations.Add(RecycleVendorEntity.Relations.RecycleVendorServiceEntityUsingRecycleVendorId, "RecycleVendorService_");
            relations.Add(RecycleVendorServiceEntity.Relations.AccountEntityUsingAccountId, "RecycleVendorService_", string.Empty, JoinHint.None);
            IPredicateExpression selectFilter = new PredicateExpression();

            selectFilter.Add(new FieldCompareValuePredicate(accountInstance.Fields[(int)AccountFieldIndex.AccountId], ComparisonOperator.Equal));
            return(GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize));
        }
        /// <summary>Retrieves in the calling UserCreditCardCollection object all UserCreditCardEntity objects which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter. </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</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="creditCardInstance">CreditCardEntity instance to use as a filter for the UserCreditCardEntity objects to return</param>
        /// <param name="userInstance">UserEntity instance to use as a filter for the UserCreditCardEntity objects to return</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity creditCardInstance, IEntity userInstance, int pageNumber, int pageSize)
        {
            this.EntityFactoryToUse = entityFactoryToUse;
            IEntityFields        fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(EPICCentralDL.EntityType.UserCreditCardEntity);
            IPredicateExpression selectFilter   = CreateFilterUsingForeignKeys(creditCardInstance, userInstance, fieldsToReturn);

            if (filter != null)
            {
                selectFilter.AddWithAnd(filter);
            }
            return(this.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize));
        }
        /// <summary>
        /// Retrieves in the calling IndividualCollection object all IndividualEntity objects which have data in common
        /// with the specified related Entities. If one is omitted, that entity is not used as a filter.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return.
        /// When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</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="contactInstance">ContactEntity instance to use as a filter for the IndividualEntity objects to return</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity contactInstance, int pageNumber, int pageSize)
        {
            base.EntityFactoryToUse = entityFactoryToUse;
            IEntityFields        fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(AW.Data.EntityType.IndividualEntity);
            IPredicateExpression selectFilter   = CreateFilterUsingForeignKeys(contactInstance, fieldsToReturn);

            if (filter != null)
            {
                selectFilter.AddWithAnd(filter);
            }
            return(base.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize));
        }
Пример #4
0
        /// <summary>Retrieves in the calling TerritoryCollection object all TerritoryEntity objects which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter. </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</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="regionInstance">RegionEntity instance to use as a filter for the TerritoryEntity objects to return</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity regionInstance, int pageNumber, int pageSize)
        {
            this.EntityFactoryToUse = entityFactoryToUse;
            IEntityFields        fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(SD.LLBLGen.Pro.Examples.EntityType.TerritoryEntity);
            IPredicateExpression selectFilter   = CreateFilterUsingForeignKeys(regionInstance, fieldsToReturn);

            if (filter != null)
            {
                selectFilter.AddWithAnd(filter);
            }
            return(this.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize));
        }
Пример #5
0
        /// <summary>
        /// Retrieves in the calling StatusCollection object all StatusEntity objects
        /// which are related via a relation of type 'm:n' with the passed in EmployeeEntity.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="employeeInstance">EmployeeEntity object to be used as a filter in the m:n relation</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 bool GetMultiUsingEmployeeCollectionViaLoad(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity employeeInstance, int pageNumber, int pageSize)
        {
            IEntityFields      fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Reliant.RenuOil.DAL.EntityType.StatusEntity);
            RelationCollection relations      = new RelationCollection();

            relations.Add(StatusEntity.Relations.LoadEntityUsingStatusId, "Load_");
            relations.Add(LoadEntity.Relations.EmployeeEntityUsingEmployeeId, "Load_", string.Empty, JoinHint.None);
            IPredicateExpression selectFilter = new PredicateExpression();

            selectFilter.Add(new FieldCompareValuePredicate(employeeInstance.Fields[(int)EmployeeFieldIndex.EmployeeId], ComparisonOperator.Equal));
            return(GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize));
        }
Пример #6
0
        /// <summary>
        /// Retrieves in the calling BaleCollection object all BaleEntity objects which have data in common
        /// with the specified related Entities. If one is omitted, that entity is not used as a filter.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return.
        /// When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</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="accountInstance">AccountEntity instance to use as a filter for the BaleEntity objects to return</param>
        /// <param name="dockInstance">DockEntity instance to use as a filter for the BaleEntity objects to return</param>
        /// <param name="recycleTypeInstance">RecycleTypeEntity instance to use as a filter for the BaleEntity objects to return</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity accountInstance, IEntity dockInstance, IEntity recycleTypeInstance, int pageNumber, int pageSize)
        {
            base.EntityFactoryToUse = entityFactoryToUse;
            IEntityFields        fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Reliant.RenuOil.DAL.EntityType.BaleEntity);
            IPredicateExpression selectFilter   = CreateFilterUsingForeignKeys(accountInstance, dockInstance, recycleTypeInstance, fieldsToReturn);

            if (filter != null)
            {
                selectFilter.AddWithAnd(filter);
            }
            return(base.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize));
        }
Пример #7
0
        /// <summary>
        /// Retrieves in the calling SalesOrderHeaderCollection object all SalesOrderHeaderEntity objects
        /// which are related via a relation of type 'm:n' with the passed in SpecialOfferProductEntity.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="specialOfferProductInstance">SpecialOfferProductEntity object to be used as a filter in the m:n relation</param>
        /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public bool GetMultiUsingSpecialOfferProductCollectionViaSalesOrderDetail(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity specialOfferProductInstance, IPrefetchPath prefetchPathToUse)
        {
            IEntityFields      fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(AW.Data.EntityType.SalesOrderHeaderEntity);
            RelationCollection relations      = new RelationCollection();

            relations.Add(SalesOrderHeaderEntity.Relations.SalesOrderDetailEntityUsingSalesOrderID, "SalesOrderDetail_");
            relations.Add(SalesOrderDetailEntity.Relations.SpecialOfferProductEntityUsingSpecialOfferIDProductID, "SalesOrderDetail_", string.Empty, JoinHint.None);
            IPredicateExpression selectFilter = new PredicateExpression();

            selectFilter.Add(new FieldCompareValuePredicate(specialOfferProductInstance.Fields[(int)SpecialOfferProductFieldIndex.SpecialOfferID], ComparisonOperator.Equal));
            selectFilter.Add(new FieldCompareValuePredicate(specialOfferProductInstance.Fields[(int)SpecialOfferProductFieldIndex.ProductID], ComparisonOperator.Equal));
            return(GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse));
        }
Пример #8
0
        internal static IEntityField2 GetField(EntityType entityType, string fieldName)
        {
            var fields = EntityFieldsFactory.CreateEntityFieldsObject(entityType);

            return
                ((IEntityField2)fields.FirstOrDefault(
                     f => f.Name.Equals(fieldName, StringComparison.OrdinalIgnoreCase)));

            /*
             * return
             *  (IEntityField2)fields.FirstOrDefault(
             *      f =>
             *      !string.IsNullOrEmpty(f.Alias)
             *          ? f.Alias.Equals(fieldName, StringComparison.OrdinalIgnoreCase)
             *          : f.Name.Equals(fieldName, StringComparison.OrdinalIgnoreCase));
             */
        }
Пример #9
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.BarrierEntity));
 }
Пример #10
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.HealthPlanRevenueItemEntity));
 }
Пример #11
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.GiftCertificateTypeEntity));
 }
Пример #12
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.BlockedDaysFranchiseeEntity));
 }
Пример #13
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.PaymentInstructionsEntity));
 }
Пример #14
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.EventMeetingDetailsEntity));
 }
Пример #15
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(LLBLGenTest.LLBL.EntityType.Category2PostEntity));
 }
Пример #16
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.FranchiseeWiringInstructionsEntity));
 }
Пример #17
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(HealthYes.Data.EntityType.CarotidArteryIflocationWiseDataEntity));
 }
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(AW.Data.EntityType.ProductCostHistoryEntity));
 }
Пример #19
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Reliant.RenuOil.DAL.EntityType.RebateEntity));
 }
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.VwGetKynTestCustomersEntity));
 }
Пример #21
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.CallQueueAssignmentEntity));
 }
Пример #22
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.TemplateMacroEntity));
 }
Пример #23
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.LoincCrosswalkEntity));
 }
Пример #24
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(silverspun.RGBDiff.Dal.EntityType.ControlSetEntity));
 }
Пример #25
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.AflAffiliatePaymentMethodEntity));
 }
Пример #26
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.ProspectContactMeetingsEntity));
 }
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.EventActivityTemplateEmailEntity));
 }
Пример #28
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(HealthYes.Data.EntityType.CardiovisionPressureReadingsEntity));
 }
Пример #29
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(HealthYes.Data.EntityType.TmpauthEntity));
 }
Пример #30
0
 /// <summary>Creates entity fields object for this entity. Used in constructor to setup this entity in a polymorphic scenario.</summary>
 protected virtual IEntityFields2 CreateFields()
 {
     return(EntityFieldsFactory.CreateEntityFieldsObject(Falcon.Data.EntityType.SeminarCampaignDetailsEntity));
 }