/// <summary> Creates a new IEntityField2 instance for usage in the EntityFields object for the MainPageBannerEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField2 instance should be created</param> /// <returns>The IEntityField2 instance for the field specified in fieldIndex</returns> public static IEntityField2 Create(MainPageBannerFieldIndex fieldIndex) { return(new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo("MainPageBannerEntity", (int)fieldIndex))); }
/// <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) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFieldsArray(entityName)); }
/// <summary>Creates a new IEntityField2 instance for usage in the EntityFields object for the entity related to the field index specified.</summary> /// <param name="fieldIndex">The field which IEntityField2 instance should be created</param> /// <returns>The IEntityField2 instance for the field specified in fieldIndex</returns> public static IEntityField2 Create(Enum fieldIndex) { return(new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo(fieldIndex))); }
/// <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(Reliant.RenuOil.DAL.EntityType relatedEntityType) { IEntityFields2 fieldsToReturn = null; IInheritanceInfoProvider inheritanceProvider = InheritanceInfoProviderSingleton.GetInstance(); IFieldInfoProvider fieldProvider = FieldInfoProviderSingleton.GetInstance(); switch (relatedEntityType) { case Reliant.RenuOil.DAL.EntityType.AccountEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "AccountEntity"); break; case Reliant.RenuOil.DAL.EntityType.AccountEmployeeAssignmentEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "AccountEmployeeAssignmentEntity"); break; case Reliant.RenuOil.DAL.EntityType.AssetCategoryEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "AssetCategoryEntity"); break; case Reliant.RenuOil.DAL.EntityType.AssetReclamationServiceEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "AssetReclamationServiceEntity"); break; case Reliant.RenuOil.DAL.EntityType.AssetReclamationServiceChangeLogEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "AssetReclamationServiceChangeLogEntity"); break; case Reliant.RenuOil.DAL.EntityType.AssetTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "AssetTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.BaleEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "BaleEntity"); break; case Reliant.RenuOil.DAL.EntityType.ChangeLogEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ChangeLogEntity"); break; case Reliant.RenuOil.DAL.EntityType.ChangeTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ChangeTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.DeepFryerEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "DeepFryerEntity"); break; case Reliant.RenuOil.DAL.EntityType.DeepFryerChangeLogEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "DeepFryerChangeLogEntity"); break; case Reliant.RenuOil.DAL.EntityType.DeepFryerServiceEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "DeepFryerServiceEntity"); break; case Reliant.RenuOil.DAL.EntityType.DeepFryerServiceChangeLogEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "DeepFryerServiceChangeLogEntity"); break; case Reliant.RenuOil.DAL.EntityType.DockEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "DockEntity"); break; case Reliant.RenuOil.DAL.EntityType.EmployeeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "EmployeeEntity"); break; case Reliant.RenuOil.DAL.EntityType.LoadEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "LoadEntity"); break; case Reliant.RenuOil.DAL.EntityType.MobileDeviceEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "MobileDeviceEntity"); break; case Reliant.RenuOil.DAL.EntityType.RebateEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RebateEntity"); break; case Reliant.RenuOil.DAL.EntityType.RebateTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RebateTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.RecycleServiceEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RecycleServiceEntity"); break; case Reliant.RenuOil.DAL.EntityType.RecycleServiceActionEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RecycleServiceActionEntity"); break; case Reliant.RenuOil.DAL.EntityType.RecycleServiceChangeLogEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RecycleServiceChangeLogEntity"); break; case Reliant.RenuOil.DAL.EntityType.RecycleTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RecycleTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.RecycleVendorEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RecycleVendorEntity"); break; case Reliant.RenuOil.DAL.EntityType.RecycleVendorServiceEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "RecycleVendorServiceEntity"); break; case Reliant.RenuOil.DAL.EntityType.ServiceLocationEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ServiceLocationEntity"); break; case Reliant.RenuOil.DAL.EntityType.ServiceLocationAssetTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ServiceLocationAssetTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.ServiceLocationAssetTypeChangeLogEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ServiceLocationAssetTypeChangeLogEntity"); break; case Reliant.RenuOil.DAL.EntityType.ServiceLocationEmployeeAssignmentEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ServiceLocationEmployeeAssignmentEntity"); break; case Reliant.RenuOil.DAL.EntityType.ServiceLocationRecycleTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ServiceLocationRecycleTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.ServiceTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "ServiceTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.SettingEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "SettingEntity"); break; case Reliant.RenuOil.DAL.EntityType.StatusEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "StatusEntity"); break; case Reliant.RenuOil.DAL.EntityType.UserEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "UserEntity"); break; case Reliant.RenuOil.DAL.EntityType.UserAccountEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "UserAccountEntity"); break; case Reliant.RenuOil.DAL.EntityType.UserTypeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "UserTypeEntity"); break; case Reliant.RenuOil.DAL.EntityType.WorkOrderEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "WorkOrderEntity"); break; case Reliant.RenuOil.DAL.EntityType.WorkOrderEmployeeEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "WorkOrderEmployeeEntity"); break; case Reliant.RenuOil.DAL.EntityType.WorkOrderServiceLocationEntity: fieldsToReturn = fieldProvider.GetEntityFields(inheritanceProvider, "WorkOrderServiceLocationEntity"); break; } return(fieldsToReturn); }
/// <summary>Creates a complete EntityFields instance for the Campaign1Entity.</summary> /// <returns></returns> private static IEntityFields CreateCampaign1TypedViewEntityFields() { IEntityFields fieldsToReturn = new EntityFields((int)Campaign1FieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("Campaign1TypedView")); for (int i = 0; i < (int)Campaign1FieldIndex.AmountOfFields; i++) { fieldsToReturn[i] = EntityFieldFactory.Create((Campaign1FieldIndex)i); } return(fieldsToReturn); }
/// <summary>Creates a complete EntityFields instance for the ProductsByCategoryEntity.</summary> private static IEntityFields2 CreateProductsByCategoryTypedViewEntityFields() { IEntityFields2 fieldsToReturn = new EntityFields2((int)ProductsByCategoryFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("ProductsByCategoryTypedView")); for (int i = 0; i < (int)ProductsByCategoryFieldIndex.AmountOfFields; i++) { fieldsToReturn[i] = EntityFieldFactory.Create((ProductsByCategoryFieldIndex)i); } 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(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); }
/// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the WorkOrderServiceLocationEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField instance should be created</param> /// <returns>The IEntityField instance for the field specified in fieldIndex</returns> public static IEntityField Create(WorkOrderServiceLocationFieldIndex fieldIndex) { IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("WorkOrderServiceLocationEntity", (int)fieldIndex); return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name))); }
/// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the AssetReclamationServiceChangeLogEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField instance should be created</param> /// <returns>The IEntityField instance for the field specified in fieldIndex</returns> public static IEntityField Create(AssetReclamationServiceChangeLogFieldIndex fieldIndex) { IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("AssetReclamationServiceChangeLogEntity", (int)fieldIndex); return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name))); }
/// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the RecycleVendorServiceEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField instance should be created</param> /// <returns>The IEntityField instance for the field specified in fieldIndex</returns> public static IEntityField Create(RecycleVendorServiceFieldIndex fieldIndex) { IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("RecycleVendorServiceEntity", (int)fieldIndex); return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name))); }
/// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the AccountEmployeeAssignmentEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField instance should be created</param> /// <returns>The IEntityField instance for the field specified in fieldIndex</returns> public static IEntityField Create(AccountEmployeeAssignmentFieldIndex fieldIndex) { IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("AccountEmployeeAssignmentEntity", (int)fieldIndex); return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name))); }
/// <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(SquawkTalk.Datalayer.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary> Creates a new IEntityField2 instance for usage in the EntityFields object for the SysLanguageEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField2 instance should be created</param> /// <returns>The IEntityField2 instance for the field specified in fieldIndex</returns> public static IEntityField2 Create(SysLanguageFieldIndex fieldIndex) { return(new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo("SysLanguageEntity", (int)fieldIndex))); }
/// <summary> Creates a new IEntityField2 instance for usage in the EntityFields object for the PostTagEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField2 instance should be created</param> /// <returns>The IEntityField2 instance for the field specified in fieldIndex</returns> public static IEntityField2 Create(PostTagFieldIndex fieldIndex) { return(new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo("PostTagEntity", (int)fieldIndex))); }
/// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the DecisionNodeEntity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField instance should be created</param> /// <returns>The IEntityField instance for the field specified in fieldIndex</returns> public static IEntityField Create(DecisionNodeFieldIndex fieldIndex) { IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("DecisionNodeEntity", (int)fieldIndex); return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name))); }
/// <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); }
/// <summary>General factory entrance method which will return an EntityFields2 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 IEntityFields2 CreateEntityFieldsObject(SD.LLBLGen.Pro.Examples.WCF.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>Creates a complete EntityFields instance for the CustomerAndSuppliersByCityEntity.</summary> private static IEntityFields2 CreateCustomerAndSuppliersByCityTypedViewEntityFields() { IEntityFields2 fieldsToReturn = new EntityFields2((int)CustomerAndSuppliersByCityFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("CustomerAndSuppliersByCityTypedView")); for (int i = 0; i < (int)CustomerAndSuppliersByCityFieldIndex.AmountOfFields; i++) { fieldsToReturn[i] = EntityFieldFactory.Create((CustomerAndSuppliersByCityFieldIndex)i); } return(fieldsToReturn); }
/// <summary> /// 创建实体字段 /// </summary> /// <param name="fieldIndex">字段索引</param> /// <returns>实体字段</returns> public static EntityField2 Create(VO_WF_SLXX_LSIndex fieldIndex) { return(new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo(VO_WF_SLXX_LS.EntityName, (int)fieldIndex))); }
/// <summary>Creates a complete EntityFields instance for the OrderDetailsExtendedEntity.</summary> private static IEntityFields2 CreateOrderDetailsExtendedTypedViewEntityFields() { IEntityFields2 fieldsToReturn = new EntityFields2((int)OrderDetailsExtendedFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("OrderDetailsExtendedTypedView")); for (int i = 0; i < (int)OrderDetailsExtendedFieldIndex.AmountOfFields; i++) { fieldsToReturn[i] = EntityFieldFactory.Create((OrderDetailsExtendedFieldIndex)i); } return(fieldsToReturn); }
/// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the entity related to the field index specified.</summary> /// <param name="fieldIndex">The field which IEntityField instance should be created</param> /// <returns>The IEntityField instance for the field specified in fieldIndex</returns> public static IEntityField Create(Enum fieldIndex) { IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo(fieldIndex); return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name))); }
/// <summary>Creates a complete EntityFields instance for the QuarterlyOrderEntity.</summary> private static IEntityFields2 CreateQuarterlyOrderTypedViewEntityFields() { IEntityFields2 fieldsToReturn = new EntityFields2((int)QuarterlyOrderFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("QuarterlyOrderTypedView")); for (int i = 0; i < (int)QuarterlyOrderFieldIndex.AmountOfFields; i++) { fieldsToReturn[i] = EntityFieldFactory.Create((QuarterlyOrderFieldIndex)i); } 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(Mecca.CMT.DAL.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>Creates a complete EntityFields instance for the SummaryOfSalesByYearEntity.</summary> private static IEntityFields2 CreateSummaryOfSalesByYearTypedViewEntityFields() { IEntityFields2 fieldsToReturn = new EntityFields2((int)SummaryOfSalesByYearFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("SummaryOfSalesByYearTypedView")); for (int i = 0; i < (int)SummaryOfSalesByYearFieldIndex.AmountOfFields; i++) { fieldsToReturn[i] = EntityFieldFactory.Create((SummaryOfSalesByYearFieldIndex)i); } return(fieldsToReturn); }
/// <summary>General factory entrance method which will return an EntityFields2 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 IEntityFields2 CreateEntityFieldsObject(AdventureWorks.Dal.Adapter.v42.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>General factory entrance method which will return an EntityFields2 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 IEntityFields2 CreateEntityFieldsObject(Northwind.DAL.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>Creates a complete EntityFields instance for the SohQuerySpecPocoEntity.</summary> private static IEntityFields2 CreateSohQuerySpecPocoTypedViewEntityFields() { IEntityFields2 fieldsToReturn = new EntityFields2((int)SohQuerySpecPocoFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("SohQuerySpecPocoTypedView")); for (int i = 0; i < (int)SohQuerySpecPocoFieldIndex.AmountOfFields; i++) { fieldsToReturn[i] = EntityFieldFactory.Create((SohQuerySpecPocoFieldIndex)i); } return(fieldsToReturn); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected StoreEntity(SerializationInfo info, StreamingContext context) : base(info, context) { this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary>Creates a new IEntityField2 instance, which represents the field objectName.fieldName</summary> /// <param name="objectName">the name of the object the field belongs to, like CustomerEntity or OrdersTypedView</param> /// <param name="fieldName">the name of the field to create</param> public static IEntityField2 Create(string objectName, string fieldName) { return(new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName))); }
/// <summary> Creates a new IEntityField2 instance for usage in the EntityFields object for the Category2Entity. Which EntityField is created is specified by fieldIndex</summary> /// <param name="fieldIndex">The field which IEntityField2 instance should be created</param> /// <returns>The IEntityField2 instance for the field specified in fieldIndex</returns> public static IEntityField2 Create(Category2FieldIndex fieldIndex) { return(new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo("Category2Entity", (int)fieldIndex))); }