示例#1
0
        /// <summary>General method which will return an array of IEntityFieldCore objects, used by the InheritanceInfoProvider. Only the fields defined in the entity are returned, no inherited fields.</summary>
        /// <param name="entityName">the name of the entity to get the fields for. Example: "CustomerEntity"</param>
        /// <returns>array of IEntityFieldCore fields, defined in the entity with the name specified</returns>
        internal static IEntityFieldCore[] CreateFields(string entityName)
        {
            IFieldInfoProvider       fieldProvider       = FieldInfoProviderSingleton.GetInstance();
            IPersistenceInfoProvider persistenceProvider = PersistenceInfoProviderSingleton.GetInstance();

            return(fieldProvider.GetEntityFieldsArray(entityName, persistenceProvider));
        }
示例#2
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 IEntityFields instance requested</returns>
        public static IEntityFields CreateEntityFieldsObject(silverspun.RGBDiff.Dal.EntityType relatedEntityType)
        {
            IEntityFields            fieldsToReturn      = null;
            IInheritanceInfoProvider inheritanceProvider = InheritanceInfoProviderSingleton.GetInstance();
            IFieldInfoProvider       fieldProvider       = FieldInfoProviderSingleton.GetInstance();
            IPersistenceInfoProvider persistenceProvider = PersistenceInfoProviderSingleton.GetInstance();

            switch (relatedEntityType)
            {
            case silverspun.RGBDiff.Dal.EntityType.ControlSetEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ControlSetEntity");
                break;

            case silverspun.RGBDiff.Dal.EntityType.ControlSetColourEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ControlSetColourEntity");
                break;

            case silverspun.RGBDiff.Dal.EntityType.ObserverDataSetEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ObserverDataSetEntity");
                break;

            case silverspun.RGBDiff.Dal.EntityType.ObserverDataSetColourEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ObserverDataSetColourEntity");
                break;
            }
            return(fieldsToReturn);
        }
示例#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 IEntityFields instance requested</returns>
        public static IEntityFields CreateEntityFieldsObject(Reliant.RenuOil.DAL.EntityType relatedEntityType)
        {
            IEntityFields            fieldsToReturn      = null;
            IInheritanceInfoProvider inheritanceProvider = InheritanceInfoProviderSingleton.GetInstance();
            IFieldInfoProvider       fieldProvider       = FieldInfoProviderSingleton.GetInstance();
            IPersistenceInfoProvider persistenceProvider = PersistenceInfoProviderSingleton.GetInstance();

            switch (relatedEntityType)
            {
            case Reliant.RenuOil.DAL.EntityType.AccountEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AccountEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.AccountEmployeeAssignmentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AccountEmployeeAssignmentEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.AssetCategoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AssetCategoryEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.AssetReclamationServiceEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AssetReclamationServiceEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.AssetReclamationServiceChangeLogEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AssetReclamationServiceChangeLogEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.AssetTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AssetTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.BaleEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "BaleEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ChangeLogEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ChangeLogEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ChangeTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ChangeTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.DeepFryerEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DeepFryerEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.DeepFryerChangeLogEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DeepFryerChangeLogEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.DeepFryerServiceEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DeepFryerServiceEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.DeepFryerServiceChangeLogEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DeepFryerServiceChangeLogEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.DockEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DockEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ElmahErrorEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ElmahErrorEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.EmployeeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "EmployeeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.LoadEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "LoadEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.MobileDeviceEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "MobileDeviceEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RebateEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RebateEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RebateTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RebateTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RecycleServiceEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RecycleServiceEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RecycleServiceActionEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RecycleServiceActionEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RecycleServiceChangeLogEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RecycleServiceChangeLogEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RecycleTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RecycleTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RecycleVendorEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RecycleVendorEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.RecycleVendorServiceEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RecycleVendorServiceEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ServiceLocationEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ServiceLocationEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ServiceLocationAssetTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ServiceLocationAssetTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ServiceLocationAssetTypeChangeLogEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ServiceLocationAssetTypeChangeLogEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ServiceLocationEmployeeAssignmentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ServiceLocationEmployeeAssignmentEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ServiceLocationRecycleTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ServiceLocationRecycleTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.ServiceTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ServiceTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.SettingEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SettingEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.StatusEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "StatusEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.UserEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "UserEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.UserAccountEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "UserAccountEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.UserTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "UserTypeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.WorkOrderEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "WorkOrderEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.WorkOrderEmployeeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "WorkOrderEmployeeEntity");
                break;

            case Reliant.RenuOil.DAL.EntityType.WorkOrderServiceLocationEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "WorkOrderServiceLocationEntity");
                break;
            }
            return(fieldsToReturn);
        }
        /// <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 IEntityFields instance requested</returns>
        public static IEntityFields CreateEntityFieldsObject(policyDB.EntityType relatedEntityType)
        {
            IEntityFields            fieldsToReturn      = null;
            IInheritanceInfoProvider inheritanceProvider = InheritanceInfoProviderSingleton.GetInstance();
            IFieldInfoProvider       fieldProvider       = FieldInfoProviderSingleton.GetInstance();
            IPersistenceInfoProvider persistenceProvider = PersistenceInfoProviderSingleton.GetInstance();

            switch (relatedEntityType)
            {
            case policyDB.EntityType.AttributeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AttributeEntity");
                break;

            case policyDB.EntityType.AttributeTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AttributeTypeEntity");
                break;

            case policyDB.EntityType.AttributeValueEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AttributeValueEntity");
                break;

            case policyDB.EntityType.CombineModeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CombineModeEntity");
                break;

            case policyDB.EntityType.ContextEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ContextEntity");
                break;

            case policyDB.EntityType.DecisionNodeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DecisionNodeEntity");
                break;

            case policyDB.EntityType.EffectEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "EffectEntity");
                break;

            case policyDB.EntityType.LibraryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "LibraryEntity");
                break;

            case policyDB.EntityType.PolicyEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "PolicyEntity");
                break;

            case policyDB.EntityType.PolicyDocumentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "PolicyDocumentEntity");
                break;

            case policyDB.EntityType.PolicyLinkEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "PolicyLinkEntity");
                break;

            case policyDB.EntityType.QueryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "QueryEntity");
                break;

            case policyDB.EntityType.QueryValueEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "QueryValueEntity");
                break;

            case policyDB.EntityType.RuleEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "RuleEntity");
                break;

            case policyDB.EntityType.TargetEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "TargetEntity");
                break;

            case policyDB.EntityType.TargetConditionEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "TargetConditionEntity");
                break;

            case policyDB.EntityType.UriComponentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "UriComponentEntity");
                break;
            }
            return(fieldsToReturn);
        }
示例#5
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 IEntityFields instance requested</returns>
        public static IEntityFields CreateEntityFieldsObject(AW.Data.EntityType relatedEntityType)
        {
            IEntityFields            fieldsToReturn      = null;
            IInheritanceInfoProvider inheritanceProvider = InheritanceInfoProviderSingleton.GetInstance();
            IFieldInfoProvider       fieldProvider       = FieldInfoProviderSingleton.GetInstance();
            IPersistenceInfoProvider persistenceProvider = PersistenceInfoProviderSingleton.GetInstance();

            switch (relatedEntityType)
            {
            case AW.Data.EntityType.AddressEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AddressEntity");
                break;

            case AW.Data.EntityType.AddressTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "AddressTypeEntity");
                break;

            case AW.Data.EntityType.BillOfMaterialsEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "BillOfMaterialsEntity");
                break;

            case AW.Data.EntityType.ContactEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ContactEntity");
                break;

            case AW.Data.EntityType.ContactCreditCardEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ContactCreditCardEntity");
                break;

            case AW.Data.EntityType.ContactTypeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ContactTypeEntity");
                break;

            case AW.Data.EntityType.CountryRegionEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CountryRegionEntity");
                break;

            case AW.Data.EntityType.CountryRegionCurrencyEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CountryRegionCurrencyEntity");
                break;

            case AW.Data.EntityType.CreditCardEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CreditCardEntity");
                break;

            case AW.Data.EntityType.CultureEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CultureEntity");
                break;

            case AW.Data.EntityType.CurrencyEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CurrencyEntity");
                break;

            case AW.Data.EntityType.CurrencyRateEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CurrencyRateEntity");
                break;

            case AW.Data.EntityType.CustomerEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CustomerEntity");
                break;

            case AW.Data.EntityType.CustomerAddressEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CustomerAddressEntity");
                break;

            case AW.Data.EntityType.CustomerViewRelatedEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "CustomerViewRelatedEntity");
                break;

            case AW.Data.EntityType.DepartmentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DepartmentEntity");
                break;

            case AW.Data.EntityType.DocumentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "DocumentEntity");
                break;

            case AW.Data.EntityType.EmployeeEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "EmployeeEntity");
                break;

            case AW.Data.EntityType.EmployeeAddressEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "EmployeeAddressEntity");
                break;

            case AW.Data.EntityType.EmployeeDepartmentHistoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "EmployeeDepartmentHistoryEntity");
                break;

            case AW.Data.EntityType.EmployeePayHistoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "EmployeePayHistoryEntity");
                break;

            case AW.Data.EntityType.IllustrationEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "IllustrationEntity");
                break;

            case AW.Data.EntityType.IndividualEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "IndividualEntity");
                break;

            case AW.Data.EntityType.JobCandidateEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "JobCandidateEntity");
                break;

            case AW.Data.EntityType.LocationEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "LocationEntity");
                break;

            case AW.Data.EntityType.ProductEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductEntity");
                break;

            case AW.Data.EntityType.ProductCategoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductCategoryEntity");
                break;

            case AW.Data.EntityType.ProductCostHistoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductCostHistoryEntity");
                break;

            case AW.Data.EntityType.ProductDescriptionEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductDescriptionEntity");
                break;

            case AW.Data.EntityType.ProductDocumentEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductDocumentEntity");
                break;

            case AW.Data.EntityType.ProductInventoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductInventoryEntity");
                break;

            case AW.Data.EntityType.ProductListPriceHistoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductListPriceHistoryEntity");
                break;

            case AW.Data.EntityType.ProductModelEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductModelEntity");
                break;

            case AW.Data.EntityType.ProductModelIllustrationEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductModelIllustrationEntity");
                break;

            case AW.Data.EntityType.ProductModelProductDescriptionCultureEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductModelProductDescriptionCultureEntity");
                break;

            case AW.Data.EntityType.ProductPhotoEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductPhotoEntity");
                break;

            case AW.Data.EntityType.ProductProductPhotoEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductProductPhotoEntity");
                break;

            case AW.Data.EntityType.ProductReviewEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductReviewEntity");
                break;

            case AW.Data.EntityType.ProductSubcategoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductSubcategoryEntity");
                break;

            case AW.Data.EntityType.ProductVendorEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ProductVendorEntity");
                break;

            case AW.Data.EntityType.PurchaseOrderDetailEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "PurchaseOrderDetailEntity");
                break;

            case AW.Data.EntityType.PurchaseOrderHeaderEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "PurchaseOrderHeaderEntity");
                break;

            case AW.Data.EntityType.SalesOrderDetailEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesOrderDetailEntity");
                break;

            case AW.Data.EntityType.SalesOrderHeaderEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesOrderHeaderEntity");
                break;

            case AW.Data.EntityType.SalesOrderHeaderSalesReasonEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesOrderHeaderSalesReasonEntity");
                break;

            case AW.Data.EntityType.SalesPersonEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesPersonEntity");
                break;

            case AW.Data.EntityType.SalesPersonQuotaHistoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesPersonQuotaHistoryEntity");
                break;

            case AW.Data.EntityType.SalesReasonEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesReasonEntity");
                break;

            case AW.Data.EntityType.SalesTaxRateEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesTaxRateEntity");
                break;

            case AW.Data.EntityType.SalesTerritoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesTerritoryEntity");
                break;

            case AW.Data.EntityType.SalesTerritoryHistoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SalesTerritoryHistoryEntity");
                break;

            case AW.Data.EntityType.ScrapReasonEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ScrapReasonEntity");
                break;

            case AW.Data.EntityType.ShiftEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ShiftEntity");
                break;

            case AW.Data.EntityType.ShipMethodEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ShipMethodEntity");
                break;

            case AW.Data.EntityType.ShoppingCartItemEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "ShoppingCartItemEntity");
                break;

            case AW.Data.EntityType.SpecialOfferEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SpecialOfferEntity");
                break;

            case AW.Data.EntityType.SpecialOfferProductEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "SpecialOfferProductEntity");
                break;

            case AW.Data.EntityType.StateProvinceEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "StateProvinceEntity");
                break;

            case AW.Data.EntityType.StoreEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "StoreEntity");
                break;

            case AW.Data.EntityType.StoreContactEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "StoreContactEntity");
                break;

            case AW.Data.EntityType.TransactionHistoryEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "TransactionHistoryEntity");
                break;

            case AW.Data.EntityType.TransactionHistoryArchiveEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "TransactionHistoryArchiveEntity");
                break;

            case AW.Data.EntityType.UnitMeasureEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "UnitMeasureEntity");
                break;

            case AW.Data.EntityType.VendorEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "VendorEntity");
                break;

            case AW.Data.EntityType.VendorAddressEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "VendorAddressEntity");
                break;

            case AW.Data.EntityType.VendorContactEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "VendorContactEntity");
                break;

            case AW.Data.EntityType.WorkOrderEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "WorkOrderEntity");
                break;

            case AW.Data.EntityType.WorkOrderRoutingEntity:
                fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, persistenceProvider, "WorkOrderRoutingEntity");
                break;
            }
            return(fieldsToReturn);
        }
示例#6
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);
        }