예제 #1
0
 /// <summary>Retrieves in the calling AuditActionCollection object all AuditActionEntity objects which are related via a relation of type 'm:n' with the passed in RoleEntity.</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="roleInstance">RoleEntity 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>
 /// <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 GetMultiUsingRolesWithAuditAction(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity roleInstance, IPrefetchPath prefetchPathToUse, int pageNumber, int pageSize)
 {
     RelationCollection relations = new RelationCollection();
     relations.Add(AuditActionEntity.Relations.RoleAuditActionEntityUsingAuditActionID, "RoleAuditAction_");
     relations.Add(RoleAuditActionEntity.Relations.RoleEntityUsingRoleID, "RoleAuditAction_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(roleInstance.Fields[(int)RoleFieldIndex.RoleID], ComparisonOperator.Equal));
     return this.GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse, pageNumber, pageSize);
 }
예제 #2
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Person":
                toReturn.Add(Relations.PersonEntityUsingBusinessEntityId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "BusinessEntityAddresses":
                toReturn.Add(Relations.BusinessEntityAddressEntityUsingAddressTypeId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "GradeBooks":
                toReturn.Add(Relations.GradeBookEntityUsingGradeItemId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #5
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Orders":
                toReturn.Add(Relations.OrderEntityUsingShipVia);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #6
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Territories":
                toReturn.Add(Relations.TerritoryEntityUsingRegionId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #7
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Division":
                toReturn.Add(Relations.DivisionEntityUsingDivisionKey);
                break;

            default:
                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "StateProvince":
                toReturn.Add(Relations.StateProvinceEntityUsingStateProvinceId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #9
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "CustomerCustomerDemos":
                toReturn.Add(Relations.CustomerCustomerDemoEntityUsingCustomerTypeId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #10
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "UserCreditCards":
                toReturn.Add(Relations.UserCreditCardEntityUsingCreditCardId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #11
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Category":
                toReturn.Add(Relations.CategoryEntityUsingCategoryId);
                break;

            case "OrderDetails":
                toReturn.Add(Relations.OrderDetailsEntityUsingProductId);
                break;

            case "OrdersCollectionViaOrderDetails":
                toReturn.Add(Relations.OrderDetailsEntityUsingProductId, "ProductEntity__", "OrderDetails_", JoinHint.None);
                toReturn.Add(OrderDetailsEntity.Relations.OrderEntityUsingOrderId, "OrderDetails_", string.Empty, JoinHint.None);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #12
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "EmployeeDepartmentHistories":
                toReturn.Add(Relations.EmployeeDepartmentHistoryEntityUsingShiftId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #13
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "BelongsToMessage":
                toReturn.Add(Relations.MessageEntityUsingMessageID);
                break;

            default:
                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Region":
                toReturn.Add(Relations.RegionEntityUsingRegionId);
                break;

            case "EmployeeTerritories":
                toReturn.Add(Relations.EmployeeTerritoryEntityUsingTerritoryId);
                break;

            case "EmployeeCollectionViaEmployeeTerritory":
                toReturn.Add(Relations.EmployeeTerritoryEntityUsingTerritoryId, "TerritoryEntity__", "EmployeeTerritory_", JoinHint.None);
                toReturn.Add(EmployeeTerritoryEntity.Relations.EmployeeEntityUsingEmployeeId, "EmployeeTerritory_", string.Empty, JoinHint.None);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #15
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Products":
                toReturn.Add(Relations.ProductEntityUsingSupplierId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #16
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "PersonPhones":
                toReturn.Add(Relations.PersonPhoneEntityUsingPhoneNumberTypeId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Offering":
                toReturn.Add(Relations.OfferingEntityUsingOfferingId);
                break;

            default:
                break;
            }
            return(toReturn);
        }
예제 #18
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Notification":
                toReturn.Add(NotificationEmailEntity.Relations.NotificationEntityUsingNotificationEmailId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static new RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Order":
                toReturn.Add(Relations.OrderEntityUsingOrderId);
                break;

            default:
                toReturn = AuditInfoEntity.GetRelationsForField(fieldName);
                break;
            }
            return(toReturn);
        }
예제 #20
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "User":
                toReturn.Add(UserNpiInfoEntity.Relations.UserEntityUsingUserId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
예제 #21
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Prospects":
                toReturn.Add(HostNotesEntity.Relations.ProspectsEntityUsingHostId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
예제 #22
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "CustomerProfile":
                toReturn.Add(CustomerResultPostedEntity.Relations.CustomerProfileEntityUsingCustomerId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
예제 #23
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Activity":
                toReturn.Add(NoteEntity.Relations.ActivityEntityUsingNoteId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static new RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Message":
                toReturn.Add(Relations.MessageEntityUsingMessageID);
                break;

            default:
                toReturn = AuditDataCoreEntity.GetRelationsForField(fieldName);
                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "OrganizationRoleUser":
                toReturn.Add(AccountCoordinatorProfileEntity.Relations.OrganizationRoleUserEntityUsingOrganizationRoleUserId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
예제 #26
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "Account":
                toReturn.Add(HealthPlanEventZipEntity.Relations.AccountEntityUsingAccountId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
예제 #27
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "OrganizationRoleUser":
                toReturn.Add(CallCenterRepProfileEntity.Relations.OrganizationRoleUserEntityUsingCallCenterRepId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "PhysicianProfile":
                toReturn.Add(PhysicianCustomerPayRateEntity.Relations.PhysicianProfileEntityUsingPhysicianId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
예제 #29
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "MedicalVendorProfile":
                toReturn.Add(MedicalVendorCustomerPayRatesEntity.Relations.MedicalVendorProfileEntityUsingOrganizationId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "FranchiseeApplication":
                toReturn.Add(RejectedFranchiseeApplicationsEntity.Relations.FranchiseeApplicationEntityUsingApplicationId);
                break;

            default:

                break;
            }
            return(toReturn);
        }
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            case "AfmarketingMaterialType":
                toReturn.Add(AfmarketingMaterialGroupEntity.Relations.AfmarketingMaterialTypeEntityUsingGroupId);
                break;


            default:

                break;
            }
            return(toReturn);
        }
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "AspnetUser":
             toReturn.Add(Relations.AspnetUsersEntityUsingUserId);
             break;
         default:
             break;
     }
     return toReturn;
 }
예제 #33
0
 /// <summary>
 /// Retrieves in the calling EffectCollection object all EffectEntity objects
 /// which are related via a relation of type 'm:n' with the passed in DecisionNodeEntity. 
 /// </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="decisionNodeInstance">DecisionNodeEntity 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 GetMultiUsingDecisionNodeCollectionViaRule(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity decisionNodeInstance, int pageNumber, int pageSize)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(policyDB.EntityType.EffectEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(EffectEntity.Relations.RuleEntityUsingEffectId, "Rule_");
     relations.Add(RuleEntity.Relations.DecisionNodeEntityUsingConditionId, "Rule_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(decisionNodeInstance.Fields[(int)DecisionNodeFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize);
 }
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "Address":
					toReturn.Add(Relations.AddressEntityUsingAddressId);
					break;
				case "AddressType":
					toReturn.Add(Relations.AddressTypeEntityUsingAddressTypeId);
					break;
				case "BusinessEntity":
					toReturn.Add(Relations.BusinessEntityEntityUsingBusinessEntityId);
					break;
				default:
					break;				
			}
			return toReturn;
		}
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "SalesPerson":
					toReturn.Add(Relations.SalesPersonEntityUsingSalesPersonId);
					break;
				default:
					break;				
			}
			return toReturn;
		}
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "Contact":
					toReturn.Add(Relations.ContactEntityUsingContactId);
					break;
				case "Employee":
					toReturn.Add(Relations.EmployeeEntityUsingEmployeeIdManagerId);
					break;
				case "Employees":
					toReturn.Add(Relations.EmployeeEntityUsingManagerId);
					break;
				case "EmployeeAddresses":
					toReturn.Add(Relations.EmployeeAddressEntityUsingEmployeeId);
					break;
				case "EmployeeDepartmentHistories":
					toReturn.Add(Relations.EmployeeDepartmentHistoryEntityUsingEmployeeId);
					break;
				case "EmployeePayHistories":
					toReturn.Add(Relations.EmployeePayHistoryEntityUsingEmployeeId);
					break;
				case "JobCandidates":
					toReturn.Add(Relations.JobCandidateEntityUsingEmployeeId);
					break;
				case "PurchaseOrderHeaders":
					toReturn.Add(Relations.PurchaseOrderHeaderEntityUsingEmployeeId);
					break;
				case "SalesPerson":
					toReturn.Add(Relations.SalesPersonEntityUsingSalesPersonId);
					break;
				default:
					break;				
			}
			return toReturn;
		}
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "AspnetApplications":
             toReturn.Add(Relations.AspnetApplicationsEntityUsingApplicationId);
             break;
         case "NewsCategoryParent":
             toReturn.Add(Relations.NewsCategoryEntityUsingIdNewsCategoryId);
             break;
         case "NewsCategoryChildrens":
             toReturn.Add(Relations.NewsCategoryEntityUsingNewsCategoryId);
             break;
         case "NewsCategoryInRoles":
             toReturn.Add(Relations.NewsCategoryInRoleEntityUsingNewsCategoryId);
             break;
         case "NewsCategoryLocalizations":
             toReturn.Add(Relations.NewsCategoryLocalizationEntityUsingNewsCategoryId);
             break;
         case "NewsItems":
             toReturn.Add(Relations.NewsItemEntityUsingNewsCategoryId);
             break;
         case "SnRelationshipss":
             toReturn.Add(Relations.SnRelationshipEntityUsingNewsCategoryId);
             break;
         case "NewsCategoryTemplate":
             toReturn.Add(Relations.NewsCategoryTemplateEntityUsingId);
             break;
         default:
             break;
     }
     return toReturn;
 }
예제 #38
0
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "ProductModel":
					toReturn.Add(Relations.ProductModelEntityUsingProductModelId);
					break;
				case "ProductSubcategory":
					toReturn.Add(Relations.ProductSubcategoryEntityUsingProductSubcategoryId);
					break;
				case "UnitMeasure":
					toReturn.Add(Relations.UnitMeasureEntityUsingSizeUnitMeasureCode);
					break;
				case "UnitMeasure_":
					toReturn.Add(Relations.UnitMeasureEntityUsingWeightUnitMeasureCode);
					break;
				case "BillOfMaterials":
					toReturn.Add(Relations.BillOfMaterialEntityUsingComponentId);
					break;
				case "BillOfMaterials_":
					toReturn.Add(Relations.BillOfMaterialEntityUsingProductAssemblyId);
					break;
				case "ProductCostHistories":
					toReturn.Add(Relations.ProductCostHistoryEntityUsingProductId);
					break;
				case "ProductDocuments":
					toReturn.Add(Relations.ProductDocumentEntityUsingProductId);
					break;
				case "ProductInventories":
					toReturn.Add(Relations.ProductInventoryEntityUsingProductId);
					break;
				case "ProductListPriceHistories":
					toReturn.Add(Relations.ProductListPriceHistoryEntityUsingProductId);
					break;
				case "ProductProductPhotos":
					toReturn.Add(Relations.ProductProductPhotoEntityUsingProductId);
					break;
				case "ProductReviews":
					toReturn.Add(Relations.ProductReviewEntityUsingProductId);
					break;
				case "ProductVendors":
					toReturn.Add(Relations.ProductVendorEntityUsingProductId);
					break;
				case "PurchaseOrderDetails":
					toReturn.Add(Relations.PurchaseOrderDetailEntityUsingProductId);
					break;
				case "ShoppingCartItems":
					toReturn.Add(Relations.ShoppingCartItemEntityUsingProductId);
					break;
				case "SpecialOfferProducts":
					toReturn.Add(Relations.SpecialOfferProductEntityUsingProductId);
					break;
				case "TransactionHistories":
					toReturn.Add(Relations.TransactionHistoryEntityUsingProductId);
					break;
				case "WorkOrders":
					toReturn.Add(Relations.WorkOrderEntityUsingProductId);
					break;
				default:
					break;				
			}
			return toReturn;
		}
예제 #39
0
 /// <summary>
 /// Retrieves in the calling AccountCollection object all AccountEntity objects
 /// which are related via a relation of type 'm:n' with the passed in UserEntity. 
 /// </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="userInstance">UserEntity 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 GetMultiUsingUserCollectionViaDonor_(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity userInstance, IPrefetchPath prefetchPathToUse)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Auction.Entities.EntityType.AccountEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(AccountEntity.Relations.DonorEntityUsingAccountId, "Donor_");
     relations.Add(DonorEntity.Relations.UserEntityUsingUpdatedBy, "Donor_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(userInstance.Fields[(int)UserFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse);
 }
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static new RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Message":
             toReturn.Add(Relations.MessageEntityUsingMessageID);
             break;
         default:
             toReturn = AuditDataCoreEntity.GetRelationsForField(fieldName);
             break;
     }
     return toReturn;
 }
예제 #41
0
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Person":
             toReturn.Add(Relations.PersonEntityUsingPersonId);
             break;
         case "ArtworkToRoles":
             toReturn.Add(Relations.ArtworkToRoleEntityUsingRoleId);
             break;
         case "RoleToEpisodes":
             toReturn.Add(Relations.RoleToEpisodeEntityUsingRoleId);
             break;
         case "RoleToSeasons":
             toReturn.Add(Relations.RoleToSeasonEntityUsingRoleId);
             break;
         case "RoleToSeries":
             toReturn.Add(Relations.RoleToSeriesEntityUsingRoleId);
             break;
         default:
             break;
     }
     return toReturn;
 }
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "CountryRegion":
					toReturn.Add(Relations.CountryRegionEntityUsingCountryRegionCode);
					break;
				case "Currency":
					toReturn.Add(Relations.CurrencyEntityUsingCurrencyCode);
					break;
				default:
					break;				
			}
			return toReturn;
		}
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "CountryRegionCurrencies":
					toReturn.Add(Relations.CountryRegionCurrencyEntityUsingCountryRegionCode);
					break;
				case "SalesTerritories":
					toReturn.Add(Relations.SalesTerritoryEntityUsingCountryRegionCode);
					break;
				case "StateProvinces":
					toReturn.Add(Relations.StateProvinceEntityUsingCountryRegionCode);
					break;
				default:
					break;				
			}
			return toReturn;
		}
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "AspnetUser":
             toReturn.Add(Relations.AspnetUsersEntityUsingUserId);
             break;
         case "SnGroupCategory":
             toReturn.Add(Relations.SnGroupCategoryEntityUsingGroupCategoryId);
             break;
         case "SnAlbum":
             toReturn.Add(Relations.SnAlbumEntityUsingSnGroupId);
             break;
         case "SnDiscussionBoard":
             toReturn.Add(Relations.SnDiscussionBoardEntityUsingSnGroupId);
             break;
         case "SnEvents":
             toReturn.Add(Relations.SnEventEntityUsingSnGroupId);
             break;
         case "SnGroupMembers":
             toReturn.Add(Relations.SnGroupMemberEntityUsingGroupId);
             break;
         case "SnGroupRequests":
             toReturn.Add(Relations.SnGroupRequestEntityUsingGroupId);
             break;
         case "SnNotes":
             toReturn.Add(Relations.SnNoteEntityUsingGroupId);
             break;
         case "SnRelationshipss":
             toReturn.Add(Relations.SnRelationshipEntityUsingGroupId);
             break;
         default:
             break;
     }
     return toReturn;
 }
예제 #45
0
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "ForumRoleForumActionRights":
             toReturn.Add(Relations.ForumRoleForumActionRightEntityUsingActionRightID);
             break;
         case "RoleSystemActionRights":
             toReturn.Add(Relations.RoleSystemActionRightEntityUsingActionRightID);
             break;
         case "SystemRightAssignedToRoles":
             toReturn.Add(Relations.RoleSystemActionRightEntityUsingActionRightID, "ActionRightEntity__", "RoleSystemActionRight_", JoinHint.None);
             toReturn.Add(RoleSystemActionRightEntity.Relations.RoleEntityUsingRoleID, "RoleSystemActionRight_", string.Empty, JoinHint.None);
             break;
         default:
             break;
     }
     return toReturn;
 }
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "AspnetRole":
             toReturn.Add(Relations.AspnetRolesEntityUsingRoleId);
             break;
         case "NewsCategory":
             toReturn.Add(Relations.NewsCategoryEntityUsingNewsCategoryId);
             break;
         default:
             break;
     }
     return toReturn;
 }
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "Employee":
					toReturn.Add(Relations.EmployeeEntityUsingEmployeeId);
					break;
				case "ShipMethod":
					toReturn.Add(Relations.ShipMethodEntityUsingShipMethodId);
					break;
				case "Vendor":
					toReturn.Add(Relations.VendorEntityUsingVendorId);
					break;
				case "PurchaseOrderDetails":
					toReturn.Add(Relations.PurchaseOrderDetailEntityUsingPurchaseOrderId);
					break;
				default:
					break;				
			}
			return toReturn;
		}
예제 #48
0
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "ProductInventories":
					toReturn.Add(Relations.ProductInventoryEntityUsingLocationId);
					break;
				case "WorkOrderRoutings":
					toReturn.Add(Relations.WorkOrderRoutingEntityUsingLocationId);
					break;
				default:
					break;				
			}
			return toReturn;
		}
예제 #49
0
 /// <summary>
 /// Retrieves in the calling AccountCollection object all AccountEntity objects
 /// which are related via a relation of type 'm:n' with the passed in RoleEntity. 
 /// </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="roleInstance">RoleEntity 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 GetMultiUsingRoleCollectionViaUser(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity roleInstance, int pageNumber, int pageSize)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Auction.Entities.EntityType.AccountEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(AccountEntity.Relations.UserEntityUsingAccountId, "User_");
     relations.Add(UserEntity.Relations.RoleEntityUsingRoleId, "User_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(roleInstance.Fields[(int)RoleFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize);
 }
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "SupportQueue":
             toReturn.Add(Relations.SupportQueueEntityUsingQueueID);
             break;
         case "ClaimedByUser":
             toReturn.Add(Relations.UserEntityUsingClaimedByUserID);
             break;
         case "PlacedInQueueByUser":
             toReturn.Add(Relations.UserEntityUsingPlacedInQueueByUserID);
             break;
         case "Thread":
             toReturn.Add(Relations.ThreadEntityUsingThreadID);
             break;
         default:
             break;
     }
     return toReturn;
 }
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Language":
             toReturn.Add(Relations.LanguageEntityUsingLanguageId);
             break;
         case "Page":
             toReturn.Add(Relations.PageEntityUsingPageId);
             break;
         default:
             break;
     }
     return toReturn;
 }
예제 #52
0
파일: ForumDAO.cs 프로젝트: priaonehaha/HnD
 /// <summary>Retrieves in the calling ForumCollection object all ForumEntity objects which are related via a relation of type 'm:n' with the passed in UserEntity.</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="userInstance">UserEntity 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>
 /// <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 GetMultiUsingUsersWhoStartedThreads(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity userInstance, IPrefetchPath prefetchPathToUse, int pageNumber, int pageSize)
 {
     RelationCollection relations = new RelationCollection();
     relations.Add(ForumEntity.Relations.ThreadEntityUsingForumID, "Thread_");
     relations.Add(ThreadEntity.Relations.UserEntityUsingStartedByUserID, "Thread_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(userInstance.Fields[(int)UserFieldIndex.UserID], ComparisonOperator.Equal));
     return this.GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse, pageNumber, pageSize);
 }
예제 #53
0
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Forums":
             toReturn.Add(Relations.ForumEntityUsingSectionID);
             break;
         default:
             break;
     }
     return toReturn;
 }
예제 #54
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();
            switch(fieldName)
            {
                case "AuctionEvent":
                    toReturn.Add(RaffleEntity.Relations.AuctionEventEntityUsingEventId);
                    break;
                case "User_":
                    toReturn.Add(RaffleEntity.Relations.UserEntityUsingUpdatedBy);
                    break;
                case "User":
                    toReturn.Add(RaffleEntity.Relations.UserEntityUsingCreatedBy);
                    break;

                default:

                    break;
            }
            return toReturn;
        }
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Customer":
             toReturn.Add(Relations.CustomerEntityUsingCustomerId);
             break;
         case "CustomerDemographic":
             toReturn.Add(Relations.CustomerDemographicEntityUsingCustomerTypeId);
             break;
         default:
             break;
     }
     return toReturn;
 }
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Customer":
             toReturn.Add(Relations.CustomerEntityUsingCustomerId);
             break;
         case "Employee":
             toReturn.Add(Relations.EmployeeEntityUsingEmployeeId);
             break;
         case "Shipper":
             toReturn.Add(Relations.ShipperEntityUsingShipVia);
             break;
         case "OrderDetails":
             toReturn.Add(Relations.OrderDetailEntityUsingOrderId);
             break;
         default:
             break;
     }
     return toReturn;
 }
예제 #57
0
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Artwork":
             toReturn.Add(Relations.ArtworkEntityUsingArtworkId);
             break;
         case "Role":
             toReturn.Add(Relations.RoleEntityUsingRoleId);
             break;
         default:
             break;
     }
     return toReturn;
 }
		/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
		/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
		/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
		internal static RelationCollection GetRelationsForField(string fieldName)
		{
			RelationCollection toReturn = new RelationCollection();
			switch(fieldName)
			{
				case "BillOfMaterials":
					toReturn.Add(Relations.BillOfMaterialEntityUsingUnitMeasureCode);
					break;
				case "Products":
					toReturn.Add(Relations.ProductEntityUsingSizeUnitMeasureCode);
					break;
				case "Products_":
					toReturn.Add(Relations.ProductEntityUsingWeightUnitMeasureCode);
					break;
				case "ProductVendors":
					toReturn.Add(Relations.ProductVendorEntityUsingUnitMeasureCode);
					break;
				default:
					break;				
			}
			return toReturn;
		}
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 internal static RelationCollection GetRelationsForField(string fieldName)
 {
     RelationCollection toReturn = new RelationCollection();
     switch(fieldName)
     {
         case "Products":
             toReturn.Add(Relations.ProductEntityUsingCategoryId);
             break;
         default:
             break;
     }
     return toReturn;
 }
예제 #60
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        public static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();
            switch(fieldName)
            {

                case "Muser":
                    toReturn.Add(MHakAksesEntity.Relations.MUserEntityUsingCIdHakAkses);
                    break;

                default:

                    break;
            }
            return toReturn;
        }