Beispiel #1
0
 /// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
 /// <param name="leftOperand">The left operand.</param>
 /// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param>
 /// <param name="rightOperand">The right operand which is an entity type.</param>
 /// <param name="aliasRightOperand">The alias of the right operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty.</param>
 /// <param name="onClause">The on clause for the join.</param>
 public DynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, LLBLGenTest.LLBL.EntityType rightOperand, string aliasRightOperand, IPredicate onClause)
 {
     base.InitClass(joinType, string.Empty, aliasRightOperand, onClause, leftOperand, GeneralEntityFactory.Create(rightOperand));
 }
Beispiel #2
0
 /// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
 /// <param name="leftOperand">The left operand, which is an entity.</param>
 /// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param>
 /// <param name="rightOperand">The right operand which is an entity.</param>
 /// <param name="aliasLeftOperand">The alias of the left operand. If you don't want to / need to alias the left operand (only alias if you have to), specify string.Empty.</param>
 /// <param name="aliasRightOperand">The alias of the right operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty.</param>
 /// <param name="onClause">The on clause for the join.</param>
 public DynamicRelation(LLBLGenTest.LLBL.EntityType leftOperand, JoinHint joinType, LLBLGenTest.LLBL.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause)
 {
     base.InitClass(joinType, aliasLeftOperand, aliasRightOperand, onClause, GeneralEntityFactory.Create(leftOperand), GeneralEntityFactory.Create(rightOperand));
 }
Beispiel #3
0
        /// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary>
        /// <param name="relatedEntityType">The type of entity the fields are for</param>
        /// <returns>The IEntityFields2 instance requested</returns>
        public static IEntityFields2 CreateEntityFieldsObject(LLBLGenTest.LLBL.EntityType relatedEntityType)
        {
            IEntityFields2           fieldsToReturn      = null;
            IInheritanceInfoProvider inheritanceProvider = InheritanceInfoProviderSingleton.GetInstance();
            IFieldInfoProvider       fieldProvider       = FieldInfoProviderSingleton.GetInstance();

            switch (relatedEntityType)
            {
            case LLBLGenTest.LLBL.EntityType.Category1Entity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "Category1Entity");
                break;

            case LLBLGenTest.LLBL.EntityType.Category1PostEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "Category1PostEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.Category2Entity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "Category2Entity");
                break;

            case LLBLGenTest.LLBL.EntityType.Category2PostEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "Category2PostEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.MainPageBannerEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "MainPageBannerEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.PostEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "PostEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.PostAttachmentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "PostAttachmentEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.PostTagEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "PostTagEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.SysLanguageEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SysLanguageEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.SysLogEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SysLogEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.SysMltextEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SysMltextEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.SysMltranslationEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SysMltranslationEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.SysSettingEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SysSettingEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.SysTransactionEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SysTransactionEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.SysUserEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SysUserEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.TagEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "TagEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.TeamEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "TeamEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.TeamPostEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "TeamPostEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.TextContentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "TextContentEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.VideoEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "VideoEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.WeeklyProgrammeDayEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "WeeklyProgrammeDayEntity");
                break;

            case LLBLGenTest.LLBL.EntityType.WeeklyProgrammeMatchEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "WeeklyProgrammeMatchEntity");
                break;
            }
            return(fieldsToReturn);
        }