From 60ff3330aba9343ba80dd07bd5fc837adea6aeea Mon Sep 17 00:00:00 2001 From: Frans Bouma Date: Mon, 5 Feb 2018 10:50:41 +0100 Subject: [PATCH] migrated llblgen pro to v5.4 alpha --- .../AdventureWorks.Dal.Adapter.v53.csproj | 519 --- LLBLGen53/DatabaseGeneric/ConstantsEnums.cs | 1691 --------- .../EntityClasses/AddressEntity.cs | 735 ---- .../EntityClasses/AddressTypeEntity.cs | 481 --- .../EntityClasses/BillOfMaterialEntity.cs | 777 ---- .../BusinessEntityAddressEntity.cs | 737 ---- .../BusinessEntityContactEntity.cs | 737 ---- .../EntityClasses/BusinessEntityEntity.cs | 839 ----- .../EntityClasses/ContactCreditCardEntity.cs | 619 ---- .../EntityClasses/ContactTypeEntity.cs | 469 --- .../CountryRegionCurrencyEntity.cs | 619 ---- .../EntityClasses/CountryRegionEntity.cs | 561 --- .../EntityClasses/CreditCardEntity.cs | 551 --- .../EntityClasses/CultureEntity.cs | 469 --- .../EntityClasses/CurrencyEntity.cs | 561 --- .../EntityClasses/CurrencyRateEntity.cs | 709 ---- .../EntityClasses/CustomerEntity.cs | 799 ----- .../EntityClasses/DepartmentEntity.cs | 481 --- .../EntityClasses/DocumentEntity.cs | 713 ---- .../EntityClasses/EmailAddressEntity.cs | 553 --- .../EmployeeDepartmentHistoryEntity.cs | 753 ---- .../EntityClasses/EmployeeEntity.cs | 1040 ------ .../EntityClasses/EmployeePayHistoryEntity.cs | 553 --- .../EntityClasses/IllustrationEntity.cs | 469 --- .../EntityClasses/JobCandidateEntity.cs | 537 --- .../EntityClasses/LocationEntity.cs | 539 --- .../EntityClasses/PasswordEntity.cs | 570 --- .../EntityClasses/PersonEntity.cs | 1112 ------ .../EntityClasses/PersonPhoneEntity.cs | 635 ---- .../EntityClasses/PhoneNumberTypeEntity.cs | 469 --- .../EntityClasses/ProductCategoryEntity.cs | 481 --- .../EntityClasses/ProductCostHistoryEntity.cs | 553 --- .../EntityClasses/ProductDescriptionEntity.cs | 481 --- .../EntityClasses/ProductDocumentEntity.cs | 619 ---- .../EntityClasses/ProductEntity.cs | 1703 --------- .../EntityClasses/ProductInventoryEntity.cs | 667 ---- .../ProductListPriceHistoryEntity.cs | 553 --- .../EntityClasses/ProductModelEntity.cs | 597 ---- .../ProductModelIllustrationEntity.cs | 619 ---- ...uctModelProductDescriptionCultureEntity.cs | 725 ---- .../EntityClasses/ProductPhotoEntity.cs | 505 --- .../ProductProductPhotoEntity.cs | 631 ---- .../EntityClasses/ProductReviewEntity.cs | 585 --- .../EntityClasses/ProductSubcategoryEntity.cs | 595 ---- .../EntityClasses/ProductVendorEntity.cs | 805 ----- .../PurchaseOrderDetailEntity.cs | 715 ---- .../PurchaseOrderHeaderEntity.cs | 871 ----- .../EntityClasses/SalesOrderDetailEntity.cs | 719 ---- .../EntityClasses/SalesOrderHeaderEntity.cs | 1523 -------- .../SalesOrderHeaderSalesReasonEntity.cs | 619 ---- .../EntityClasses/SalesPersonEntity.cs | 892 ----- .../SalesPersonQuotaHistoryEntity.cs | 553 --- .../EntityClasses/SalesReasonEntity.cs | 481 --- .../EntityClasses/SalesTaxRateEntity.cs | 573 --- .../EntityClasses/SalesTerritoryEntity.cs | 839 ----- .../SalesTerritoryHistoryEntity.cs | 659 ---- .../EntityClasses/ScrapReasonEntity.cs | 469 --- .../EntityClasses/ShiftEntity.cs | 493 --- .../EntityClasses/ShipMethodEntity.cs | 551 --- .../EntityClasses/ShoppingCartItemEntity.cs | 561 --- .../EntityClasses/SpecialOfferEntity.cs | 565 --- .../SpecialOfferProductEntity.cs | 678 ---- .../EntityClasses/StateProvinceEntity.cs | 767 ---- .../EntityClasses/StoreEntity.cs | 718 ---- .../TransactionHistoryArchiveEntity.cs | 495 --- .../EntityClasses/TransactionHistoryEntity.cs | 597 ---- .../EntityClasses/UnitMeasureEntity.cs | 607 ---- .../EntityClasses/VendorEntity.cs | 698 ---- .../EntityClasses/WorkOrderEntity.cs | 745 ---- .../EntityClasses/WorkOrderRoutingEntity.cs | 731 ---- .../FactoryClasses/EntityFactories.cs | 1853 ---------- .../FactoryClasses/EntityFieldFactory.cs | 42 - .../FactoryClasses/EntityFieldsFactory.cs | 106 - .../FactoryClasses/QueryFactory.cs | 526 --- .../HelperClasses/FieldCreationClasses.cs | 3162 ----------------- .../HelperClasses/InheritanceInfoProvider.cs | 72 - .../HelperClasses/ResultsetFields.cs | 62 - .../DatabaseGeneric/Linq/LinqMetaData.cs | 725 ---- .../RelationClasses/AddressRelations.cs | 126 - .../RelationClasses/AddressTypeRelations.cs | 76 - .../BillOfMaterialRelations.cs | 108 - .../BusinessEntityAddressRelations.cs | 108 - .../BusinessEntityContactRelations.cs | 108 - .../BusinessEntityRelations.cs | 155 - .../ContactCreditCardRelations.cs | 92 - .../RelationClasses/ContactTypeRelations.cs | 76 - .../CountryRegionCurrencyRelations.cs | 92 - .../RelationClasses/CountryRegionRelations.cs | 110 - .../RelationClasses/CreditCardRelations.cs | 93 - .../RelationClasses/CultureRelations.cs | 76 - .../RelationClasses/CurrencyRateRelations.cs | 108 - .../RelationClasses/CurrencyRelations.cs | 110 - .../RelationClasses/CustomerRelations.cs | 124 - .../RelationClasses/DepartmentRelations.cs | 76 - .../RelationClasses/DocumentRelations.cs | 92 - .../RelationClasses/EmailAddressRelations.cs | 76 - .../EmployeeDepartmentHistoryRelations.cs | 108 - .../EmployeePayHistoryRelations.cs | 76 - .../RelationClasses/EmployeeRelations.cs | 185 - .../RelationClasses/IllustrationRelations.cs | 76 - .../RelationClasses/JobCandidateRelations.cs | 76 - .../RelationClasses/LocationRelations.cs | 93 - .../RelationClasses/PasswordRelations.cs | 80 - .../RelationClasses/PersonPhoneRelations.cs | 92 - .../RelationClasses/PersonRelations.cs | 206 -- .../PhoneNumberTypeRelations.cs | 76 - .../ProductCategoryRelations.cs | 76 - .../ProductCostHistoryRelations.cs | 76 - .../ProductDescriptionRelations.cs | 76 - .../ProductDocumentRelations.cs | 92 - .../ProductInventoryRelations.cs | 92 - .../ProductListPriceHistoryRelations.cs | 76 - .../ProductModelIllustrationRelations.cs | 92 - ...ModelProductDescriptionCultureRelations.cs | 108 - .../RelationClasses/ProductModelRelations.cs | 110 - .../RelationClasses/ProductPhotoRelations.cs | 76 - .../ProductProductPhotoRelations.cs | 92 - .../RelationClasses/ProductRelations.cs | 361 -- .../RelationClasses/ProductReviewRelations.cs | 76 - .../ProductSubcategoryRelations.cs | 92 - .../RelationClasses/ProductVendorRelations.cs | 108 - .../PurchaseOrderDetailRelations.cs | 92 - .../PurchaseOrderHeaderRelations.cs | 124 - .../SalesOrderDetailRelations.cs | 94 - .../SalesOrderHeaderRelations.cs | 221 -- .../SalesOrderHeaderSalesReasonRelations.cs | 92 - .../SalesPersonQuotaHistoryRelations.cs | 76 - .../RelationClasses/SalesPersonRelations.cs | 163 - .../RelationClasses/SalesReasonRelations.cs | 76 - .../RelationClasses/SalesTaxRateRelations.cs | 76 - .../SalesTerritoryHistoryRelations.cs | 92 - .../SalesTerritoryRelations.cs | 160 - .../RelationClasses/ScrapReasonRelations.cs | 76 - .../RelationClasses/ShiftRelations.cs | 76 - .../RelationClasses/ShipMethodRelations.cs | 93 - .../ShoppingCartItemRelations.cs | 76 - .../SpecialOfferProductRelations.cs | 110 - .../RelationClasses/SpecialOfferRelations.cs | 76 - .../RelationClasses/StateProvinceRelations.cs | 125 - .../RelationClasses/StoreRelations.cs | 112 - .../TransactionHistoryArchiveRelations.cs | 60 - .../TransactionHistoryRelations.cs | 76 - .../RelationClasses/UnitMeasureRelations.cs | 127 - .../RelationClasses/VendorRelations.cs | 113 - .../RelationClasses/WorkOrderRelations.cs | 108 - .../WorkOrderRoutingRelations.cs | 92 - {LLBLGen53 => LLBLGen54}/AW.llblgenproj | 30 +- .../AdventureWorks.Dal.Adapter.v54.csproj | 302 ++ .../DatabaseGeneric/AssemblyInfo.cs | 0 LLBLGen54/DatabaseGeneric/ConstantsEnums.cs | 345 ++ .../EntityClasses/AddressEntity.cs | 342 ++ .../EntityClasses/AddressTypeEntity.cs | 219 ++ .../EntityClasses/BillOfMaterialEntity.cs | 328 ++ .../BusinessEntityAddressEntity.cs | 295 ++ .../BusinessEntityContactEntity.cs | 295 ++ .../EntityClasses/BusinessEntityEntity.cs | 313 ++ .../EntityClasses/CommonEntityBase.cs | 76 +- .../EntityClasses/ContactCreditCardEntity.cs | 245 ++ .../EntityClasses/ContactTypeEntity.cs | 209 ++ .../CountryRegionCurrencyEntity.cs | 245 ++ .../EntityClasses/CountryRegionEntity.cs | 256 ++ .../EntityClasses/CreditCardEntity.cs | 262 ++ .../EntityClasses/CultureEntity.cs | 210 ++ .../EntityClasses/CurrencyEntity.cs | 256 ++ .../EntityClasses/CurrencyRateEntity.cs | 303 ++ .../EntityClasses/CustomerEntity.cs | 329 ++ .../EntityClasses/DepartmentEntity.cs | 219 ++ .../EntityClasses/DocumentEntity.cs | 355 ++ .../EntityClasses/EmailAddressEntity.cs | 237 ++ .../EmployeeDepartmentHistoryEntity.cs | 308 ++ .../EntityClasses/EmployeeEntity.cs | 484 +++ .../EntityClasses/EmployeePayHistoryEntity.cs | 238 ++ .../EntityClasses/IllustrationEntity.cs | 209 ++ .../EntityClasses/JobCandidateEntity.cs | 224 ++ .../EntityClasses/LocationEntity.cs | 252 ++ .../EntityClasses/PasswordEntity.cs | 235 ++ .../EntityClasses/PersonEntity.cs | 483 +++ .../EntityClasses/PersonPhoneEntity.cs | 258 ++ .../EntityClasses/PhoneNumberTypeEntity.cs | 209 ++ .../EntityClasses/ProductCategoryEntity.cs | 219 ++ .../EntityClasses/ProductCostHistoryEntity.cs | 238 ++ .../EntityClasses/ProductDescriptionEntity.cs | 219 ++ .../EntityClasses/ProductDocumentEntity.cs | 245 ++ .../EntityClasses/ProductEntity.cs | 836 +++++ .../EntityClasses/ProductInventoryEntity.cs | 285 ++ .../ProductListPriceHistoryEntity.cs | 238 ++ .../EntityClasses/ProductModelEntity.cs | 285 ++ .../ProductModelIllustrationEntity.cs | 245 ++ ...uctModelProductDescriptionCultureEntity.cs | 285 ++ .../EntityClasses/ProductPhotoEntity.cs | 239 ++ .../ProductProductPhotoEntity.cs | 255 ++ .../EntityClasses/ProductReviewEntity.cs | 264 ++ .../EntityClasses/ProductSubcategoryEntity.cs | 256 ++ .../EntityClasses/ProductVendorEntity.cs | 352 ++ .../PurchaseOrderDetailEntity.cs | 322 ++ .../PurchaseOrderHeaderEntity.cs | 389 ++ .../EntityClasses/SalesOrderDetailEntity.cs | 323 ++ .../EntityClasses/SalesOrderHeaderEntity.cs | 676 ++++ .../SalesOrderHeaderSalesReasonEntity.cs | 245 ++ .../EntityClasses/SalesPersonEntity.cs | 393 ++ .../SalesPersonQuotaHistoryEntity.cs | 238 ++ .../EntityClasses/SalesReasonEntity.cs | 219 ++ .../EntityClasses/SalesTaxRateEntity.cs | 254 ++ .../EntityClasses/SalesTerritoryEntity.cs | 398 +++ .../SalesTerritoryHistoryEntity.cs | 278 ++ .../EntityClasses/ScrapReasonEntity.cs | 209 ++ .../EntityClasses/ShiftEntity.cs | 229 ++ .../EntityClasses/ShipMethodEntity.cs | 262 ++ .../EntityClasses/ShoppingCartItemEntity.cs | 244 ++ .../EntityClasses/SpecialOfferEntity.cs | 289 ++ .../SpecialOfferProductEntity.cs | 277 ++ .../EntityClasses/StateProvinceEntity.cs | 336 ++ .../EntityClasses/StoreEntity.cs | 294 ++ .../TransactionHistoryArchiveEntity.cs | 248 ++ .../EntityClasses/TransactionHistoryEntity.cs | 274 ++ .../EntityClasses/UnitMeasureEntity.cs | 279 ++ .../EntityClasses/VendorEntity.cs | 309 ++ .../EntityClasses/WorkOrderEntity.cs | 332 ++ .../EntityClasses/WorkOrderRoutingEntity.cs | 338 ++ .../FactoryClasses/EntityFactories.cs | 999 ++++++ .../FactoryClasses/QueryFactory.cs | 235 ++ .../HelperClasses}/DynamicRelation.cs | 31 +- .../HelperClasses/EntityCollection.cs | 69 +- .../HelperClasses/FieldCreationClasses.cs | 1454 ++++++++ .../HelperClasses/LinqMetaData.cs | 420 +++ .../HelperClasses/ModelInfoProvider.cs | 548 +-- .../HelperClasses/ResultsetFields.cs | 30 + .../HelperClasses/TypeDefaultValue.cs | 44 +- .../TypedViewClasses/SohLinqPocoRow.cs | 15 +- .../TypedViewClasses/SohQuerySpecPocoRow.cs | 15 +- .../TypedViewClasses/SohTypedView.cs | 71 +- .../DatabaseSpecific/ActionProcedures.cs | 13 +- ...tureWorks.Dal.Adapter.v54DBSpecific.csproj | 28 +- .../DatabaseSpecific/App.config | 0 .../DatabaseSpecific/AssemblyInfo.cs | 0 .../DatabaseSpecific/DataAccessAdapter.cs | 40 +- .../PersistenceInfoProvider.cs | 24 +- .../DatabaseSpecific/RetrievalProcedures.cs | 12 +- {LLBLGen53 => LLBLGen54}/packages.config | 0 RawBencher.sln | 30 +- .../LLBLGenProNoChangeTrackingBencher.cs | 6 +- ...BLGenProNoChangeTrackingLinqPocoBencher.cs | 8 +- ...ProNoChangeTrackingQuerySpecPocoBencher.cs | 8 +- ...GenProNoChangeTrackingRawSQLPocoBencher.cs | 8 +- .../Benchers/LLBLGenProNormalBencher.cs | 8 +- .../LLBLGenProResultsetCachingBencher.cs | 8 +- RawBencher/OriginalController.cs | 2 +- RawBencher/Program.cs | 2 +- RawBencher/RawBencher.csproj | 12 +- .../SD.LLBLGen.Pro.DQE.SqlServer.dll | Bin 0 -> 44544 bytes .../SD.LLBLGen.Pro.ORMSupportClasses.dll | Bin 0 -> 1656320 bytes 251 files changed, 24213 insertions(+), 61760 deletions(-) delete mode 100644 LLBLGen53/AdventureWorks.Dal.Adapter.v53.csproj delete mode 100644 LLBLGen53/DatabaseGeneric/ConstantsEnums.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/AddressEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/CreditCardEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/CultureEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/CustomerEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/DepartmentEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/DocumentEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/IllustrationEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/LocationEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/PasswordEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/PersonEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ShiftEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/StoreEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/VendorEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs delete mode 100644 LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFactories.cs delete mode 100644 LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldFactory.cs delete mode 100644 LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldsFactory.cs delete mode 100644 LLBLGen53/DatabaseGeneric/FactoryClasses/QueryFactory.cs delete mode 100644 LLBLGen53/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs delete mode 100644 LLBLGen53/DatabaseGeneric/HelperClasses/InheritanceInfoProvider.cs delete mode 100644 LLBLGen53/DatabaseGeneric/HelperClasses/ResultsetFields.cs delete mode 100644 LLBLGen53/DatabaseGeneric/Linq/LinqMetaData.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/AddressRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/AddressTypeRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/BillOfMaterialRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityAddressRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityContactRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ContactCreditCardRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ContactTypeRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionCurrencyRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/CreditCardRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/CultureRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRateRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/CustomerRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/DepartmentRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/DocumentRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/EmailAddressRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeDepartmentHistoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/EmployeePayHistoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/IllustrationRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/JobCandidateRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/LocationRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/PasswordRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/PersonPhoneRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/PersonRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/PhoneNumberTypeRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductCategoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductCostHistoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductDescriptionRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductDocumentRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductInventoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductListPriceHistoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelIllustrationRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelProductDescriptionCultureRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductPhotoRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductProductPhotoRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductReviewRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductSubcategoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ProductVendorRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderDetailRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderHeaderRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderDetailRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderSalesReasonRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonQuotaHistoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesReasonRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesTaxRateRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryHistoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ScrapReasonRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ShiftRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ShipMethodRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/ShoppingCartItemRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferProductRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/StateProvinceRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/StoreRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryArchiveRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/UnitMeasureRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/VendorRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRelations.cs delete mode 100644 LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRoutingRelations.cs rename {LLBLGen53 => LLBLGen54}/AW.llblgenproj (99%) create mode 100644 LLBLGen54/DatabaseGeneric/AdventureWorks.Dal.Adapter.v54.csproj rename {LLBLGen53 => LLBLGen54}/DatabaseGeneric/AssemblyInfo.cs (100%) create mode 100644 LLBLGen54/DatabaseGeneric/ConstantsEnums.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/AddressEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs rename {LLBLGen53 => LLBLGen54}/DatabaseGeneric/EntityClasses/CommonEntityBase.cs (72%) create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/CreditCardEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/CultureEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/CustomerEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/DepartmentEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/DocumentEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/IllustrationEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/LocationEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/PasswordEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/PersonEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ShiftEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/StoreEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/VendorEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs create mode 100644 LLBLGen54/DatabaseGeneric/FactoryClasses/EntityFactories.cs create mode 100644 LLBLGen54/DatabaseGeneric/FactoryClasses/QueryFactory.cs rename {LLBLGen53/DatabaseGeneric/RelationClasses => LLBLGen54/DatabaseGeneric/HelperClasses}/DynamicRelation.cs (84%) rename {LLBLGen53 => LLBLGen54}/DatabaseGeneric/HelperClasses/EntityCollection.cs (58%) create mode 100644 LLBLGen54/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs create mode 100644 LLBLGen54/DatabaseGeneric/HelperClasses/LinqMetaData.cs rename LLBLGen53/DatabaseGeneric/HelperClasses/FieldInfoProvider.cs => LLBLGen54/DatabaseGeneric/HelperClasses/ModelInfoProvider.cs (89%) create mode 100644 LLBLGen54/DatabaseGeneric/HelperClasses/ResultsetFields.cs rename {LLBLGen53 => LLBLGen54}/DatabaseGeneric/HelperClasses/TypeDefaultValue.cs (66%) rename {LLBLGen53 => LLBLGen54}/DatabaseGeneric/TypedViewClasses/SohLinqPocoRow.cs (90%) rename {LLBLGen53 => LLBLGen54}/DatabaseGeneric/TypedViewClasses/SohQuerySpecPocoRow.cs (89%) rename {LLBLGen53 => LLBLGen54}/DatabaseGeneric/TypedViewClasses/SohTypedView.cs (96%) rename {LLBLGen53 => LLBLGen54}/DatabaseSpecific/ActionProcedures.cs (73%) rename LLBLGen53/AdventureWorks.Dal.Adapter.v53DBSpecific.csproj => LLBLGen54/DatabaseSpecific/AdventureWorks.Dal.Adapter.v54DBSpecific.csproj (71%) rename {LLBLGen53 => LLBLGen54}/DatabaseSpecific/App.config (100%) rename {LLBLGen53 => LLBLGen54}/DatabaseSpecific/AssemblyInfo.cs (100%) rename {LLBLGen53 => LLBLGen54}/DatabaseSpecific/DataAccessAdapter.cs (94%) rename {LLBLGen53 => LLBLGen54}/DatabaseSpecific/PersistenceInfoProvider.cs (99%) rename {LLBLGen53 => LLBLGen54}/DatabaseSpecific/RetrievalProcedures.cs (76%) rename {LLBLGen53 => LLBLGen54}/packages.config (100%) create mode 100644 ReferencedAssemblies/SD.LLBLGen.Pro.DQE.SqlServer.dll create mode 100644 ReferencedAssemblies/SD.LLBLGen.Pro.ORMSupportClasses.dll diff --git a/LLBLGen53/AdventureWorks.Dal.Adapter.v53.csproj b/LLBLGen53/AdventureWorks.Dal.Adapter.v53.csproj deleted file mode 100644 index deee19e8..00000000 --- a/LLBLGen53/AdventureWorks.Dal.Adapter.v53.csproj +++ /dev/null @@ -1,519 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {E293317E-71F0-41C0-B004-BB30D5E04B47} - Library - Properties - AdventureWorks.Dal.Adapter.v53 - AdventureWorks.Dal.Adapter.v53 - v4.6.2 - 512 - - - - true - full - false - DatabaseGeneric\bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - DatabaseGeneric\bin\Release\ - TRACE - prompt - 4 - - - - False - ..\ReferencedAssemblies\Microsoft.SqlServer.Types.dll - - - False - ..\packages\SD.LLBLGen.Pro.ORMSupportClasses.5.3.3-hotfix-20180129\lib\net452\SD.LLBLGen.Pro.ORMSupportClasses.dll - - - - - - - - - - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - LLBLGen Pro - - - - - - - \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/ConstantsEnums.cs b/LLBLGen53/DatabaseGeneric/ConstantsEnums.cs deleted file mode 100644 index aa6331fc..00000000 --- a/LLBLGen53/DatabaseGeneric/ConstantsEnums.cs +++ /dev/null @@ -1,1691 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; - -namespace AdventureWorks.Dal.Adapter.v53 -{ - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Address. - public enum AddressFieldIndex - { - ///AddressId. - AddressId, - ///AddressLine1. - AddressLine1, - ///AddressLine2. - AddressLine2, - ///City. - City, - ///ModifiedDate. - ModifiedDate, - ///PostalCode. - PostalCode, - ///Rowguid. - Rowguid, - ///SpatialLocation. - SpatialLocation, - ///StateProvinceId. - StateProvinceId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: AddressType. - public enum AddressTypeFieldIndex - { - ///AddressTypeId. - AddressTypeId, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: BillOfMaterial. - public enum BillOfMaterialFieldIndex - { - ///BillOfMaterialsId. - BillOfMaterialsId, - ///Bomlevel. - Bomlevel, - ///ComponentId. - ComponentId, - ///EndDate. - EndDate, - ///ModifiedDate. - ModifiedDate, - ///PerAssemblyQty. - PerAssemblyQty, - ///ProductAssemblyId. - ProductAssemblyId, - ///StartDate. - StartDate, - ///UnitMeasureCode. - UnitMeasureCode, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: BusinessEntity. - public enum BusinessEntityFieldIndex - { - ///BusinessEntityId. - BusinessEntityId, - ///ModifiedDate. - ModifiedDate, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: BusinessEntityAddress. - public enum BusinessEntityAddressFieldIndex - { - ///AddressId. - AddressId, - ///AddressTypeId. - AddressTypeId, - ///BusinessEntityId. - BusinessEntityId, - ///ModifiedDate. - ModifiedDate, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: BusinessEntityContact. - public enum BusinessEntityContactFieldIndex - { - ///BusinessEntityId. - BusinessEntityId, - ///ContactTypeId. - ContactTypeId, - ///ModifiedDate. - ModifiedDate, - ///PersonId. - PersonId, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ContactCreditCard. - public enum ContactCreditCardFieldIndex - { - ///ContactId. - ContactId, - ///CreditCardId. - CreditCardId, - ///ModifiedDate. - ModifiedDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ContactType. - public enum ContactTypeFieldIndex - { - ///ContactTypeId. - ContactTypeId, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: CountryRegion. - public enum CountryRegionFieldIndex - { - ///CountryRegionCode. - CountryRegionCode, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: CountryRegionCurrency. - public enum CountryRegionCurrencyFieldIndex - { - ///CountryRegionCode. - CountryRegionCode, - ///CurrencyCode. - CurrencyCode, - ///ModifiedDate. - ModifiedDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: CreditCard. - public enum CreditCardFieldIndex - { - ///CardNumber. - CardNumber, - ///CardType. - CardType, - ///CreditCardId. - CreditCardId, - ///ExpMonth. - ExpMonth, - ///ExpYear. - ExpYear, - ///ModifiedDate. - ModifiedDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Culture. - public enum CultureFieldIndex - { - ///CultureId. - CultureId, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Currency. - public enum CurrencyFieldIndex - { - ///CurrencyCode. - CurrencyCode, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: CurrencyRate. - public enum CurrencyRateFieldIndex - { - ///AverageRate. - AverageRate, - ///CurrencyRateDate. - CurrencyRateDate, - ///CurrencyRateId. - CurrencyRateId, - ///EndOfDayRate. - EndOfDayRate, - ///FromCurrencyCode. - FromCurrencyCode, - ///ModifiedDate. - ModifiedDate, - ///ToCurrencyCode. - ToCurrencyCode, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Customer. - public enum CustomerFieldIndex - { - ///AccountNumber. - AccountNumber, - ///CustomerId. - CustomerId, - ///ModifiedDate. - ModifiedDate, - ///PersonId. - PersonId, - ///Rowguid. - Rowguid, - ///StoreId. - StoreId, - ///TerritoryId. - TerritoryId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Department. - public enum DepartmentFieldIndex - { - ///DepartmentId. - DepartmentId, - ///GroupName. - GroupName, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Document. - public enum DocumentFieldIndex - { - ///ChangeNumber. - ChangeNumber, - ///Document. - Document, - ///DocumentLevel. - DocumentLevel, - ///DocumentNode. - DocumentNode, - ///DocumentSummary. - DocumentSummary, - ///FileExtension. - FileExtension, - ///FileName. - FileName, - ///FolderFlag. - FolderFlag, - ///ModifiedDate. - ModifiedDate, - ///Owner. - Owner, - ///Revision. - Revision, - ///Rowguid. - Rowguid, - ///Status. - Status, - ///Title. - Title, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: EmailAddress. - public enum EmailAddressFieldIndex - { - ///BusinessEntityId. - BusinessEntityId, - ///EmailAddressId. - EmailAddressId, - ///EmailAddressValue. - EmailAddressValue, - ///ModifiedDate. - ModifiedDate, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Employee. - public enum EmployeeFieldIndex - { - ///BirthDate. - BirthDate, - ///CurrentFlag. - CurrentFlag, - ///EmployeeId. - EmployeeId, - ///Gender. - Gender, - ///HireDate. - HireDate, - ///LoginId. - LoginId, - ///MaritalStatus. - MaritalStatus, - ///ModifiedDate. - ModifiedDate, - ///NationalIdnumber. - NationalIdnumber, - ///OrganizationLevel. - OrganizationLevel, - ///OrganizationNode. - OrganizationNode, - ///Rowguid. - Rowguid, - ///SalariedFlag. - SalariedFlag, - ///SickLeaveHours. - SickLeaveHours, - ///Title. - Title, - ///VacationHours. - VacationHours, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: EmployeeDepartmentHistory. - public enum EmployeeDepartmentHistoryFieldIndex - { - ///DepartmentId. - DepartmentId, - ///EmployeeId. - EmployeeId, - ///EndDate. - EndDate, - ///ModifiedDate. - ModifiedDate, - ///ShiftId. - ShiftId, - ///StartDate. - StartDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: EmployeePayHistory. - public enum EmployeePayHistoryFieldIndex - { - ///EmployeeId. - EmployeeId, - ///ModifiedDate. - ModifiedDate, - ///PayFrequency. - PayFrequency, - ///Rate. - Rate, - ///RateChangeDate. - RateChangeDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Illustration. - public enum IllustrationFieldIndex - { - ///Diagram. - Diagram, - ///IllustrationId. - IllustrationId, - ///ModifiedDate. - ModifiedDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: JobCandidate. - public enum JobCandidateFieldIndex - { - ///EmployeeId. - EmployeeId, - ///JobCandidateId. - JobCandidateId, - ///ModifiedDate. - ModifiedDate, - ///Resume. - Resume, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Location. - public enum LocationFieldIndex - { - ///Availability. - Availability, - ///CostRate. - CostRate, - ///LocationId. - LocationId, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Password. - public enum PasswordFieldIndex - { - ///BusinessEntityId. - BusinessEntityId, - ///ModifiedDate. - ModifiedDate, - ///PasswordHash. - PasswordHash, - ///PasswordSalt. - PasswordSalt, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Person. - public enum PersonFieldIndex - { - ///AdditionalContactInfo. - AdditionalContactInfo, - ///BusinessEntityId. - BusinessEntityId, - ///Demographics. - Demographics, - ///EmailPromotion. - EmailPromotion, - ///FirstName. - FirstName, - ///LastName. - LastName, - ///MiddleName. - MiddleName, - ///ModifiedDate. - ModifiedDate, - ///NameStyle. - NameStyle, - ///PersonType. - PersonType, - ///Rowguid. - Rowguid, - ///Suffix. - Suffix, - ///Title. - Title, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: PersonPhone. - public enum PersonPhoneFieldIndex - { - ///BusinessEntityId. - BusinessEntityId, - ///ModifiedDate. - ModifiedDate, - ///PhoneNumber. - PhoneNumber, - ///PhoneNumberTypeId. - PhoneNumberTypeId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: PhoneNumberType. - public enum PhoneNumberTypeFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///PhoneNumberTypeId. - PhoneNumberTypeId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Product. - public enum ProductFieldIndex - { - ///Class. - Class, - ///Color. - Color, - ///DaysToManufacture. - DaysToManufacture, - ///DiscontinuedDate. - DiscontinuedDate, - ///FinishedGoodsFlag. - FinishedGoodsFlag, - ///ListPrice. - ListPrice, - ///MakeFlag. - MakeFlag, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///ProductId. - ProductId, - ///ProductLine. - ProductLine, - ///ProductModelId. - ProductModelId, - ///ProductNumber. - ProductNumber, - ///ProductSubcategoryId. - ProductSubcategoryId, - ///ReorderPoint. - ReorderPoint, - ///Rowguid. - Rowguid, - ///SafetyStockLevel. - SafetyStockLevel, - ///SellEndDate. - SellEndDate, - ///SellStartDate. - SellStartDate, - ///Size. - Size, - ///SizeUnitMeasureCode. - SizeUnitMeasureCode, - ///StandardCost. - StandardCost, - ///Style. - Style, - ///Weight. - Weight, - ///WeightUnitMeasureCode. - WeightUnitMeasureCode, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductCategory. - public enum ProductCategoryFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///ProductCategoryId. - ProductCategoryId, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductCostHistory. - public enum ProductCostHistoryFieldIndex - { - ///EndDate. - EndDate, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///StandardCost. - StandardCost, - ///StartDate. - StartDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductDescription. - public enum ProductDescriptionFieldIndex - { - ///Description. - Description, - ///ModifiedDate. - ModifiedDate, - ///ProductDescriptionId. - ProductDescriptionId, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductDocument. - public enum ProductDocumentFieldIndex - { - ///DocumentNode. - DocumentNode, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductInventory. - public enum ProductInventoryFieldIndex - { - ///Bin. - Bin, - ///LocationId. - LocationId, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///Quantity. - Quantity, - ///Rowguid. - Rowguid, - ///Shelf. - Shelf, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductListPriceHistory. - public enum ProductListPriceHistoryFieldIndex - { - ///EndDate. - EndDate, - ///ListPrice. - ListPrice, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///StartDate. - StartDate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductModel. - public enum ProductModelFieldIndex - { - ///CatalogDescription. - CatalogDescription, - ///Instructions. - Instructions, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///ProductModelId. - ProductModelId, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductModelIllustration. - public enum ProductModelIllustrationFieldIndex - { - ///IllustrationId. - IllustrationId, - ///ModifiedDate. - ModifiedDate, - ///ProductModelId. - ProductModelId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductModelProductDescriptionCulture. - public enum ProductModelProductDescriptionCultureFieldIndex - { - ///CultureId. - CultureId, - ///ModifiedDate. - ModifiedDate, - ///ProductDescriptionId. - ProductDescriptionId, - ///ProductModelId. - ProductModelId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductPhoto. - public enum ProductPhotoFieldIndex - { - ///LargePhoto. - LargePhoto, - ///LargePhotoFileName. - LargePhotoFileName, - ///ModifiedDate. - ModifiedDate, - ///ProductPhotoId. - ProductPhotoId, - ///ThumbNailPhoto. - ThumbNailPhoto, - ///ThumbnailPhotoFileName. - ThumbnailPhotoFileName, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductProductPhoto. - public enum ProductProductPhotoFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Primary. - Primary, - ///ProductId. - ProductId, - ///ProductPhotoId. - ProductPhotoId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductReview. - public enum ProductReviewFieldIndex - { - ///Comments. - Comments, - ///EmailAddress. - EmailAddress, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///ProductReviewId. - ProductReviewId, - ///Rating. - Rating, - ///ReviewDate. - ReviewDate, - ///ReviewerName. - ReviewerName, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductSubcategory. - public enum ProductSubcategoryFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///ProductCategoryId. - ProductCategoryId, - ///ProductSubcategoryId. - ProductSubcategoryId, - ///Rowguid. - Rowguid, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ProductVendor. - public enum ProductVendorFieldIndex - { - ///AverageLeadTime. - AverageLeadTime, - ///LastReceiptCost. - LastReceiptCost, - ///LastReceiptDate. - LastReceiptDate, - ///MaxOrderQty. - MaxOrderQty, - ///MinOrderQty. - MinOrderQty, - ///ModifiedDate. - ModifiedDate, - ///OnOrderQty. - OnOrderQty, - ///ProductId. - ProductId, - ///StandardPrice. - StandardPrice, - ///UnitMeasureCode. - UnitMeasureCode, - ///VendorId. - VendorId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: PurchaseOrderDetail. - public enum PurchaseOrderDetailFieldIndex - { - ///DueDate. - DueDate, - ///LineTotal. - LineTotal, - ///ModifiedDate. - ModifiedDate, - ///OrderQty. - OrderQty, - ///ProductId. - ProductId, - ///PurchaseOrderDetailId. - PurchaseOrderDetailId, - ///PurchaseOrderId. - PurchaseOrderId, - ///ReceivedQty. - ReceivedQty, - ///RejectedQty. - RejectedQty, - ///StockedQty. - StockedQty, - ///UnitPrice. - UnitPrice, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: PurchaseOrderHeader. - public enum PurchaseOrderHeaderFieldIndex - { - ///EmployeeId. - EmployeeId, - ///Freight. - Freight, - ///ModifiedDate. - ModifiedDate, - ///OrderDate. - OrderDate, - ///PurchaseOrderId. - PurchaseOrderId, - ///RevisionNumber. - RevisionNumber, - ///ShipDate. - ShipDate, - ///ShipMethodId. - ShipMethodId, - ///Status. - Status, - ///SubTotal. - SubTotal, - ///TaxAmt. - TaxAmt, - ///TotalDue. - TotalDue, - ///VendorId. - VendorId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesOrderDetail. - public enum SalesOrderDetailFieldIndex - { - ///CarrierTrackingNumber. - CarrierTrackingNumber, - ///LineTotal. - LineTotal, - ///ModifiedDate. - ModifiedDate, - ///OrderQty. - OrderQty, - ///ProductId. - ProductId, - ///Rowguid. - Rowguid, - ///SalesOrderDetailId. - SalesOrderDetailId, - ///SalesOrderId. - SalesOrderId, - ///SpecialOfferId. - SpecialOfferId, - ///UnitPrice. - UnitPrice, - ///UnitPriceDiscount. - UnitPriceDiscount, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesOrderHeader. - public enum SalesOrderHeaderFieldIndex - { - ///AccountNumber. - AccountNumber, - ///BillToAddressId. - BillToAddressId, - ///Comment. - Comment, - ///CreditCardApprovalCode. - CreditCardApprovalCode, - ///CreditCardId. - CreditCardId, - ///CurrencyRateId. - CurrencyRateId, - ///CustomerId. - CustomerId, - ///DueDate. - DueDate, - ///Freight. - Freight, - ///ModifiedDate. - ModifiedDate, - ///OnlineOrderFlag. - OnlineOrderFlag, - ///OrderDate. - OrderDate, - ///PurchaseOrderNumber. - PurchaseOrderNumber, - ///RevisionNumber. - RevisionNumber, - ///Rowguid. - Rowguid, - ///SalesOrderId. - SalesOrderId, - ///SalesOrderNumber. - SalesOrderNumber, - ///SalesPersonId. - SalesPersonId, - ///ShipDate. - ShipDate, - ///ShipMethodId. - ShipMethodId, - ///ShipToAddressId. - ShipToAddressId, - ///Status. - Status, - ///SubTotal. - SubTotal, - ///TaxAmt. - TaxAmt, - ///TerritoryId. - TerritoryId, - ///TotalDue. - TotalDue, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesOrderHeaderSalesReason. - public enum SalesOrderHeaderSalesReasonFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///SalesOrderId. - SalesOrderId, - ///SalesReasonId. - SalesReasonId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesPerson. - public enum SalesPersonFieldIndex - { - ///Bonus. - Bonus, - ///CommissionPct. - CommissionPct, - ///ModifiedDate. - ModifiedDate, - ///Rowguid. - Rowguid, - ///SalesLastYear. - SalesLastYear, - ///SalesPersonId. - SalesPersonId, - ///SalesQuota. - SalesQuota, - ///SalesYtd. - SalesYtd, - ///TerritoryId. - TerritoryId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesPersonQuotaHistory. - public enum SalesPersonQuotaHistoryFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///QuotaDate. - QuotaDate, - ///Rowguid. - Rowguid, - ///SalesPersonId. - SalesPersonId, - ///SalesQuota. - SalesQuota, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesReason. - public enum SalesReasonFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///ReasonType. - ReasonType, - ///SalesReasonId. - SalesReasonId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesTaxRate. - public enum SalesTaxRateFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///Rowguid. - Rowguid, - ///SalesTaxRateId. - SalesTaxRateId, - ///StateProvinceId. - StateProvinceId, - ///TaxRate. - TaxRate, - ///TaxType. - TaxType, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesTerritory. - public enum SalesTerritoryFieldIndex - { - ///CostLastYear. - CostLastYear, - ///CostYtd. - CostYtd, - ///CountryRegionCode. - CountryRegionCode, - ///Group. - Group, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///Rowguid. - Rowguid, - ///SalesLastYear. - SalesLastYear, - ///SalesYtd. - SalesYtd, - ///TerritoryId. - TerritoryId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SalesTerritoryHistory. - public enum SalesTerritoryHistoryFieldIndex - { - ///EndDate. - EndDate, - ///ModifiedDate. - ModifiedDate, - ///Rowguid. - Rowguid, - ///SalesPersonId. - SalesPersonId, - ///StartDate. - StartDate, - ///TerritoryId. - TerritoryId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ScrapReason. - public enum ScrapReasonFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///ScrapReasonId. - ScrapReasonId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Shift. - public enum ShiftFieldIndex - { - ///EndTime. - EndTime, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///ShiftId. - ShiftId, - ///StartTime. - StartTime, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ShipMethod. - public enum ShipMethodFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///Rowguid. - Rowguid, - ///ShipBase. - ShipBase, - ///ShipMethodId. - ShipMethodId, - ///ShipRate. - ShipRate, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: ShoppingCartItem. - public enum ShoppingCartItemFieldIndex - { - ///DateCreated. - DateCreated, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///Quantity. - Quantity, - ///ShoppingCartId. - ShoppingCartId, - ///ShoppingCartItemId. - ShoppingCartItemId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SpecialOffer. - public enum SpecialOfferFieldIndex - { - ///Category. - Category, - ///Description. - Description, - ///DiscountPct. - DiscountPct, - ///EndDate. - EndDate, - ///MaxQty. - MaxQty, - ///MinQty. - MinQty, - ///ModifiedDate. - ModifiedDate, - ///Rowguid. - Rowguid, - ///SpecialOfferId. - SpecialOfferId, - ///StartDate. - StartDate, - ///Type. - Type, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: SpecialOfferProduct. - public enum SpecialOfferProductFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///Rowguid. - Rowguid, - ///SpecialOfferId. - SpecialOfferId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: StateProvince. - public enum StateProvinceFieldIndex - { - ///CountryRegionCode. - CountryRegionCode, - ///IsOnlyStateProvinceFlag. - IsOnlyStateProvinceFlag, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///Rowguid. - Rowguid, - ///StateProvinceCode. - StateProvinceCode, - ///StateProvinceId. - StateProvinceId, - ///TerritoryId. - TerritoryId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Store. - public enum StoreFieldIndex - { - ///CustomerId. - CustomerId, - ///Demographics. - Demographics, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///Rowguid. - Rowguid, - ///SalesPersonId. - SalesPersonId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: TransactionHistory. - public enum TransactionHistoryFieldIndex - { - ///ActualCost. - ActualCost, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///Quantity. - Quantity, - ///ReferenceOrderId. - ReferenceOrderId, - ///ReferenceOrderLineId. - ReferenceOrderLineId, - ///TransactionDate. - TransactionDate, - ///TransactionId. - TransactionId, - ///TransactionType. - TransactionType, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: TransactionHistoryArchive. - public enum TransactionHistoryArchiveFieldIndex - { - ///ActualCost. - ActualCost, - ///ModifiedDate. - ModifiedDate, - ///ProductId. - ProductId, - ///Quantity. - Quantity, - ///ReferenceOrderId. - ReferenceOrderId, - ///ReferenceOrderLineId. - ReferenceOrderLineId, - ///TransactionDate. - TransactionDate, - ///TransactionId. - TransactionId, - ///TransactionType. - TransactionType, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: UnitMeasure. - public enum UnitMeasureFieldIndex - { - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///UnitMeasureCode. - UnitMeasureCode, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: Vendor. - public enum VendorFieldIndex - { - ///AccountNumber. - AccountNumber, - ///ActiveFlag. - ActiveFlag, - ///CreditRating. - CreditRating, - ///ModifiedDate. - ModifiedDate, - ///Name. - Name, - ///PreferredVendorStatus. - PreferredVendorStatus, - ///PurchasingWebServiceUrl. - PurchasingWebServiceUrl, - ///VendorId. - VendorId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: WorkOrder. - public enum WorkOrderFieldIndex - { - ///DueDate. - DueDate, - ///EndDate. - EndDate, - ///ModifiedDate. - ModifiedDate, - ///OrderQty. - OrderQty, - ///ProductId. - ProductId, - ///ScrappedQty. - ScrappedQty, - ///ScrapReasonId. - ScrapReasonId, - ///StartDate. - StartDate, - ///StockedQty. - StockedQty, - ///WorkOrderId. - WorkOrderId, - /// - AmountOfFields - } - /// Index enum to fast-access EntityFields in the IEntityFields collection for the entity: WorkOrderRouting. - public enum WorkOrderRoutingFieldIndex - { - ///ActualCost. - ActualCost, - ///ActualEndDate. - ActualEndDate, - ///ActualResourceHrs. - ActualResourceHrs, - ///ActualStartDate. - ActualStartDate, - ///LocationId. - LocationId, - ///ModifiedDate. - ModifiedDate, - ///OperationSequence. - OperationSequence, - ///PlannedCost. - PlannedCost, - ///ProductId. - ProductId, - ///ScheduledEndDate. - ScheduledEndDate, - ///ScheduledStartDate. - ScheduledStartDate, - ///WorkOrderId. - WorkOrderId, - /// - AmountOfFields - } - - /// Index enum to fast-access Typed View EntityFields in the IEntityFields collection for the typed view : Soh. - public enum SohFieldIndex - { - ///SalesOrderId - SalesOrderId, - ///RevisionNumber - RevisionNumber, - ///OrderDate - OrderDate, - ///DueDate - DueDate, - ///ShipDate - ShipDate, - ///Status - Status, - ///OnlineOrderFlag - OnlineOrderFlag, - ///SalesOrderNumber - SalesOrderNumber, - ///PurchaseOrderNumber - PurchaseOrderNumber, - ///AccountNumber - AccountNumber, - ///CustomerId - CustomerId, - ///SalesPersonId - SalesPersonId, - ///TerritoryId - TerritoryId, - ///BillToAddressId - BillToAddressId, - ///ShipToAddressId - ShipToAddressId, - ///ShipMethodId - ShipMethodId, - ///CreditCardId - CreditCardId, - ///CreditCardApprovalCode - CreditCardApprovalCode, - ///CurrencyRateId - CurrencyRateId, - ///SubTotal - SubTotal, - ///TaxAmt - TaxAmt, - ///Freight - Freight, - ///TotalDue - TotalDue, - ///Comment - Comment, - ///Rowguid - Rowguid, - ///ModifiedDate - ModifiedDate, - /// - AmountOfFields - } - /// Index enum to fast-access Typed View EntityFields in the IEntityFields collection for the typed view : SohLinqPoco. - public enum SohLinqPocoFieldIndex - { - ///SalesOrderId - SalesOrderId, - ///RevisionNumber - RevisionNumber, - ///OrderDate - OrderDate, - ///DueDate - DueDate, - ///ShipDate - ShipDate, - ///Status - Status, - ///OnlineOrderFlag - OnlineOrderFlag, - ///SalesOrderNumber - SalesOrderNumber, - ///PurchaseOrderNumber - PurchaseOrderNumber, - ///AccountNumber - AccountNumber, - ///CustomerId - CustomerId, - ///SalesPersonId - SalesPersonId, - ///TerritoryId - TerritoryId, - ///BillToAddressId - BillToAddressId, - ///ShipToAddressId - ShipToAddressId, - ///ShipMethodId - ShipMethodId, - ///CreditCardId - CreditCardId, - ///CreditCardApprovalCode - CreditCardApprovalCode, - ///CurrencyRateId - CurrencyRateId, - ///SubTotal - SubTotal, - ///TaxAmt - TaxAmt, - ///Freight - Freight, - ///TotalDue - TotalDue, - ///Comment - Comment, - ///Rowguid - Rowguid, - ///ModifiedDate - ModifiedDate, - /// - AmountOfFields - } - /// Index enum to fast-access Typed View EntityFields in the IEntityFields collection for the typed view : SohQuerySpecPoco. - public enum SohQuerySpecPocoFieldIndex - { - ///SalesOrderId - SalesOrderId, - ///RevisionNumber - RevisionNumber, - ///OrderDate - OrderDate, - ///DueDate - DueDate, - ///ShipDate - ShipDate, - ///Status - Status, - ///OnlineOrderFlag - OnlineOrderFlag, - ///SalesOrderNumber - SalesOrderNumber, - ///PurchaseOrderNumber - PurchaseOrderNumber, - ///AccountNumber - AccountNumber, - ///CustomerId - CustomerId, - ///SalesPersonId - SalesPersonId, - ///TerritoryId - TerritoryId, - ///BillToAddressId - BillToAddressId, - ///ShipToAddressId - ShipToAddressId, - ///ShipMethodId - ShipMethodId, - ///CreditCardId - CreditCardId, - ///CreditCardApprovalCode - CreditCardApprovalCode, - ///CurrencyRateId - CurrencyRateId, - ///SubTotal - SubTotal, - ///TaxAmt - TaxAmt, - ///Freight - Freight, - ///TotalDue - TotalDue, - ///Comment - Comment, - ///Rowguid - Rowguid, - ///ModifiedDate - ModifiedDate, - /// - AmountOfFields - } - - - /// Enum definition for all the entity types defined in this namespace. Used by the entityfields factory. - public enum EntityType - { - ///Address - AddressEntity, - ///AddressType - AddressTypeEntity, - ///BillOfMaterial - BillOfMaterialEntity, - ///BusinessEntity - BusinessEntityEntity, - ///BusinessEntityAddress - BusinessEntityAddressEntity, - ///BusinessEntityContact - BusinessEntityContactEntity, - ///ContactCreditCard - ContactCreditCardEntity, - ///ContactType - ContactTypeEntity, - ///CountryRegion - CountryRegionEntity, - ///CountryRegionCurrency - CountryRegionCurrencyEntity, - ///CreditCard - CreditCardEntity, - ///Culture - CultureEntity, - ///Currency - CurrencyEntity, - ///CurrencyRate - CurrencyRateEntity, - ///Customer - CustomerEntity, - ///Department - DepartmentEntity, - ///Document - DocumentEntity, - ///EmailAddress - EmailAddressEntity, - ///Employee - EmployeeEntity, - ///EmployeeDepartmentHistory - EmployeeDepartmentHistoryEntity, - ///EmployeePayHistory - EmployeePayHistoryEntity, - ///Illustration - IllustrationEntity, - ///JobCandidate - JobCandidateEntity, - ///Location - LocationEntity, - ///Password - PasswordEntity, - ///Person - PersonEntity, - ///PersonPhone - PersonPhoneEntity, - ///PhoneNumberType - PhoneNumberTypeEntity, - ///Product - ProductEntity, - ///ProductCategory - ProductCategoryEntity, - ///ProductCostHistory - ProductCostHistoryEntity, - ///ProductDescription - ProductDescriptionEntity, - ///ProductDocument - ProductDocumentEntity, - ///ProductInventory - ProductInventoryEntity, - ///ProductListPriceHistory - ProductListPriceHistoryEntity, - ///ProductModel - ProductModelEntity, - ///ProductModelIllustration - ProductModelIllustrationEntity, - ///ProductModelProductDescriptionCulture - ProductModelProductDescriptionCultureEntity, - ///ProductPhoto - ProductPhotoEntity, - ///ProductProductPhoto - ProductProductPhotoEntity, - ///ProductReview - ProductReviewEntity, - ///ProductSubcategory - ProductSubcategoryEntity, - ///ProductVendor - ProductVendorEntity, - ///PurchaseOrderDetail - PurchaseOrderDetailEntity, - ///PurchaseOrderHeader - PurchaseOrderHeaderEntity, - ///SalesOrderDetail - SalesOrderDetailEntity, - ///SalesOrderHeader - SalesOrderHeaderEntity, - ///SalesOrderHeaderSalesReason - SalesOrderHeaderSalesReasonEntity, - ///SalesPerson - SalesPersonEntity, - ///SalesPersonQuotaHistory - SalesPersonQuotaHistoryEntity, - ///SalesReason - SalesReasonEntity, - ///SalesTaxRate - SalesTaxRateEntity, - ///SalesTerritory - SalesTerritoryEntity, - ///SalesTerritoryHistory - SalesTerritoryHistoryEntity, - ///ScrapReason - ScrapReasonEntity, - ///Shift - ShiftEntity, - ///ShipMethod - ShipMethodEntity, - ///ShoppingCartItem - ShoppingCartItemEntity, - ///SpecialOffer - SpecialOfferEntity, - ///SpecialOfferProduct - SpecialOfferProductEntity, - ///StateProvince - StateProvinceEntity, - ///Store - StoreEntity, - ///TransactionHistory - TransactionHistoryEntity, - ///TransactionHistoryArchive - TransactionHistoryArchiveEntity, - ///UnitMeasure - UnitMeasureEntity, - ///Vendor - VendorEntity, - ///WorkOrder - WorkOrderEntity, - ///WorkOrderRouting - WorkOrderRoutingEntity - } - - /// Enum definition for all the typed view types defined in this namespace. Used by the entityfields factory. - public enum TypedViewType - { - ///Soh - SohTypedView, - ///SohLinqPoco - SohLinqPocoTypedView, - ///SohQuerySpecPoco - SohQuerySpecPocoTypedView - } - - #region Custom ConstantsEnums Code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomUserConstants - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion -} - diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/AddressEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/AddressEntity.cs deleted file mode 100644 index d082b744..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/AddressEntity.cs +++ /dev/null @@ -1,735 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Address'.

- [Serializable] - public partial class AddressEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _businessEntityAddresses; - private EntityCollection _salesOrderHeaders; - private EntityCollection _salesOrderHeaders_; - private StateProvinceEntity _stateProvince; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name StateProvince - public static readonly string StateProvince = "StateProvince"; - /// Member name BusinessEntityAddresses - public static readonly string BusinessEntityAddresses = "BusinessEntityAddresses"; - /// Member name SalesOrderHeaders - public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; - /// Member name SalesOrderHeaders_ - public static readonly string SalesOrderHeaders_ = "SalesOrderHeaders_"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static AddressEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public AddressEntity():base("AddressEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public AddressEntity(IEntityFields2 fields):base("AddressEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this AddressEntity - public AddressEntity(IValidator validator):base("AddressEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Address which data should be fetched into this Address object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public AddressEntity(System.Int32 addressId):base("AddressEntity") - { - InitClassEmpty(null, null); - this.AddressId = addressId; - } - - /// CTor - /// PK value for Address which data should be fetched into this Address object - /// The custom validator object for this AddressEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public AddressEntity(System.Int32 addressId, IValidator validator):base("AddressEntity") - { - InitClassEmpty(validator, null); - this.AddressId = addressId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected AddressEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _businessEntityAddresses = (EntityCollection)info.GetValue("_businessEntityAddresses", typeof(EntityCollection)); - _salesOrderHeaders = (EntityCollection)info.GetValue("_salesOrderHeaders", typeof(EntityCollection)); - _salesOrderHeaders_ = (EntityCollection)info.GetValue("_salesOrderHeaders_", typeof(EntityCollection)); - _stateProvince = (StateProvinceEntity)info.GetValue("_stateProvince", typeof(StateProvinceEntity)); - if(_stateProvince!=null) - { - _stateProvince.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((AddressFieldIndex)fieldIndex) - { - case AddressFieldIndex.StateProvinceId: - DesetupSyncStateProvince(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "StateProvince": - this.StateProvince = (StateProvinceEntity)entity; - break; - case "BusinessEntityAddresses": - this.BusinessEntityAddresses.Add((BusinessEntityAddressEntity)entity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)entity); - break; - case "SalesOrderHeaders_": - this.SalesOrderHeaders_.Add((SalesOrderHeaderEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "StateProvince": - toReturn.Add(Relations.StateProvinceEntityUsingStateProvinceId); - break; - case "BusinessEntityAddresses": - toReturn.Add(Relations.BusinessEntityAddressEntityUsingAddressId); - break; - case "SalesOrderHeaders": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingBillToAddressId); - break; - case "SalesOrderHeaders_": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingShipToAddressId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "StateProvince": - SetupSyncStateProvince(relatedEntity); - break; - case "BusinessEntityAddresses": - this.BusinessEntityAddresses.Add((BusinessEntityAddressEntity)relatedEntity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)relatedEntity); - break; - case "SalesOrderHeaders_": - this.SalesOrderHeaders_.Add((SalesOrderHeaderEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "StateProvince": - DesetupSyncStateProvince(false, true); - break; - case "BusinessEntityAddresses": - this.PerformRelatedEntityRemoval(this.BusinessEntityAddresses, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesOrderHeaders": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesOrderHeaders_": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders_, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_stateProvince!=null) - { - toReturn.Add(_stateProvince); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityAddresses); - toReturn.Add(this.SalesOrderHeaders); - toReturn.Add(this.SalesOrderHeaders_); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_businessEntityAddresses", ((_businessEntityAddresses!=null) && (_businessEntityAddresses.Count>0) && !this.MarkedForDeletion)?_businessEntityAddresses:null); - info.AddValue("_salesOrderHeaders", ((_salesOrderHeaders!=null) && (_salesOrderHeaders.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders:null); - info.AddValue("_salesOrderHeaders_", ((_salesOrderHeaders_!=null) && (_salesOrderHeaders_.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders_:null); - info.AddValue("_stateProvince", (!this.MarkedForDeletion?_stateProvince:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new AddressRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityAddress' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityAddresses() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityAddressFields.AddressId, null, ComparisonOperator.Equal, this.AddressId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.BillToAddressId, null, ComparisonOperator.Equal, this.AddressId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.ShipToAddressId, null, ComparisonOperator.Equal, this.AddressId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'StateProvince' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoStateProvince() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(StateProvinceFields.StateProvinceId, null, ComparisonOperator.Equal, this.StateProvinceId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(AddressEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._businessEntityAddresses); - collectionsQueue.Enqueue(this._salesOrderHeaders); - collectionsQueue.Enqueue(this._salesOrderHeaders_); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._businessEntityAddresses = (EntityCollection) collectionsQueue.Dequeue(); - this._salesOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - this._salesOrderHeaders_ = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._businessEntityAddresses != null); - toReturn |=(this._salesOrderHeaders != null); - toReturn |=(this._salesOrderHeaders_ != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityAddressEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("StateProvince", _stateProvince); - toReturn.Add("BusinessEntityAddresses", _businessEntityAddresses); - toReturn.Add("SalesOrderHeaders", _salesOrderHeaders); - toReturn.Add("SalesOrderHeaders_", _salesOrderHeaders_); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AddressId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AddressLine1", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AddressLine2", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("City", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PostalCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SpatialLocation", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StateProvinceId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _stateProvince - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncStateProvince(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _stateProvince, new PropertyChangedEventHandler(OnStateProvincePropertyChanged), "StateProvince", "Addresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticAddressRelations.StateProvinceEntityUsingStateProvinceIdStatic, true, new int[] { (int)AddressFieldIndex.StateProvinceId }); - } - - /// setups the sync logic for member _stateProvince - /// Instance to set as the related entity of type entityType - private void SetupSyncStateProvince(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _stateProvince, new PropertyChangedEventHandler( OnStateProvincePropertyChanged ), "StateProvince", "Addresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticAddressRelations.StateProvinceEntityUsingStateProvinceIdStatic, true, new string[] { }, new int[] { (int)AddressFieldIndex.StateProvinceId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnStateProvincePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this AddressEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static AddressRelations Relations - { - get { return new AddressRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityAddress' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntityAddresses - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityAddressEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntityAddresses")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity, 0, null, null, null, null, "BusinessEntityAddresses", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders_ - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathStateProvince - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StateProvinceEntityFactory))), (IEntityRelation)GetRelationsForField("StateProvince")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, 0, null, null, null, null, "StateProvince", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AddressId property of the Entity Address

- /// Mapped on table field: "Address"."AddressID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 AddressId - { - get { return (System.Int32)GetValue((int)AddressFieldIndex.AddressId, true); } - set { SetValue((int)AddressFieldIndex.AddressId, value); } - } - - /// The AddressLine1 property of the Entity Address

- /// Mapped on table field: "Address"."AddressLine1"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 60
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String AddressLine1 - { - get { return (System.String)GetValue((int)AddressFieldIndex.AddressLine1, true); } - set { SetValue((int)AddressFieldIndex.AddressLine1, value); } - } - - /// The AddressLine2 property of the Entity Address

- /// Mapped on table field: "Address"."AddressLine2"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 60
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String AddressLine2 - { - get { return (System.String)GetValue((int)AddressFieldIndex.AddressLine2, true); } - set { SetValue((int)AddressFieldIndex.AddressLine2, value); } - } - - /// The City property of the Entity Address

- /// Mapped on table field: "Address"."City"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 30
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String City - { - get { return (System.String)GetValue((int)AddressFieldIndex.City, true); } - set { SetValue((int)AddressFieldIndex.City, value); } - } - - /// The ModifiedDate property of the Entity Address

- /// Mapped on table field: "Address"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)AddressFieldIndex.ModifiedDate, true); } - set { SetValue((int)AddressFieldIndex.ModifiedDate, value); } - } - - /// The PostalCode property of the Entity Address

- /// Mapped on table field: "Address"."PostalCode"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String PostalCode - { - get { return (System.String)GetValue((int)AddressFieldIndex.PostalCode, true); } - set { SetValue((int)AddressFieldIndex.PostalCode, value); } - } - - /// The Rowguid property of the Entity Address

- /// Mapped on table field: "Address"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)AddressFieldIndex.Rowguid, true); } - set { SetValue((int)AddressFieldIndex.Rowguid, value); } - } - - /// The SpatialLocation property of the Entity Address

- /// Mapped on table field: "Address"."SpatialLocation"
- /// Table field type characteristics (type, precision, scale, length): Udt, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Microsoft.SqlServer.Types.SqlGeography SpatialLocation - { - get { return (Microsoft.SqlServer.Types.SqlGeography)GetValue((int)AddressFieldIndex.SpatialLocation, true); } - set { SetValue((int)AddressFieldIndex.SpatialLocation, value); } - } - - /// The StateProvinceId property of the Entity Address

- /// Mapped on table field: "Address"."StateProvinceID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 StateProvinceId - { - get { return (System.Int32)GetValue((int)AddressFieldIndex.StateProvinceId, true); } - set { SetValue((int)AddressFieldIndex.StateProvinceId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'BusinessEntityAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BusinessEntityAddressEntity))] - public virtual EntityCollection BusinessEntityAddresses - { - get { return GetOrCreateEntityCollection("Address", true, false, ref _businessEntityAddresses); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders - { - get { return GetOrCreateEntityCollection("Address", true, false, ref _salesOrderHeaders); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders_ - { - get { return GetOrCreateEntityCollection("Address_", true, false, ref _salesOrderHeaders_); } - } - - /// Gets / sets related entity of type 'StateProvinceEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual StateProvinceEntity StateProvince - { - get { return _stateProvince; } - set - { - if(this.IsDeserializing) - { - SetupSyncStateProvince(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Addresses", "StateProvince", _stateProvince, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs deleted file mode 100644 index def12840..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs +++ /dev/null @@ -1,481 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'AddressType'.

- [Serializable] - public partial class AddressTypeEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _businessEntityAddresses; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name BusinessEntityAddresses - public static readonly string BusinessEntityAddresses = "BusinessEntityAddresses"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static AddressTypeEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public AddressTypeEntity():base("AddressTypeEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public AddressTypeEntity(IEntityFields2 fields):base("AddressTypeEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this AddressTypeEntity - public AddressTypeEntity(IValidator validator):base("AddressTypeEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for AddressType which data should be fetched into this AddressType object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public AddressTypeEntity(System.Int32 addressTypeId):base("AddressTypeEntity") - { - InitClassEmpty(null, null); - this.AddressTypeId = addressTypeId; - } - - /// CTor - /// PK value for AddressType which data should be fetched into this AddressType object - /// The custom validator object for this AddressTypeEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public AddressTypeEntity(System.Int32 addressTypeId, IValidator validator):base("AddressTypeEntity") - { - InitClassEmpty(validator, null); - this.AddressTypeId = addressTypeId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected AddressTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _businessEntityAddresses = (EntityCollection)info.GetValue("_businessEntityAddresses", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "BusinessEntityAddresses": - this.BusinessEntityAddresses.Add((BusinessEntityAddressEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "BusinessEntityAddresses": - toReturn.Add(Relations.BusinessEntityAddressEntityUsingAddressTypeId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "BusinessEntityAddresses": - this.BusinessEntityAddresses.Add((BusinessEntityAddressEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "BusinessEntityAddresses": - this.PerformRelatedEntityRemoval(this.BusinessEntityAddresses, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityAddresses); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_businessEntityAddresses", ((_businessEntityAddresses!=null) && (_businessEntityAddresses.Count>0) && !this.MarkedForDeletion)?_businessEntityAddresses:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new AddressTypeRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityAddress' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityAddresses() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityAddressFields.AddressTypeId, null, ComparisonOperator.Equal, this.AddressTypeId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(AddressTypeEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._businessEntityAddresses); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._businessEntityAddresses = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._businessEntityAddresses != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityAddressEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("BusinessEntityAddresses", _businessEntityAddresses); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AddressTypeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this AddressTypeEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static AddressTypeRelations Relations - { - get { return new AddressTypeRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityAddress' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntityAddresses - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityAddressEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntityAddresses")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressTypeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity, 0, null, null, null, null, "BusinessEntityAddresses", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AddressTypeId property of the Entity AddressType

- /// Mapped on table field: "AddressType"."AddressTypeID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 AddressTypeId - { - get { return (System.Int32)GetValue((int)AddressTypeFieldIndex.AddressTypeId, true); } - set { SetValue((int)AddressTypeFieldIndex.AddressTypeId, value); } - } - - /// The ModifiedDate property of the Entity AddressType

- /// Mapped on table field: "AddressType"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)AddressTypeFieldIndex.ModifiedDate, true); } - set { SetValue((int)AddressTypeFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity AddressType

- /// Mapped on table field: "AddressType"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)AddressTypeFieldIndex.Name, true); } - set { SetValue((int)AddressTypeFieldIndex.Name, value); } - } - - /// The Rowguid property of the Entity AddressType

- /// Mapped on table field: "AddressType"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)AddressTypeFieldIndex.Rowguid, true); } - set { SetValue((int)AddressTypeFieldIndex.Rowguid, value); } - } - - /// Gets the EntityCollection with the related entities of type 'BusinessEntityAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BusinessEntityAddressEntity))] - public virtual EntityCollection BusinessEntityAddresses - { - get { return GetOrCreateEntityCollection("AddressType", true, false, ref _businessEntityAddresses); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressTypeEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs deleted file mode 100644 index 588923ea..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs +++ /dev/null @@ -1,777 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'BillOfMaterial'.

- [Serializable] - public partial class BillOfMaterialEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - private ProductEntity _product_; - private UnitMeasureEntity _unitMeasure; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - /// Member name Product_ - public static readonly string Product_ = "Product_"; - /// Member name UnitMeasure - public static readonly string UnitMeasure = "UnitMeasure"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static BillOfMaterialEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public BillOfMaterialEntity():base("BillOfMaterialEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public BillOfMaterialEntity(IEntityFields2 fields):base("BillOfMaterialEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this BillOfMaterialEntity - public BillOfMaterialEntity(IValidator validator):base("BillOfMaterialEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for BillOfMaterial which data should be fetched into this BillOfMaterial object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BillOfMaterialEntity(System.Int32 billOfMaterialsId):base("BillOfMaterialEntity") - { - InitClassEmpty(null, null); - this.BillOfMaterialsId = billOfMaterialsId; - } - - /// CTor - /// PK value for BillOfMaterial which data should be fetched into this BillOfMaterial object - /// The custom validator object for this BillOfMaterialEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BillOfMaterialEntity(System.Int32 billOfMaterialsId, IValidator validator):base("BillOfMaterialEntity") - { - InitClassEmpty(validator, null); - this.BillOfMaterialsId = billOfMaterialsId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected BillOfMaterialEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _product_ = (ProductEntity)info.GetValue("_product_", typeof(ProductEntity)); - if(_product_!=null) - { - _product_.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _unitMeasure = (UnitMeasureEntity)info.GetValue("_unitMeasure", typeof(UnitMeasureEntity)); - if(_unitMeasure!=null) - { - _unitMeasure.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((BillOfMaterialFieldIndex)fieldIndex) - { - case BillOfMaterialFieldIndex.ComponentId: - DesetupSyncProduct(true, false); - break; - case BillOfMaterialFieldIndex.ProductAssemblyId: - DesetupSyncProduct_(true, false); - break; - case BillOfMaterialFieldIndex.UnitMeasureCode: - DesetupSyncUnitMeasure(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - case "Product_": - this.Product_ = (ProductEntity)entity; - break; - case "UnitMeasure": - this.UnitMeasure = (UnitMeasureEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingComponentId); - break; - case "Product_": - toReturn.Add(Relations.ProductEntityUsingProductAssemblyId); - break; - case "UnitMeasure": - toReturn.Add(Relations.UnitMeasureEntityUsingUnitMeasureCode); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - case "Product_": - SetupSyncProduct_(relatedEntity); - break; - case "UnitMeasure": - SetupSyncUnitMeasure(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - case "Product_": - DesetupSyncProduct_(false, true); - break; - case "UnitMeasure": - DesetupSyncUnitMeasure(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - if(_product_!=null) - { - toReturn.Add(_product_); - } - if(_unitMeasure!=null) - { - toReturn.Add(_unitMeasure); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - info.AddValue("_product_", (!this.MarkedForDeletion?_product_:null)); - info.AddValue("_unitMeasure", (!this.MarkedForDeletion?_unitMeasure:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new BillOfMaterialRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ComponentId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductAssemblyId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(UnitMeasureFields.UnitMeasureCode, null, ComparisonOperator.Equal, this.UnitMeasureCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(BillOfMaterialEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - toReturn.Add("Product_", _product_); - toReturn.Add("UnitMeasure", _unitMeasure); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BillOfMaterialsId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Bomlevel", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ComponentId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PerAssemblyQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductAssemblyId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("UnitMeasureCode", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "BillOfMaterials", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBillOfMaterialRelations.ProductEntityUsingComponentIdStatic, true, new int[] { (int)BillOfMaterialFieldIndex.ComponentId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "BillOfMaterials", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBillOfMaterialRelations.ProductEntityUsingComponentIdStatic, true, new string[] { }, new int[] { (int)BillOfMaterialFieldIndex.ComponentId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _product_ - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct_(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product_, new PropertyChangedEventHandler(OnProduct_PropertyChanged), "Product_", "BillOfMaterials_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBillOfMaterialRelations.ProductEntityUsingProductAssemblyIdStatic, true, new int[] { (int)BillOfMaterialFieldIndex.ProductAssemblyId }); - } - - /// setups the sync logic for member _product_ - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct_(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product_, new PropertyChangedEventHandler( OnProduct_PropertyChanged ), "Product_", "BillOfMaterials_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBillOfMaterialRelations.ProductEntityUsingProductAssemblyIdStatic, true, new string[] { }, new int[] { (int)BillOfMaterialFieldIndex.ProductAssemblyId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProduct_PropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _unitMeasure - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncUnitMeasure(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _unitMeasure, new PropertyChangedEventHandler(OnUnitMeasurePropertyChanged), "UnitMeasure", "BillOfMaterials", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBillOfMaterialRelations.UnitMeasureEntityUsingUnitMeasureCodeStatic, true, new int[] { (int)BillOfMaterialFieldIndex.UnitMeasureCode }); - } - - /// setups the sync logic for member _unitMeasure - /// Instance to set as the related entity of type entityType - private void SetupSyncUnitMeasure(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _unitMeasure, new PropertyChangedEventHandler( OnUnitMeasurePropertyChanged ), "UnitMeasure", "BillOfMaterials", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBillOfMaterialRelations.UnitMeasureEntityUsingUnitMeasureCodeStatic, true, new string[] { }, new int[] { (int)BillOfMaterialFieldIndex.UnitMeasureCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnUnitMeasurePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this BillOfMaterialEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static BillOfMaterialRelations Relations - { - get { return new BillOfMaterialRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct_ - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathUnitMeasure - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(UnitMeasureEntityFactory))), (IEntityRelation)GetRelationsForField("UnitMeasure")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, 0, null, null, null, null, "UnitMeasure", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The BillOfMaterialsId property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."BillOfMaterialsID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 BillOfMaterialsId - { - get { return (System.Int32)GetValue((int)BillOfMaterialFieldIndex.BillOfMaterialsId, true); } - set { SetValue((int)BillOfMaterialFieldIndex.BillOfMaterialsId, value); } - } - - /// The Bomlevel property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."BOMLevel"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 Bomlevel - { - get { return (System.Int16)GetValue((int)BillOfMaterialFieldIndex.Bomlevel, true); } - set { SetValue((int)BillOfMaterialFieldIndex.Bomlevel, value); } - } - - /// The ComponentId property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."ComponentID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ComponentId - { - get { return (System.Int32)GetValue((int)BillOfMaterialFieldIndex.ComponentId, true); } - set { SetValue((int)BillOfMaterialFieldIndex.ComponentId, value); } - } - - /// The EndDate property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."EndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable EndDate - { - get { return (Nullable)GetValue((int)BillOfMaterialFieldIndex.EndDate, false); } - set { SetValue((int)BillOfMaterialFieldIndex.EndDate, value); } - } - - /// The ModifiedDate property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)BillOfMaterialFieldIndex.ModifiedDate, true); } - set { SetValue((int)BillOfMaterialFieldIndex.ModifiedDate, value); } - } - - /// The PerAssemblyQty property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."PerAssemblyQty"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal PerAssemblyQty - { - get { return (System.Decimal)GetValue((int)BillOfMaterialFieldIndex.PerAssemblyQty, true); } - set { SetValue((int)BillOfMaterialFieldIndex.PerAssemblyQty, value); } - } - - /// The ProductAssemblyId property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."ProductAssemblyID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ProductAssemblyId - { - get { return (Nullable)GetValue((int)BillOfMaterialFieldIndex.ProductAssemblyId, false); } - set { SetValue((int)BillOfMaterialFieldIndex.ProductAssemblyId, value); } - } - - /// The StartDate property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."StartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime StartDate - { - get { return (System.DateTime)GetValue((int)BillOfMaterialFieldIndex.StartDate, true); } - set { SetValue((int)BillOfMaterialFieldIndex.StartDate, value); } - } - - /// The UnitMeasureCode property of the Entity BillOfMaterial

- /// Mapped on table field: "BillOfMaterials"."UnitMeasureCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String UnitMeasureCode - { - get { return (System.String)GetValue((int)BillOfMaterialFieldIndex.UnitMeasureCode, true); } - set { SetValue((int)BillOfMaterialFieldIndex.UnitMeasureCode, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BillOfMaterials", "Product", _product, true); - } - } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product_ - { - get { return _product_; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct_(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BillOfMaterials_", "Product_", _product_, true); - } - } - } - - /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual UnitMeasureEntity UnitMeasure - { - get { return _unitMeasure; } - set - { - if(this.IsDeserializing) - { - SetupSyncUnitMeasure(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BillOfMaterials", "UnitMeasure", _unitMeasure, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs deleted file mode 100644 index 28572888..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs +++ /dev/null @@ -1,737 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'BusinessEntityAddress'.

- [Serializable] - public partial class BusinessEntityAddressEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private AddressEntity _address; - private AddressTypeEntity _addressType; - private BusinessEntityEntity _businessEntity; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Address - public static readonly string Address = "Address"; - /// Member name AddressType - public static readonly string AddressType = "AddressType"; - /// Member name BusinessEntity - public static readonly string BusinessEntity = "BusinessEntity"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static BusinessEntityAddressEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public BusinessEntityAddressEntity():base("BusinessEntityAddressEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public BusinessEntityAddressEntity(IEntityFields2 fields):base("BusinessEntityAddressEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this BusinessEntityAddressEntity - public BusinessEntityAddressEntity(IValidator validator):base("BusinessEntityAddressEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object - /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object - /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BusinessEntityAddressEntity(System.Int32 addressId, System.Int32 addressTypeId, System.Int32 businessEntityId):base("BusinessEntityAddressEntity") - { - InitClassEmpty(null, null); - this.AddressId = addressId; - this.AddressTypeId = addressTypeId; - this.BusinessEntityId = businessEntityId; - } - - /// CTor - /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object - /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object - /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object - /// The custom validator object for this BusinessEntityAddressEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BusinessEntityAddressEntity(System.Int32 addressId, System.Int32 addressTypeId, System.Int32 businessEntityId, IValidator validator):base("BusinessEntityAddressEntity") - { - InitClassEmpty(validator, null); - this.AddressId = addressId; - this.AddressTypeId = addressTypeId; - this.BusinessEntityId = businessEntityId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected BusinessEntityAddressEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _address = (AddressEntity)info.GetValue("_address", typeof(AddressEntity)); - if(_address!=null) - { - _address.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _addressType = (AddressTypeEntity)info.GetValue("_addressType", typeof(AddressTypeEntity)); - if(_addressType!=null) - { - _addressType.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _businessEntity = (BusinessEntityEntity)info.GetValue("_businessEntity", typeof(BusinessEntityEntity)); - if(_businessEntity!=null) - { - _businessEntity.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((BusinessEntityAddressFieldIndex)fieldIndex) - { - case BusinessEntityAddressFieldIndex.AddressId: - DesetupSyncAddress(true, false); - break; - case BusinessEntityAddressFieldIndex.AddressTypeId: - DesetupSyncAddressType(true, false); - break; - case BusinessEntityAddressFieldIndex.BusinessEntityId: - DesetupSyncBusinessEntity(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Address": - this.Address = (AddressEntity)entity; - break; - case "AddressType": - this.AddressType = (AddressTypeEntity)entity; - break; - case "BusinessEntity": - this.BusinessEntity = (BusinessEntityEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - 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; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Address": - SetupSyncAddress(relatedEntity); - break; - case "AddressType": - SetupSyncAddressType(relatedEntity); - break; - case "BusinessEntity": - SetupSyncBusinessEntity(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Address": - DesetupSyncAddress(false, true); - break; - case "AddressType": - DesetupSyncAddressType(false, true); - break; - case "BusinessEntity": - DesetupSyncBusinessEntity(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_address!=null) - { - toReturn.Add(_address); - } - if(_addressType!=null) - { - toReturn.Add(_addressType); - } - if(_businessEntity!=null) - { - toReturn.Add(_businessEntity); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_address", (!this.MarkedForDeletion?_address:null)); - info.AddValue("_addressType", (!this.MarkedForDeletion?_addressType:null)); - info.AddValue("_businessEntity", (!this.MarkedForDeletion?_businessEntity:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new BusinessEntityAddressRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Address' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoAddress() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(AddressFields.AddressId, null, ComparisonOperator.Equal, this.AddressId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'AddressType' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoAddressType() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(AddressTypeFields.AddressTypeId, null, ComparisonOperator.Equal, this.AddressTypeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityAddressEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Address", _address); - toReturn.Add("AddressType", _addressType); - toReturn.Add("BusinessEntity", _businessEntity); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AddressId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AddressTypeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BusinessEntityId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _address - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncAddress(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _address, new PropertyChangedEventHandler(OnAddressPropertyChanged), "Address", "BusinessEntityAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityAddressRelations.AddressEntityUsingAddressIdStatic, true, new int[] { (int)BusinessEntityAddressFieldIndex.AddressId }); - } - - /// setups the sync logic for member _address - /// Instance to set as the related entity of type entityType - private void SetupSyncAddress(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _address, new PropertyChangedEventHandler( OnAddressPropertyChanged ), "Address", "BusinessEntityAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityAddressRelations.AddressEntityUsingAddressIdStatic, true, new string[] { }, new int[] { (int)BusinessEntityAddressFieldIndex.AddressId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnAddressPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _addressType - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncAddressType(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _addressType, new PropertyChangedEventHandler(OnAddressTypePropertyChanged), "AddressType", "BusinessEntityAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityAddressRelations.AddressTypeEntityUsingAddressTypeIdStatic, true, new int[] { (int)BusinessEntityAddressFieldIndex.AddressTypeId }); - } - - /// setups the sync logic for member _addressType - /// Instance to set as the related entity of type entityType - private void SetupSyncAddressType(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _addressType, new PropertyChangedEventHandler( OnAddressTypePropertyChanged ), "AddressType", "BusinessEntityAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityAddressRelations.AddressTypeEntityUsingAddressTypeIdStatic, true, new string[] { }, new int[] { (int)BusinessEntityAddressFieldIndex.AddressTypeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnAddressTypePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _businessEntity - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncBusinessEntity(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _businessEntity, new PropertyChangedEventHandler(OnBusinessEntityPropertyChanged), "BusinessEntity", "BusinessEntityAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityAddressRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, true, new int[] { (int)BusinessEntityAddressFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _businessEntity - /// Instance to set as the related entity of type entityType - private void SetupSyncBusinessEntity(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _businessEntity, new PropertyChangedEventHandler( OnBusinessEntityPropertyChanged ), "BusinessEntity", "BusinessEntityAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityAddressRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, true, new string[] { }, new int[] { (int)BusinessEntityAddressFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnBusinessEntityPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this BusinessEntityAddressEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static BusinessEntityAddressRelations Relations - { - get { return new BusinessEntityAddressRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathAddress - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(AddressEntityFactory))), (IEntityRelation)GetRelationsForField("Address")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, 0, null, null, null, null, "Address", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'AddressType' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathAddressType - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(AddressTypeEntityFactory))), (IEntityRelation)GetRelationsForField("AddressType")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressTypeEntity, 0, null, null, null, null, "AddressType", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntity - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntity")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, 0, null, null, null, null, "BusinessEntity", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AddressId property of the Entity BusinessEntityAddress

- /// Mapped on table field: "BusinessEntityAddress"."AddressID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 AddressId - { - get { return (System.Int32)GetValue((int)BusinessEntityAddressFieldIndex.AddressId, true); } - set { SetValue((int)BusinessEntityAddressFieldIndex.AddressId, value); } - } - - /// The AddressTypeId property of the Entity BusinessEntityAddress

- /// Mapped on table field: "BusinessEntityAddress"."AddressTypeID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 AddressTypeId - { - get { return (System.Int32)GetValue((int)BusinessEntityAddressFieldIndex.AddressTypeId, true); } - set { SetValue((int)BusinessEntityAddressFieldIndex.AddressTypeId, value); } - } - - /// The BusinessEntityId property of the Entity BusinessEntityAddress

- /// Mapped on table field: "BusinessEntityAddress"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 BusinessEntityId - { - get { return (System.Int32)GetValue((int)BusinessEntityAddressFieldIndex.BusinessEntityId, true); } - set { SetValue((int)BusinessEntityAddressFieldIndex.BusinessEntityId, value); } - } - - /// The ModifiedDate property of the Entity BusinessEntityAddress

- /// Mapped on table field: "BusinessEntityAddress"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)BusinessEntityAddressFieldIndex.ModifiedDate, true); } - set { SetValue((int)BusinessEntityAddressFieldIndex.ModifiedDate, value); } - } - - /// The Rowguid property of the Entity BusinessEntityAddress

- /// Mapped on table field: "BusinessEntityAddress"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)BusinessEntityAddressFieldIndex.Rowguid, true); } - set { SetValue((int)BusinessEntityAddressFieldIndex.Rowguid, value); } - } - - /// Gets / sets related entity of type 'AddressEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual AddressEntity Address - { - get { return _address; } - set - { - if(this.IsDeserializing) - { - SetupSyncAddress(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BusinessEntityAddresses", "Address", _address, true); - } - } - } - - /// Gets / sets related entity of type 'AddressTypeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual AddressTypeEntity AddressType - { - get { return _addressType; } - set - { - if(this.IsDeserializing) - { - SetupSyncAddressType(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BusinessEntityAddresses", "AddressType", _addressType, true); - } - } - } - - /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual BusinessEntityEntity BusinessEntity - { - get { return _businessEntity; } - set - { - if(this.IsDeserializing) - { - SetupSyncBusinessEntity(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BusinessEntityAddresses", "BusinessEntity", _businessEntity, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs deleted file mode 100644 index 9c398dd2..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs +++ /dev/null @@ -1,737 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'BusinessEntityContact'.

- [Serializable] - public partial class BusinessEntityContactEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private BusinessEntityEntity _businessEntity; - private ContactTypeEntity _contactType; - private PersonEntity _person; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name BusinessEntity - public static readonly string BusinessEntity = "BusinessEntity"; - /// Member name ContactType - public static readonly string ContactType = "ContactType"; - /// Member name Person - public static readonly string Person = "Person"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static BusinessEntityContactEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public BusinessEntityContactEntity():base("BusinessEntityContactEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public BusinessEntityContactEntity(IEntityFields2 fields):base("BusinessEntityContactEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this BusinessEntityContactEntity - public BusinessEntityContactEntity(IValidator validator):base("BusinessEntityContactEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object - /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object - /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BusinessEntityContactEntity(System.Int32 businessEntityId, System.Int32 contactTypeId, System.Int32 personId):base("BusinessEntityContactEntity") - { - InitClassEmpty(null, null); - this.BusinessEntityId = businessEntityId; - this.ContactTypeId = contactTypeId; - this.PersonId = personId; - } - - /// CTor - /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object - /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object - /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object - /// The custom validator object for this BusinessEntityContactEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BusinessEntityContactEntity(System.Int32 businessEntityId, System.Int32 contactTypeId, System.Int32 personId, IValidator validator):base("BusinessEntityContactEntity") - { - InitClassEmpty(validator, null); - this.BusinessEntityId = businessEntityId; - this.ContactTypeId = contactTypeId; - this.PersonId = personId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected BusinessEntityContactEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _businessEntity = (BusinessEntityEntity)info.GetValue("_businessEntity", typeof(BusinessEntityEntity)); - if(_businessEntity!=null) - { - _businessEntity.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _contactType = (ContactTypeEntity)info.GetValue("_contactType", typeof(ContactTypeEntity)); - if(_contactType!=null) - { - _contactType.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((BusinessEntityContactFieldIndex)fieldIndex) - { - case BusinessEntityContactFieldIndex.BusinessEntityId: - DesetupSyncBusinessEntity(true, false); - break; - case BusinessEntityContactFieldIndex.ContactTypeId: - DesetupSyncContactType(true, false); - break; - case BusinessEntityContactFieldIndex.PersonId: - DesetupSyncPerson(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "BusinessEntity": - this.BusinessEntity = (BusinessEntityEntity)entity; - break; - case "ContactType": - this.ContactType = (ContactTypeEntity)entity; - break; - case "Person": - this.Person = (PersonEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "BusinessEntity": - toReturn.Add(Relations.BusinessEntityEntityUsingBusinessEntityId); - break; - case "ContactType": - toReturn.Add(Relations.ContactTypeEntityUsingContactTypeId); - break; - case "Person": - toReturn.Add(Relations.PersonEntityUsingPersonId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "BusinessEntity": - SetupSyncBusinessEntity(relatedEntity); - break; - case "ContactType": - SetupSyncContactType(relatedEntity); - break; - case "Person": - SetupSyncPerson(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "BusinessEntity": - DesetupSyncBusinessEntity(false, true); - break; - case "ContactType": - DesetupSyncContactType(false, true); - break; - case "Person": - DesetupSyncPerson(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_businessEntity!=null) - { - toReturn.Add(_businessEntity); - } - if(_contactType!=null) - { - toReturn.Add(_contactType); - } - if(_person!=null) - { - toReturn.Add(_person); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_businessEntity", (!this.MarkedForDeletion?_businessEntity:null)); - info.AddValue("_contactType", (!this.MarkedForDeletion?_contactType:null)); - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new BusinessEntityContactRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ContactType' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoContactType() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ContactTypeFields.ContactTypeId, null, ComparisonOperator.Equal, this.ContactTypeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.PersonId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityContactEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("BusinessEntity", _businessEntity); - toReturn.Add("ContactType", _contactType); - toReturn.Add("Person", _person); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BusinessEntityId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ContactTypeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PersonId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _businessEntity - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncBusinessEntity(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _businessEntity, new PropertyChangedEventHandler(OnBusinessEntityPropertyChanged), "BusinessEntity", "BusinessEntityContacts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityContactRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, true, new int[] { (int)BusinessEntityContactFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _businessEntity - /// Instance to set as the related entity of type entityType - private void SetupSyncBusinessEntity(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _businessEntity, new PropertyChangedEventHandler( OnBusinessEntityPropertyChanged ), "BusinessEntity", "BusinessEntityContacts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityContactRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, true, new string[] { }, new int[] { (int)BusinessEntityContactFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnBusinessEntityPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _contactType - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncContactType(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _contactType, new PropertyChangedEventHandler(OnContactTypePropertyChanged), "ContactType", "BusinessEntityContacts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityContactRelations.ContactTypeEntityUsingContactTypeIdStatic, true, new int[] { (int)BusinessEntityContactFieldIndex.ContactTypeId }); - } - - /// setups the sync logic for member _contactType - /// Instance to set as the related entity of type entityType - private void SetupSyncContactType(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _contactType, new PropertyChangedEventHandler( OnContactTypePropertyChanged ), "ContactType", "BusinessEntityContacts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityContactRelations.ContactTypeEntityUsingContactTypeIdStatic, true, new string[] { }, new int[] { (int)BusinessEntityContactFieldIndex.ContactTypeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnContactTypePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "BusinessEntityContacts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityContactRelations.PersonEntityUsingPersonIdStatic, true, new int[] { (int)BusinessEntityContactFieldIndex.PersonId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "BusinessEntityContacts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityContactRelations.PersonEntityUsingPersonIdStatic, true, new string[] { }, new int[] { (int)BusinessEntityContactFieldIndex.PersonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this BusinessEntityContactEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static BusinessEntityContactRelations Relations - { - get { return new BusinessEntityContactRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntity - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntity")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, 0, null, null, null, null, "BusinessEntity", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ContactType' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathContactType - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ContactTypeEntityFactory))), (IEntityRelation)GetRelationsForField("ContactType")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactTypeEntity, 0, null, null, null, null, "ContactType", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The BusinessEntityId property of the Entity BusinessEntityContact

- /// Mapped on table field: "BusinessEntityContact"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 BusinessEntityId - { - get { return (System.Int32)GetValue((int)BusinessEntityContactFieldIndex.BusinessEntityId, true); } - set { SetValue((int)BusinessEntityContactFieldIndex.BusinessEntityId, value); } - } - - /// The ContactTypeId property of the Entity BusinessEntityContact

- /// Mapped on table field: "BusinessEntityContact"."ContactTypeID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ContactTypeId - { - get { return (System.Int32)GetValue((int)BusinessEntityContactFieldIndex.ContactTypeId, true); } - set { SetValue((int)BusinessEntityContactFieldIndex.ContactTypeId, value); } - } - - /// The ModifiedDate property of the Entity BusinessEntityContact

- /// Mapped on table field: "BusinessEntityContact"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)BusinessEntityContactFieldIndex.ModifiedDate, true); } - set { SetValue((int)BusinessEntityContactFieldIndex.ModifiedDate, value); } - } - - /// The PersonId property of the Entity BusinessEntityContact

- /// Mapped on table field: "BusinessEntityContact"."PersonID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 PersonId - { - get { return (System.Int32)GetValue((int)BusinessEntityContactFieldIndex.PersonId, true); } - set { SetValue((int)BusinessEntityContactFieldIndex.PersonId, value); } - } - - /// The Rowguid property of the Entity BusinessEntityContact

- /// Mapped on table field: "BusinessEntityContact"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)BusinessEntityContactFieldIndex.Rowguid, true); } - set { SetValue((int)BusinessEntityContactFieldIndex.Rowguid, value); } - } - - /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual BusinessEntityEntity BusinessEntity - { - get { return _businessEntity; } - set - { - if(this.IsDeserializing) - { - SetupSyncBusinessEntity(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BusinessEntityContacts", "BusinessEntity", _businessEntity, true); - } - } - } - - /// Gets / sets related entity of type 'ContactTypeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ContactTypeEntity ContactType - { - get { return _contactType; } - set - { - if(this.IsDeserializing) - { - SetupSyncContactType(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BusinessEntityContacts", "ContactType", _contactType, true); - } - } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "BusinessEntityContacts", "Person", _person, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs deleted file mode 100644 index 6d07db31..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs +++ /dev/null @@ -1,839 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'BusinessEntity'.

- [Serializable] - public partial class BusinessEntityEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _businessEntityAddresses; - private EntityCollection _businessEntityContacts; - private PersonEntity _person; - private StoreEntity _store; - private VendorEntity _vendor; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name BusinessEntityAddresses - public static readonly string BusinessEntityAddresses = "BusinessEntityAddresses"; - /// Member name BusinessEntityContacts - public static readonly string BusinessEntityContacts = "BusinessEntityContacts"; - /// Member name Person - public static readonly string Person = "Person"; - /// Member name Store - public static readonly string Store = "Store"; - /// Member name Vendor - public static readonly string Vendor = "Vendor"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static BusinessEntityEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public BusinessEntityEntity():base("BusinessEntityEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public BusinessEntityEntity(IEntityFields2 fields):base("BusinessEntityEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this BusinessEntityEntity - public BusinessEntityEntity(IValidator validator):base("BusinessEntityEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for BusinessEntity which data should be fetched into this BusinessEntity object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BusinessEntityEntity(System.Int32 businessEntityId):base("BusinessEntityEntity") - { - InitClassEmpty(null, null); - this.BusinessEntityId = businessEntityId; - } - - /// CTor - /// PK value for BusinessEntity which data should be fetched into this BusinessEntity object - /// The custom validator object for this BusinessEntityEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public BusinessEntityEntity(System.Int32 businessEntityId, IValidator validator):base("BusinessEntityEntity") - { - InitClassEmpty(validator, null); - this.BusinessEntityId = businessEntityId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected BusinessEntityEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _businessEntityAddresses = (EntityCollection)info.GetValue("_businessEntityAddresses", typeof(EntityCollection)); - _businessEntityContacts = (EntityCollection)info.GetValue("_businessEntityContacts", typeof(EntityCollection)); - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _store = (StoreEntity)info.GetValue("_store", typeof(StoreEntity)); - if(_store!=null) - { - _store.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _vendor = (VendorEntity)info.GetValue("_vendor", typeof(VendorEntity)); - if(_vendor!=null) - { - _vendor.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "BusinessEntityAddresses": - this.BusinessEntityAddresses.Add((BusinessEntityAddressEntity)entity); - break; - case "BusinessEntityContacts": - this.BusinessEntityContacts.Add((BusinessEntityContactEntity)entity); - break; - case "Person": - this.Person = (PersonEntity)entity; - break; - case "Store": - this.Store = (StoreEntity)entity; - break; - case "Vendor": - this.Vendor = (VendorEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "BusinessEntityAddresses": - toReturn.Add(Relations.BusinessEntityAddressEntityUsingBusinessEntityId); - break; - case "BusinessEntityContacts": - toReturn.Add(Relations.BusinessEntityContactEntityUsingBusinessEntityId); - break; - case "Person": - toReturn.Add(Relations.PersonEntityUsingBusinessEntityId); - break; - case "Store": - toReturn.Add(Relations.StoreEntityUsingCustomerId); - break; - case "Vendor": - toReturn.Add(Relations.VendorEntityUsingVendorId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "BusinessEntityAddresses": - this.BusinessEntityAddresses.Add((BusinessEntityAddressEntity)relatedEntity); - break; - case "BusinessEntityContacts": - this.BusinessEntityContacts.Add((BusinessEntityContactEntity)relatedEntity); - break; - case "Person": - SetupSyncPerson(relatedEntity); - break; - case "Store": - SetupSyncStore(relatedEntity); - break; - case "Vendor": - SetupSyncVendor(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "BusinessEntityAddresses": - this.PerformRelatedEntityRemoval(this.BusinessEntityAddresses, relatedEntity, signalRelatedEntityManyToOne); - break; - case "BusinessEntityContacts": - this.PerformRelatedEntityRemoval(this.BusinessEntityContacts, relatedEntity, signalRelatedEntityManyToOne); - break; - case "Person": - DesetupSyncPerson(false, true); - break; - case "Store": - DesetupSyncStore(false, true); - break; - case "Vendor": - DesetupSyncVendor(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - if(_person!=null) - { - toReturn.Add(_person); - } - - if(_store!=null) - { - toReturn.Add(_store); - } - - if(_vendor!=null) - { - toReturn.Add(_vendor); - } - - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - - - - - - - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityAddresses); - toReturn.Add(this.BusinessEntityContacts); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_businessEntityAddresses", ((_businessEntityAddresses!=null) && (_businessEntityAddresses.Count>0) && !this.MarkedForDeletion)?_businessEntityAddresses:null); - info.AddValue("_businessEntityContacts", ((_businessEntityContacts!=null) && (_businessEntityContacts.Count>0) && !this.MarkedForDeletion)?_businessEntityContacts:null); - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - info.AddValue("_store", (!this.MarkedForDeletion?_store:null)); - info.AddValue("_vendor", (!this.MarkedForDeletion?_vendor:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new BusinessEntityRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityAddress' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityAddresses() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityAddressFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityContact' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityContacts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityContactFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Store' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoStore() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(StoreFields.CustomerId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Vendor' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoVendor() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(VendorFields.VendorId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._businessEntityAddresses); - collectionsQueue.Enqueue(this._businessEntityContacts); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._businessEntityAddresses = (EntityCollection) collectionsQueue.Dequeue(); - this._businessEntityContacts = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._businessEntityAddresses != null); - toReturn |=(this._businessEntityContacts != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityAddressEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityContactEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("BusinessEntityAddresses", _businessEntityAddresses); - toReturn.Add("BusinessEntityContacts", _businessEntityContacts); - toReturn.Add("Person", _person); - toReturn.Add("Store", _store); - toReturn.Add("Vendor", _vendor); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BusinessEntityId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "BusinessEntity", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityRelations.PersonEntityUsingBusinessEntityIdStatic, false, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "BusinessEntity", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityRelations.PersonEntityUsingBusinessEntityIdStatic, false, new string[] { }, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _store - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncStore(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _store, new PropertyChangedEventHandler(OnStorePropertyChanged), "Store", "BusinessEntity", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityRelations.StoreEntityUsingCustomerIdStatic, false, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _store - /// Instance to set as the related entity of type entityType - private void SetupSyncStore(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _store, new PropertyChangedEventHandler( OnStorePropertyChanged ), "Store", "BusinessEntity", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityRelations.StoreEntityUsingCustomerIdStatic, false, new string[] { }, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnStorePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _vendor - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncVendor(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _vendor, new PropertyChangedEventHandler(OnVendorPropertyChanged), "Vendor", "BusinessEntity", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityRelations.VendorEntityUsingVendorIdStatic, false, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _vendor - /// Instance to set as the related entity of type entityType - private void SetupSyncVendor(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _vendor, new PropertyChangedEventHandler( OnVendorPropertyChanged ), "Vendor", "BusinessEntity", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticBusinessEntityRelations.VendorEntityUsingVendorIdStatic, false, new string[] { }, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnVendorPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this BusinessEntityEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static BusinessEntityRelations Relations - { - get { return new BusinessEntityRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityAddress' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntityAddresses - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityAddressEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntityAddresses")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity, 0, null, null, null, null, "BusinessEntityAddresses", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityContact' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntityContacts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityContactEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntityContacts")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity, 0, null, null, null, null, "BusinessEntityContacts", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Store' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathStore - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StoreEntityFactory))), (IEntityRelation)GetRelationsForField("Store")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity, 0, null, null, null, null, "Store", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Vendor' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathVendor - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(VendorEntityFactory))), (IEntityRelation)GetRelationsForField("Vendor")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity, 0, null, null, null, null, "Vendor", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The BusinessEntityId property of the Entity BusinessEntity

- /// Mapped on table field: "BusinessEntity"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 BusinessEntityId - { - get { return (System.Int32)GetValue((int)BusinessEntityFieldIndex.BusinessEntityId, true); } - set { SetValue((int)BusinessEntityFieldIndex.BusinessEntityId, value); } - } - - /// The ModifiedDate property of the Entity BusinessEntity

- /// Mapped on table field: "BusinessEntity"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)BusinessEntityFieldIndex.ModifiedDate, true); } - set { SetValue((int)BusinessEntityFieldIndex.ModifiedDate, value); } - } - - /// The Rowguid property of the Entity BusinessEntity

- /// Mapped on table field: "BusinessEntity"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)BusinessEntityFieldIndex.Rowguid, true); } - set { SetValue((int)BusinessEntityFieldIndex.Rowguid, value); } - } - - /// Gets the EntityCollection with the related entities of type 'BusinessEntityAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BusinessEntityAddressEntity))] - public virtual EntityCollection BusinessEntityAddresses - { - get { return GetOrCreateEntityCollection("BusinessEntity", true, false, ref _businessEntityAddresses); } - } - - /// Gets the EntityCollection with the related entities of type 'BusinessEntityContactEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BusinessEntityContactEntity))] - public virtual EntityCollection BusinessEntityContacts - { - get { return GetOrCreateEntityCollection("BusinessEntity", true, false, ref _businessEntityContacts); } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - CallSetRelatedEntityDuringDeserialization(value, "BusinessEntity"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_person !=null); - DesetupSyncPerson(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Person"); - } - } - else - { - if(_person!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "BusinessEntity"); - SetupSyncPerson(value); - } - } - } - } - } - - /// Gets / sets related entity of type 'StoreEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual StoreEntity Store - { - get { return _store; } - set - { - if(this.IsDeserializing) - { - SetupSyncStore(value); - CallSetRelatedEntityDuringDeserialization(value, "BusinessEntity"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_store !=null); - DesetupSyncStore(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Store"); - } - } - else - { - if(_store!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "BusinessEntity"); - SetupSyncStore(value); - } - } - } - } - } - - /// Gets / sets related entity of type 'VendorEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual VendorEntity Vendor - { - get { return _vendor; } - set - { - if(this.IsDeserializing) - { - SetupSyncVendor(value); - CallSetRelatedEntityDuringDeserialization(value, "BusinessEntity"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_vendor !=null); - DesetupSyncVendor(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Vendor"); - } - } - else - { - if(_vendor!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "BusinessEntity"); - SetupSyncVendor(value); - } - } - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs deleted file mode 100644 index b9cb6551..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs +++ /dev/null @@ -1,619 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ContactCreditCard'.

- [Serializable] - public partial class ContactCreditCardEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private CreditCardEntity _creditCard; - private PersonEntity _person; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name CreditCard - public static readonly string CreditCard = "CreditCard"; - /// Member name Person - public static readonly string Person = "Person"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ContactCreditCardEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ContactCreditCardEntity():base("ContactCreditCardEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ContactCreditCardEntity(IEntityFields2 fields):base("ContactCreditCardEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ContactCreditCardEntity - public ContactCreditCardEntity(IValidator validator):base("ContactCreditCardEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object - /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ContactCreditCardEntity(System.Int32 contactId, System.Int32 creditCardId):base("ContactCreditCardEntity") - { - InitClassEmpty(null, null); - this.ContactId = contactId; - this.CreditCardId = creditCardId; - } - - /// CTor - /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object - /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object - /// The custom validator object for this ContactCreditCardEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ContactCreditCardEntity(System.Int32 contactId, System.Int32 creditCardId, IValidator validator):base("ContactCreditCardEntity") - { - InitClassEmpty(validator, null); - this.ContactId = contactId; - this.CreditCardId = creditCardId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ContactCreditCardEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _creditCard = (CreditCardEntity)info.GetValue("_creditCard", typeof(CreditCardEntity)); - if(_creditCard!=null) - { - _creditCard.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ContactCreditCardFieldIndex)fieldIndex) - { - case ContactCreditCardFieldIndex.ContactId: - DesetupSyncPerson(true, false); - break; - case ContactCreditCardFieldIndex.CreditCardId: - DesetupSyncCreditCard(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "CreditCard": - this.CreditCard = (CreditCardEntity)entity; - break; - case "Person": - this.Person = (PersonEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "CreditCard": - toReturn.Add(Relations.CreditCardEntityUsingCreditCardId); - break; - case "Person": - toReturn.Add(Relations.PersonEntityUsingContactId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "CreditCard": - SetupSyncCreditCard(relatedEntity); - break; - case "Person": - SetupSyncPerson(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "CreditCard": - DesetupSyncCreditCard(false, true); - break; - case "Person": - DesetupSyncPerson(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_creditCard!=null) - { - toReturn.Add(_creditCard); - } - if(_person!=null) - { - toReturn.Add(_person); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_creditCard", (!this.MarkedForDeletion?_creditCard:null)); - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ContactCreditCardRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CreditCard' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCreditCard() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CreditCardFields.CreditCardId, null, ComparisonOperator.Equal, this.CreditCardId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.ContactId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ContactCreditCardEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("CreditCard", _creditCard); - toReturn.Add("Person", _person); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ContactId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CreditCardId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _creditCard - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCreditCard(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _creditCard, new PropertyChangedEventHandler(OnCreditCardPropertyChanged), "CreditCard", "ContactCreditCards", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticContactCreditCardRelations.CreditCardEntityUsingCreditCardIdStatic, true, new int[] { (int)ContactCreditCardFieldIndex.CreditCardId }); - } - - /// setups the sync logic for member _creditCard - /// Instance to set as the related entity of type entityType - private void SetupSyncCreditCard(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _creditCard, new PropertyChangedEventHandler( OnCreditCardPropertyChanged ), "CreditCard", "ContactCreditCards", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticContactCreditCardRelations.CreditCardEntityUsingCreditCardIdStatic, true, new string[] { }, new int[] { (int)ContactCreditCardFieldIndex.CreditCardId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCreditCardPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "ContactCreditCards", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticContactCreditCardRelations.PersonEntityUsingContactIdStatic, true, new int[] { (int)ContactCreditCardFieldIndex.ContactId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "ContactCreditCards", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticContactCreditCardRelations.PersonEntityUsingContactIdStatic, true, new string[] { }, new int[] { (int)ContactCreditCardFieldIndex.ContactId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ContactCreditCardEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ContactCreditCardRelations Relations - { - get { return new ContactCreditCardRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CreditCard' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCreditCard - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CreditCardEntityFactory))), (IEntityRelation)GetRelationsForField("CreditCard")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity, 0, null, null, null, null, "CreditCard", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ContactId property of the Entity ContactCreditCard

- /// Mapped on table field: "PersonCreditCard"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ContactId - { - get { return (System.Int32)GetValue((int)ContactCreditCardFieldIndex.ContactId, true); } - set { SetValue((int)ContactCreditCardFieldIndex.ContactId, value); } - } - - /// The CreditCardId property of the Entity ContactCreditCard

- /// Mapped on table field: "PersonCreditCard"."CreditCardID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 CreditCardId - { - get { return (System.Int32)GetValue((int)ContactCreditCardFieldIndex.CreditCardId, true); } - set { SetValue((int)ContactCreditCardFieldIndex.CreditCardId, value); } - } - - /// The ModifiedDate property of the Entity ContactCreditCard

- /// Mapped on table field: "PersonCreditCard"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ContactCreditCardFieldIndex.ModifiedDate, true); } - set { SetValue((int)ContactCreditCardFieldIndex.ModifiedDate, value); } - } - - /// Gets / sets related entity of type 'CreditCardEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CreditCardEntity CreditCard - { - get { return _creditCard; } - set - { - if(this.IsDeserializing) - { - SetupSyncCreditCard(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ContactCreditCards", "CreditCard", _creditCard, true); - } - } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ContactCreditCards", "Person", _person, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs deleted file mode 100644 index 24a703ea..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs +++ /dev/null @@ -1,469 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ContactType'.

- [Serializable] - public partial class ContactTypeEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _businessEntityContacts; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name BusinessEntityContacts - public static readonly string BusinessEntityContacts = "BusinessEntityContacts"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ContactTypeEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ContactTypeEntity():base("ContactTypeEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ContactTypeEntity(IEntityFields2 fields):base("ContactTypeEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ContactTypeEntity - public ContactTypeEntity(IValidator validator):base("ContactTypeEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ContactType which data should be fetched into this ContactType object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ContactTypeEntity(System.Int32 contactTypeId):base("ContactTypeEntity") - { - InitClassEmpty(null, null); - this.ContactTypeId = contactTypeId; - } - - /// CTor - /// PK value for ContactType which data should be fetched into this ContactType object - /// The custom validator object for this ContactTypeEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ContactTypeEntity(System.Int32 contactTypeId, IValidator validator):base("ContactTypeEntity") - { - InitClassEmpty(validator, null); - this.ContactTypeId = contactTypeId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ContactTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _businessEntityContacts = (EntityCollection)info.GetValue("_businessEntityContacts", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "BusinessEntityContacts": - this.BusinessEntityContacts.Add((BusinessEntityContactEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "BusinessEntityContacts": - toReturn.Add(Relations.BusinessEntityContactEntityUsingContactTypeId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "BusinessEntityContacts": - this.BusinessEntityContacts.Add((BusinessEntityContactEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "BusinessEntityContacts": - this.PerformRelatedEntityRemoval(this.BusinessEntityContacts, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityContacts); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_businessEntityContacts", ((_businessEntityContacts!=null) && (_businessEntityContacts.Count>0) && !this.MarkedForDeletion)?_businessEntityContacts:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ContactTypeRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityContact' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityContacts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityContactFields.ContactTypeId, null, ComparisonOperator.Equal, this.ContactTypeId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ContactTypeEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._businessEntityContacts); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._businessEntityContacts = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._businessEntityContacts != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityContactEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("BusinessEntityContacts", _businessEntityContacts); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ContactTypeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ContactTypeEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ContactTypeRelations Relations - { - get { return new ContactTypeRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityContact' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntityContacts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityContactEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntityContacts")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactTypeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity, 0, null, null, null, null, "BusinessEntityContacts", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ContactTypeId property of the Entity ContactType

- /// Mapped on table field: "ContactType"."ContactTypeID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ContactTypeId - { - get { return (System.Int32)GetValue((int)ContactTypeFieldIndex.ContactTypeId, true); } - set { SetValue((int)ContactTypeFieldIndex.ContactTypeId, value); } - } - - /// The ModifiedDate property of the Entity ContactType

- /// Mapped on table field: "ContactType"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ContactTypeFieldIndex.ModifiedDate, true); } - set { SetValue((int)ContactTypeFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity ContactType

- /// Mapped on table field: "ContactType"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ContactTypeFieldIndex.Name, true); } - set { SetValue((int)ContactTypeFieldIndex.Name, value); } - } - - /// Gets the EntityCollection with the related entities of type 'BusinessEntityContactEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BusinessEntityContactEntity))] - public virtual EntityCollection BusinessEntityContacts - { - get { return GetOrCreateEntityCollection("ContactType", true, false, ref _businessEntityContacts); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactTypeEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs deleted file mode 100644 index 8dc18500..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs +++ /dev/null @@ -1,619 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'CountryRegionCurrency'.

- [Serializable] - public partial class CountryRegionCurrencyEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private CountryRegionEntity _countryRegion; - private CurrencyEntity _currency; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name CountryRegion - public static readonly string CountryRegion = "CountryRegion"; - /// Member name Currency - public static readonly string Currency = "Currency"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static CountryRegionCurrencyEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public CountryRegionCurrencyEntity():base("CountryRegionCurrencyEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public CountryRegionCurrencyEntity(IEntityFields2 fields):base("CountryRegionCurrencyEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this CountryRegionCurrencyEntity - public CountryRegionCurrencyEntity(IValidator validator):base("CountryRegionCurrencyEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object - /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CountryRegionCurrencyEntity(System.String countryRegionCode, System.String currencyCode):base("CountryRegionCurrencyEntity") - { - InitClassEmpty(null, null); - this.CountryRegionCode = countryRegionCode; - this.CurrencyCode = currencyCode; - } - - /// CTor - /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object - /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object - /// The custom validator object for this CountryRegionCurrencyEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CountryRegionCurrencyEntity(System.String countryRegionCode, System.String currencyCode, IValidator validator):base("CountryRegionCurrencyEntity") - { - InitClassEmpty(validator, null); - this.CountryRegionCode = countryRegionCode; - this.CurrencyCode = currencyCode; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected CountryRegionCurrencyEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _countryRegion = (CountryRegionEntity)info.GetValue("_countryRegion", typeof(CountryRegionEntity)); - if(_countryRegion!=null) - { - _countryRegion.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _currency = (CurrencyEntity)info.GetValue("_currency", typeof(CurrencyEntity)); - if(_currency!=null) - { - _currency.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((CountryRegionCurrencyFieldIndex)fieldIndex) - { - case CountryRegionCurrencyFieldIndex.CountryRegionCode: - DesetupSyncCountryRegion(true, false); - break; - case CountryRegionCurrencyFieldIndex.CurrencyCode: - DesetupSyncCurrency(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "CountryRegion": - this.CountryRegion = (CountryRegionEntity)entity; - break; - case "Currency": - this.Currency = (CurrencyEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - 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; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "CountryRegion": - SetupSyncCountryRegion(relatedEntity); - break; - case "Currency": - SetupSyncCurrency(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "CountryRegion": - DesetupSyncCountryRegion(false, true); - break; - case "Currency": - DesetupSyncCurrency(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_countryRegion!=null) - { - toReturn.Add(_countryRegion); - } - if(_currency!=null) - { - toReturn.Add(_currency); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_countryRegion", (!this.MarkedForDeletion?_countryRegion:null)); - info.AddValue("_currency", (!this.MarkedForDeletion?_currency:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new CountryRegionCurrencyRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CountryRegion' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCountryRegion() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CountryRegionFields.CountryRegionCode, null, ComparisonOperator.Equal, this.CountryRegionCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Currency' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCurrency() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CurrencyFields.CurrencyCode, null, ComparisonOperator.Equal, this.CurrencyCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionCurrencyEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("CountryRegion", _countryRegion); - toReturn.Add("Currency", _currency); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CountryRegionCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CurrencyCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _countryRegion - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCountryRegion(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _countryRegion, new PropertyChangedEventHandler(OnCountryRegionPropertyChanged), "CountryRegion", "CountryRegionCurrencies", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCountryRegionCurrencyRelations.CountryRegionEntityUsingCountryRegionCodeStatic, true, new int[] { (int)CountryRegionCurrencyFieldIndex.CountryRegionCode }); - } - - /// setups the sync logic for member _countryRegion - /// Instance to set as the related entity of type entityType - private void SetupSyncCountryRegion(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _countryRegion, new PropertyChangedEventHandler( OnCountryRegionPropertyChanged ), "CountryRegion", "CountryRegionCurrencies", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCountryRegionCurrencyRelations.CountryRegionEntityUsingCountryRegionCodeStatic, true, new string[] { }, new int[] { (int)CountryRegionCurrencyFieldIndex.CountryRegionCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCountryRegionPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _currency - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCurrency(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _currency, new PropertyChangedEventHandler(OnCurrencyPropertyChanged), "Currency", "CountryRegionCurrencies", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCountryRegionCurrencyRelations.CurrencyEntityUsingCurrencyCodeStatic, true, new int[] { (int)CountryRegionCurrencyFieldIndex.CurrencyCode }); - } - - /// setups the sync logic for member _currency - /// Instance to set as the related entity of type entityType - private void SetupSyncCurrency(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _currency, new PropertyChangedEventHandler( OnCurrencyPropertyChanged ), "Currency", "CountryRegionCurrencies", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCountryRegionCurrencyRelations.CurrencyEntityUsingCurrencyCodeStatic, true, new string[] { }, new int[] { (int)CountryRegionCurrencyFieldIndex.CurrencyCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCurrencyPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this CountryRegionCurrencyEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static CountryRegionCurrencyRelations Relations - { - get { return new CountryRegionCurrencyRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegion' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCountryRegion - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionEntityFactory))), (IEntityRelation)GetRelationsForField("CountryRegion")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity, 0, null, null, null, null, "CountryRegion", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Currency' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCurrency - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyEntityFactory))), (IEntityRelation)GetRelationsForField("Currency")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity, 0, null, null, null, null, "Currency", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CountryRegionCode property of the Entity CountryRegionCurrency

- /// Mapped on table field: "CountryRegionCurrency"."CountryRegionCode"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String CountryRegionCode - { - get { return (System.String)GetValue((int)CountryRegionCurrencyFieldIndex.CountryRegionCode, true); } - set { SetValue((int)CountryRegionCurrencyFieldIndex.CountryRegionCode, value); } - } - - /// The CurrencyCode property of the Entity CountryRegionCurrency

- /// Mapped on table field: "CountryRegionCurrency"."CurrencyCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String CurrencyCode - { - get { return (System.String)GetValue((int)CountryRegionCurrencyFieldIndex.CurrencyCode, true); } - set { SetValue((int)CountryRegionCurrencyFieldIndex.CurrencyCode, value); } - } - - /// The ModifiedDate property of the Entity CountryRegionCurrency

- /// Mapped on table field: "CountryRegionCurrency"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)CountryRegionCurrencyFieldIndex.ModifiedDate, true); } - set { SetValue((int)CountryRegionCurrencyFieldIndex.ModifiedDate, value); } - } - - /// Gets / sets related entity of type 'CountryRegionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CountryRegionEntity CountryRegion - { - get { return _countryRegion; } - set - { - if(this.IsDeserializing) - { - SetupSyncCountryRegion(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "CountryRegionCurrencies", "CountryRegion", _countryRegion, true); - } - } - } - - /// Gets / sets related entity of type 'CurrencyEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CurrencyEntity Currency - { - get { return _currency; } - set - { - if(this.IsDeserializing) - { - SetupSyncCurrency(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "CountryRegionCurrencies", "Currency", _currency, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs deleted file mode 100644 index e09e9170..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs +++ /dev/null @@ -1,561 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'CountryRegion'.

- [Serializable] - public partial class CountryRegionEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _countryRegionCurrencies; - private EntityCollection _salesTerritories; - private EntityCollection _stateProvinces; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name CountryRegionCurrencies - public static readonly string CountryRegionCurrencies = "CountryRegionCurrencies"; - /// Member name SalesTerritories - public static readonly string SalesTerritories = "SalesTerritories"; - /// Member name StateProvinces - public static readonly string StateProvinces = "StateProvinces"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static CountryRegionEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public CountryRegionEntity():base("CountryRegionEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public CountryRegionEntity(IEntityFields2 fields):base("CountryRegionEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this CountryRegionEntity - public CountryRegionEntity(IValidator validator):base("CountryRegionEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for CountryRegion which data should be fetched into this CountryRegion object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CountryRegionEntity(System.String countryRegionCode):base("CountryRegionEntity") - { - InitClassEmpty(null, null); - this.CountryRegionCode = countryRegionCode; - } - - /// CTor - /// PK value for CountryRegion which data should be fetched into this CountryRegion object - /// The custom validator object for this CountryRegionEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CountryRegionEntity(System.String countryRegionCode, IValidator validator):base("CountryRegionEntity") - { - InitClassEmpty(validator, null); - this.CountryRegionCode = countryRegionCode; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected CountryRegionEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _countryRegionCurrencies = (EntityCollection)info.GetValue("_countryRegionCurrencies", typeof(EntityCollection)); - _salesTerritories = (EntityCollection)info.GetValue("_salesTerritories", typeof(EntityCollection)); - _stateProvinces = (EntityCollection)info.GetValue("_stateProvinces", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "CountryRegionCurrencies": - this.CountryRegionCurrencies.Add((CountryRegionCurrencyEntity)entity); - break; - case "SalesTerritories": - this.SalesTerritories.Add((SalesTerritoryEntity)entity); - break; - case "StateProvinces": - this.StateProvinces.Add((StateProvinceEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - 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; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "CountryRegionCurrencies": - this.CountryRegionCurrencies.Add((CountryRegionCurrencyEntity)relatedEntity); - break; - case "SalesTerritories": - this.SalesTerritories.Add((SalesTerritoryEntity)relatedEntity); - break; - case "StateProvinces": - this.StateProvinces.Add((StateProvinceEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "CountryRegionCurrencies": - this.PerformRelatedEntityRemoval(this.CountryRegionCurrencies, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesTerritories": - this.PerformRelatedEntityRemoval(this.SalesTerritories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "StateProvinces": - this.PerformRelatedEntityRemoval(this.StateProvinces, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.CountryRegionCurrencies); - toReturn.Add(this.SalesTerritories); - toReturn.Add(this.StateProvinces); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_countryRegionCurrencies", ((_countryRegionCurrencies!=null) && (_countryRegionCurrencies.Count>0) && !this.MarkedForDeletion)?_countryRegionCurrencies:null); - info.AddValue("_salesTerritories", ((_salesTerritories!=null) && (_salesTerritories.Count>0) && !this.MarkedForDeletion)?_salesTerritories:null); - info.AddValue("_stateProvinces", ((_stateProvinces!=null) && (_stateProvinces.Count>0) && !this.MarkedForDeletion)?_stateProvinces:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new CountryRegionRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CountryRegionCurrency' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCountryRegionCurrencies() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CountryRegionCurrencyFields.CountryRegionCode, null, ComparisonOperator.Equal, this.CountryRegionCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTerritory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryFields.CountryRegionCode, null, ComparisonOperator.Equal, this.CountryRegionCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'StateProvince' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoStateProvinces() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(StateProvinceFields.CountryRegionCode, null, ComparisonOperator.Equal, this.CountryRegionCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._countryRegionCurrencies); - collectionsQueue.Enqueue(this._salesTerritories); - collectionsQueue.Enqueue(this._stateProvinces); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._countryRegionCurrencies = (EntityCollection) collectionsQueue.Dequeue(); - this._salesTerritories = (EntityCollection) collectionsQueue.Dequeue(); - this._stateProvinces = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._countryRegionCurrencies != null); - toReturn |=(this._salesTerritories != null); - toReturn |=(this._stateProvinces != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionCurrencyEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StateProvinceEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("CountryRegionCurrencies", _countryRegionCurrencies); - toReturn.Add("SalesTerritories", _salesTerritories); - toReturn.Add("StateProvinces", _stateProvinces); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CountryRegionCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this CountryRegionEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static CountryRegionRelations Relations - { - get { return new CountryRegionRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegionCurrency' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCountryRegionCurrencies - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionCurrencyEntityFactory))), (IEntityRelation)GetRelationsForField("CountryRegionCurrencies")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity, 0, null, null, null, null, "CountryRegionCurrencies", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, 0, null, null, null, null, "SalesTerritories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathStateProvinces - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StateProvinceEntityFactory))), (IEntityRelation)GetRelationsForField("StateProvinces")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, 0, null, null, null, null, "StateProvinces", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CountryRegionCode property of the Entity CountryRegion

- /// Mapped on table field: "CountryRegion"."CountryRegionCode"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String CountryRegionCode - { - get { return (System.String)GetValue((int)CountryRegionFieldIndex.CountryRegionCode, true); } - set { SetValue((int)CountryRegionFieldIndex.CountryRegionCode, value); } - } - - /// The ModifiedDate property of the Entity CountryRegion

- /// Mapped on table field: "CountryRegion"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)CountryRegionFieldIndex.ModifiedDate, true); } - set { SetValue((int)CountryRegionFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity CountryRegion

- /// Mapped on table field: "CountryRegion"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)CountryRegionFieldIndex.Name, true); } - set { SetValue((int)CountryRegionFieldIndex.Name, value); } - } - - /// Gets the EntityCollection with the related entities of type 'CountryRegionCurrencyEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(CountryRegionCurrencyEntity))] - public virtual EntityCollection CountryRegionCurrencies - { - get { return GetOrCreateEntityCollection("CountryRegion", true, false, ref _countryRegionCurrencies); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesTerritoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesTerritoryEntity))] - public virtual EntityCollection SalesTerritories - { - get { return GetOrCreateEntityCollection("CountryRegion", true, false, ref _salesTerritories); } - } - - /// Gets the EntityCollection with the related entities of type 'StateProvinceEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(StateProvinceEntity))] - public virtual EntityCollection StateProvinces - { - get { return GetOrCreateEntityCollection("CountryRegion", true, false, ref _stateProvinces); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CreditCardEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/CreditCardEntity.cs deleted file mode 100644 index 245b5545..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CreditCardEntity.cs +++ /dev/null @@ -1,551 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'CreditCard'.

- [Serializable] - public partial class CreditCardEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _contactCreditCards; - private EntityCollection _salesOrderHeaders; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ContactCreditCards - public static readonly string ContactCreditCards = "ContactCreditCards"; - /// Member name SalesOrderHeaders - public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static CreditCardEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public CreditCardEntity():base("CreditCardEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public CreditCardEntity(IEntityFields2 fields):base("CreditCardEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this CreditCardEntity - public CreditCardEntity(IValidator validator):base("CreditCardEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for CreditCard which data should be fetched into this CreditCard object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CreditCardEntity(System.Int32 creditCardId):base("CreditCardEntity") - { - InitClassEmpty(null, null); - this.CreditCardId = creditCardId; - } - - /// CTor - /// PK value for CreditCard which data should be fetched into this CreditCard object - /// The custom validator object for this CreditCardEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CreditCardEntity(System.Int32 creditCardId, IValidator validator):base("CreditCardEntity") - { - InitClassEmpty(validator, null); - this.CreditCardId = creditCardId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected CreditCardEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _contactCreditCards = (EntityCollection)info.GetValue("_contactCreditCards", typeof(EntityCollection)); - _salesOrderHeaders = (EntityCollection)info.GetValue("_salesOrderHeaders", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ContactCreditCards": - this.ContactCreditCards.Add((ContactCreditCardEntity)entity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ContactCreditCards": - toReturn.Add(Relations.ContactCreditCardEntityUsingCreditCardId); - break; - case "SalesOrderHeaders": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingCreditCardId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ContactCreditCards": - this.ContactCreditCards.Add((ContactCreditCardEntity)relatedEntity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ContactCreditCards": - this.PerformRelatedEntityRemoval(this.ContactCreditCards, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesOrderHeaders": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ContactCreditCards); - toReturn.Add(this.SalesOrderHeaders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_contactCreditCards", ((_contactCreditCards!=null) && (_contactCreditCards.Count>0) && !this.MarkedForDeletion)?_contactCreditCards:null); - info.AddValue("_salesOrderHeaders", ((_salesOrderHeaders!=null) && (_salesOrderHeaders.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new CreditCardRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ContactCreditCard' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoContactCreditCards() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ContactCreditCardFields.CreditCardId, null, ComparisonOperator.Equal, this.CreditCardId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.CreditCardId, null, ComparisonOperator.Equal, this.CreditCardId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(CreditCardEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._contactCreditCards); - collectionsQueue.Enqueue(this._salesOrderHeaders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._contactCreditCards = (EntityCollection) collectionsQueue.Dequeue(); - this._salesOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._contactCreditCards != null); - toReturn |=(this._salesOrderHeaders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ContactCreditCardEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ContactCreditCards", _contactCreditCards); - toReturn.Add("SalesOrderHeaders", _salesOrderHeaders); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CardNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CardType", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CreditCardId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ExpMonth", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ExpYear", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this CreditCardEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static CreditCardRelations Relations - { - get { return new CreditCardRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ContactCreditCard' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathContactCreditCards - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ContactCreditCardEntityFactory))), (IEntityRelation)GetRelationsForField("ContactCreditCards")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity, 0, null, null, null, null, "ContactCreditCards", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CardNumber property of the Entity CreditCard

- /// Mapped on table field: "CreditCard"."CardNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String CardNumber - { - get { return (System.String)GetValue((int)CreditCardFieldIndex.CardNumber, true); } - set { SetValue((int)CreditCardFieldIndex.CardNumber, value); } - } - - /// The CardType property of the Entity CreditCard

- /// Mapped on table field: "CreditCard"."CardType"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String CardType - { - get { return (System.String)GetValue((int)CreditCardFieldIndex.CardType, true); } - set { SetValue((int)CreditCardFieldIndex.CardType, value); } - } - - /// The CreditCardId property of the Entity CreditCard

- /// Mapped on table field: "CreditCard"."CreditCardID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 CreditCardId - { - get { return (System.Int32)GetValue((int)CreditCardFieldIndex.CreditCardId, true); } - set { SetValue((int)CreditCardFieldIndex.CreditCardId, value); } - } - - /// The ExpMonth property of the Entity CreditCard

- /// Mapped on table field: "CreditCard"."ExpMonth"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte ExpMonth - { - get { return (System.Byte)GetValue((int)CreditCardFieldIndex.ExpMonth, true); } - set { SetValue((int)CreditCardFieldIndex.ExpMonth, value); } - } - - /// The ExpYear property of the Entity CreditCard

- /// Mapped on table field: "CreditCard"."ExpYear"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 ExpYear - { - get { return (System.Int16)GetValue((int)CreditCardFieldIndex.ExpYear, true); } - set { SetValue((int)CreditCardFieldIndex.ExpYear, value); } - } - - /// The ModifiedDate property of the Entity CreditCard

- /// Mapped on table field: "CreditCard"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)CreditCardFieldIndex.ModifiedDate, true); } - set { SetValue((int)CreditCardFieldIndex.ModifiedDate, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ContactCreditCardEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ContactCreditCardEntity))] - public virtual EntityCollection ContactCreditCards - { - get { return GetOrCreateEntityCollection("CreditCard", true, false, ref _contactCreditCards); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders - { - get { return GetOrCreateEntityCollection("CreditCard", true, false, ref _salesOrderHeaders); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CultureEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/CultureEntity.cs deleted file mode 100644 index 210596c8..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CultureEntity.cs +++ /dev/null @@ -1,469 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Culture'.

- [Serializable] - public partial class CultureEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productModelProductDescriptionCultures; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductModelProductDescriptionCultures - public static readonly string ProductModelProductDescriptionCultures = "ProductModelProductDescriptionCultures"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static CultureEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public CultureEntity():base("CultureEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public CultureEntity(IEntityFields2 fields):base("CultureEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this CultureEntity - public CultureEntity(IValidator validator):base("CultureEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Culture which data should be fetched into this Culture object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CultureEntity(System.String cultureId):base("CultureEntity") - { - InitClassEmpty(null, null); - this.CultureId = cultureId; - } - - /// CTor - /// PK value for Culture which data should be fetched into this Culture object - /// The custom validator object for this CultureEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CultureEntity(System.String cultureId, IValidator validator):base("CultureEntity") - { - InitClassEmpty(validator, null); - this.CultureId = cultureId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected CultureEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productModelProductDescriptionCultures = (EntityCollection)info.GetValue("_productModelProductDescriptionCultures", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductModelProductDescriptionCultures": - this.ProductModelProductDescriptionCultures.Add((ProductModelProductDescriptionCultureEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ProductModelProductDescriptionCultures": - toReturn.Add(Relations.ProductModelProductDescriptionCultureEntityUsingCultureId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductModelProductDescriptionCultures": - this.ProductModelProductDescriptionCultures.Add((ProductModelProductDescriptionCultureEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductModelProductDescriptionCultures": - this.PerformRelatedEntityRemoval(this.ProductModelProductDescriptionCultures, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductModelProductDescriptionCultures); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productModelProductDescriptionCultures", ((_productModelProductDescriptionCultures!=null) && (_productModelProductDescriptionCultures.Count>0) && !this.MarkedForDeletion)?_productModelProductDescriptionCultures:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new CultureRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelProductDescriptionCulture' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModelProductDescriptionCultures() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelProductDescriptionCultureFields.CultureId, null, ComparisonOperator.Equal, this.CultureId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(CultureEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productModelProductDescriptionCultures); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productModelProductDescriptionCultures = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productModelProductDescriptionCultures != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelProductDescriptionCultureEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductModelProductDescriptionCultures", _productModelProductDescriptionCultures); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CultureId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this CultureEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static CultureRelations Relations - { - get { return new CultureRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelProductDescriptionCulture' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModelProductDescriptionCultures - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelProductDescriptionCultureEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModelProductDescriptionCultures")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CultureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity, 0, null, null, null, null, "ProductModelProductDescriptionCultures", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CultureId property of the Entity Culture

- /// Mapped on table field: "Culture"."CultureID"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 6
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String CultureId - { - get { return (System.String)GetValue((int)CultureFieldIndex.CultureId, true); } - set { SetValue((int)CultureFieldIndex.CultureId, value); } - } - - /// The ModifiedDate property of the Entity Culture

- /// Mapped on table field: "Culture"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)CultureFieldIndex.ModifiedDate, true); } - set { SetValue((int)CultureFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Culture

- /// Mapped on table field: "Culture"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)CultureFieldIndex.Name, true); } - set { SetValue((int)CultureFieldIndex.Name, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductModelProductDescriptionCultureEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductModelProductDescriptionCultureEntity))] - public virtual EntityCollection ProductModelProductDescriptionCultures - { - get { return GetOrCreateEntityCollection("Culture", true, false, ref _productModelProductDescriptionCultures); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.CultureEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyEntity.cs deleted file mode 100644 index 62fd6499..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyEntity.cs +++ /dev/null @@ -1,561 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Currency'.

- [Serializable] - public partial class CurrencyEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _countryRegionCurrencies; - private EntityCollection _currencyRates; - private EntityCollection _currencyRates_; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name CountryRegionCurrencies - public static readonly string CountryRegionCurrencies = "CountryRegionCurrencies"; - /// Member name CurrencyRates - public static readonly string CurrencyRates = "CurrencyRates"; - /// Member name CurrencyRates_ - public static readonly string CurrencyRates_ = "CurrencyRates_"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static CurrencyEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public CurrencyEntity():base("CurrencyEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public CurrencyEntity(IEntityFields2 fields):base("CurrencyEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this CurrencyEntity - public CurrencyEntity(IValidator validator):base("CurrencyEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Currency which data should be fetched into this Currency object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CurrencyEntity(System.String currencyCode):base("CurrencyEntity") - { - InitClassEmpty(null, null); - this.CurrencyCode = currencyCode; - } - - /// CTor - /// PK value for Currency which data should be fetched into this Currency object - /// The custom validator object for this CurrencyEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CurrencyEntity(System.String currencyCode, IValidator validator):base("CurrencyEntity") - { - InitClassEmpty(validator, null); - this.CurrencyCode = currencyCode; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected CurrencyEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _countryRegionCurrencies = (EntityCollection)info.GetValue("_countryRegionCurrencies", typeof(EntityCollection)); - _currencyRates = (EntityCollection)info.GetValue("_currencyRates", typeof(EntityCollection)); - _currencyRates_ = (EntityCollection)info.GetValue("_currencyRates_", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "CountryRegionCurrencies": - this.CountryRegionCurrencies.Add((CountryRegionCurrencyEntity)entity); - break; - case "CurrencyRates": - this.CurrencyRates.Add((CurrencyRateEntity)entity); - break; - case "CurrencyRates_": - this.CurrencyRates_.Add((CurrencyRateEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "CountryRegionCurrencies": - toReturn.Add(Relations.CountryRegionCurrencyEntityUsingCurrencyCode); - break; - case "CurrencyRates": - toReturn.Add(Relations.CurrencyRateEntityUsingFromCurrencyCode); - break; - case "CurrencyRates_": - toReturn.Add(Relations.CurrencyRateEntityUsingToCurrencyCode); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "CountryRegionCurrencies": - this.CountryRegionCurrencies.Add((CountryRegionCurrencyEntity)relatedEntity); - break; - case "CurrencyRates": - this.CurrencyRates.Add((CurrencyRateEntity)relatedEntity); - break; - case "CurrencyRates_": - this.CurrencyRates_.Add((CurrencyRateEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "CountryRegionCurrencies": - this.PerformRelatedEntityRemoval(this.CountryRegionCurrencies, relatedEntity, signalRelatedEntityManyToOne); - break; - case "CurrencyRates": - this.PerformRelatedEntityRemoval(this.CurrencyRates, relatedEntity, signalRelatedEntityManyToOne); - break; - case "CurrencyRates_": - this.PerformRelatedEntityRemoval(this.CurrencyRates_, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.CountryRegionCurrencies); - toReturn.Add(this.CurrencyRates); - toReturn.Add(this.CurrencyRates_); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_countryRegionCurrencies", ((_countryRegionCurrencies!=null) && (_countryRegionCurrencies.Count>0) && !this.MarkedForDeletion)?_countryRegionCurrencies:null); - info.AddValue("_currencyRates", ((_currencyRates!=null) && (_currencyRates.Count>0) && !this.MarkedForDeletion)?_currencyRates:null); - info.AddValue("_currencyRates_", ((_currencyRates_!=null) && (_currencyRates_.Count>0) && !this.MarkedForDeletion)?_currencyRates_:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new CurrencyRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CountryRegionCurrency' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCountryRegionCurrencies() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CountryRegionCurrencyFields.CurrencyCode, null, ComparisonOperator.Equal, this.CurrencyCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CurrencyRate' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCurrencyRates() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CurrencyRateFields.FromCurrencyCode, null, ComparisonOperator.Equal, this.CurrencyCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CurrencyRate' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCurrencyRates_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CurrencyRateFields.ToCurrencyCode, null, ComparisonOperator.Equal, this.CurrencyCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(CurrencyEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._countryRegionCurrencies); - collectionsQueue.Enqueue(this._currencyRates); - collectionsQueue.Enqueue(this._currencyRates_); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._countryRegionCurrencies = (EntityCollection) collectionsQueue.Dequeue(); - this._currencyRates = (EntityCollection) collectionsQueue.Dequeue(); - this._currencyRates_ = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._countryRegionCurrencies != null); - toReturn |=(this._currencyRates != null); - toReturn |=(this._currencyRates_ != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionCurrencyEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyRateEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyRateEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("CountryRegionCurrencies", _countryRegionCurrencies); - toReturn.Add("CurrencyRates", _currencyRates); - toReturn.Add("CurrencyRates_", _currencyRates_); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CurrencyCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this CurrencyEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static CurrencyRelations Relations - { - get { return new CurrencyRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegionCurrency' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCountryRegionCurrencies - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionCurrencyEntityFactory))), (IEntityRelation)GetRelationsForField("CountryRegionCurrencies")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity, 0, null, null, null, null, "CountryRegionCurrencies", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CurrencyRate' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCurrencyRates - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyRateEntityFactory))), (IEntityRelation)GetRelationsForField("CurrencyRates")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity, 0, null, null, null, null, "CurrencyRates", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CurrencyRate' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCurrencyRates_ - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyRateEntityFactory))), (IEntityRelation)GetRelationsForField("CurrencyRates_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity, 0, null, null, null, null, "CurrencyRates_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CurrencyCode property of the Entity Currency

- /// Mapped on table field: "Currency"."CurrencyCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String CurrencyCode - { - get { return (System.String)GetValue((int)CurrencyFieldIndex.CurrencyCode, true); } - set { SetValue((int)CurrencyFieldIndex.CurrencyCode, value); } - } - - /// The ModifiedDate property of the Entity Currency

- /// Mapped on table field: "Currency"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)CurrencyFieldIndex.ModifiedDate, true); } - set { SetValue((int)CurrencyFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Currency

- /// Mapped on table field: "Currency"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)CurrencyFieldIndex.Name, true); } - set { SetValue((int)CurrencyFieldIndex.Name, value); } - } - - /// Gets the EntityCollection with the related entities of type 'CountryRegionCurrencyEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(CountryRegionCurrencyEntity))] - public virtual EntityCollection CountryRegionCurrencies - { - get { return GetOrCreateEntityCollection("Currency", true, false, ref _countryRegionCurrencies); } - } - - /// Gets the EntityCollection with the related entities of type 'CurrencyRateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(CurrencyRateEntity))] - public virtual EntityCollection CurrencyRates - { - get { return GetOrCreateEntityCollection("Currency", true, false, ref _currencyRates); } - } - - /// Gets the EntityCollection with the related entities of type 'CurrencyRateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(CurrencyRateEntity))] - public virtual EntityCollection CurrencyRates_ - { - get { return GetOrCreateEntityCollection("Currency_", true, false, ref _currencyRates_); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs deleted file mode 100644 index 82276b1e..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs +++ /dev/null @@ -1,709 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'CurrencyRate'.

- [Serializable] - public partial class CurrencyRateEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _salesOrderHeaders; - private CurrencyEntity _currency; - private CurrencyEntity _currency_; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Currency - public static readonly string Currency = "Currency"; - /// Member name Currency_ - public static readonly string Currency_ = "Currency_"; - /// Member name SalesOrderHeaders - public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static CurrencyRateEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public CurrencyRateEntity():base("CurrencyRateEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public CurrencyRateEntity(IEntityFields2 fields):base("CurrencyRateEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this CurrencyRateEntity - public CurrencyRateEntity(IValidator validator):base("CurrencyRateEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for CurrencyRate which data should be fetched into this CurrencyRate object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CurrencyRateEntity(System.Int32 currencyRateId):base("CurrencyRateEntity") - { - InitClassEmpty(null, null); - this.CurrencyRateId = currencyRateId; - } - - /// CTor - /// PK value for CurrencyRate which data should be fetched into this CurrencyRate object - /// The custom validator object for this CurrencyRateEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CurrencyRateEntity(System.Int32 currencyRateId, IValidator validator):base("CurrencyRateEntity") - { - InitClassEmpty(validator, null); - this.CurrencyRateId = currencyRateId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected CurrencyRateEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderHeaders = (EntityCollection)info.GetValue("_salesOrderHeaders", typeof(EntityCollection)); - _currency = (CurrencyEntity)info.GetValue("_currency", typeof(CurrencyEntity)); - if(_currency!=null) - { - _currency.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _currency_ = (CurrencyEntity)info.GetValue("_currency_", typeof(CurrencyEntity)); - if(_currency_!=null) - { - _currency_.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((CurrencyRateFieldIndex)fieldIndex) - { - case CurrencyRateFieldIndex.FromCurrencyCode: - DesetupSyncCurrency(true, false); - break; - case CurrencyRateFieldIndex.ToCurrencyCode: - DesetupSyncCurrency_(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Currency": - this.Currency = (CurrencyEntity)entity; - break; - case "Currency_": - this.Currency_ = (CurrencyEntity)entity; - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Currency": - toReturn.Add(Relations.CurrencyEntityUsingFromCurrencyCode); - break; - case "Currency_": - toReturn.Add(Relations.CurrencyEntityUsingToCurrencyCode); - break; - case "SalesOrderHeaders": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingCurrencyRateId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Currency": - SetupSyncCurrency(relatedEntity); - break; - case "Currency_": - SetupSyncCurrency_(relatedEntity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Currency": - DesetupSyncCurrency(false, true); - break; - case "Currency_": - DesetupSyncCurrency_(false, true); - break; - case "SalesOrderHeaders": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_currency!=null) - { - toReturn.Add(_currency); - } - if(_currency_!=null) - { - toReturn.Add(_currency_); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderHeaders", ((_salesOrderHeaders!=null) && (_salesOrderHeaders.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders:null); - info.AddValue("_currency", (!this.MarkedForDeletion?_currency:null)); - info.AddValue("_currency_", (!this.MarkedForDeletion?_currency_:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new CurrencyRateRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.CurrencyRateId, null, ComparisonOperator.Equal, this.CurrencyRateId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Currency' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCurrency() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CurrencyFields.CurrencyCode, null, ComparisonOperator.Equal, this.FromCurrencyCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Currency' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCurrency_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CurrencyFields.CurrencyCode, null, ComparisonOperator.Equal, this.ToCurrencyCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(CurrencyRateEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._salesOrderHeaders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._salesOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._salesOrderHeaders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Currency", _currency); - toReturn.Add("Currency_", _currency_); - toReturn.Add("SalesOrderHeaders", _salesOrderHeaders); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AverageRate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CurrencyRateDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CurrencyRateId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndOfDayRate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("FromCurrencyCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ToCurrencyCode", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _currency - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCurrency(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _currency, new PropertyChangedEventHandler(OnCurrencyPropertyChanged), "Currency", "CurrencyRates", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCurrencyRateRelations.CurrencyEntityUsingFromCurrencyCodeStatic, true, new int[] { (int)CurrencyRateFieldIndex.FromCurrencyCode }); - } - - /// setups the sync logic for member _currency - /// Instance to set as the related entity of type entityType - private void SetupSyncCurrency(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _currency, new PropertyChangedEventHandler( OnCurrencyPropertyChanged ), "Currency", "CurrencyRates", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCurrencyRateRelations.CurrencyEntityUsingFromCurrencyCodeStatic, true, new string[] { }, new int[] { (int)CurrencyRateFieldIndex.FromCurrencyCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCurrencyPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _currency_ - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCurrency_(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _currency_, new PropertyChangedEventHandler(OnCurrency_PropertyChanged), "Currency_", "CurrencyRates_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCurrencyRateRelations.CurrencyEntityUsingToCurrencyCodeStatic, true, new int[] { (int)CurrencyRateFieldIndex.ToCurrencyCode }); - } - - /// setups the sync logic for member _currency_ - /// Instance to set as the related entity of type entityType - private void SetupSyncCurrency_(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _currency_, new PropertyChangedEventHandler( OnCurrency_PropertyChanged ), "Currency_", "CurrencyRates_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCurrencyRateRelations.CurrencyEntityUsingToCurrencyCodeStatic, true, new string[] { }, new int[] { (int)CurrencyRateFieldIndex.ToCurrencyCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCurrency_PropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this CurrencyRateEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static CurrencyRateRelations Relations - { - get { return new CurrencyRateRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Currency' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCurrency - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyEntityFactory))), (IEntityRelation)GetRelationsForField("Currency")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity, 0, null, null, null, null, "Currency", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Currency' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCurrency_ - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyEntityFactory))), (IEntityRelation)GetRelationsForField("Currency_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity, 0, null, null, null, null, "Currency_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AverageRate property of the Entity CurrencyRate

- /// Mapped on table field: "CurrencyRate"."AverageRate"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal AverageRate - { - get { return (System.Decimal)GetValue((int)CurrencyRateFieldIndex.AverageRate, true); } - set { SetValue((int)CurrencyRateFieldIndex.AverageRate, value); } - } - - /// The CurrencyRateDate property of the Entity CurrencyRate

- /// Mapped on table field: "CurrencyRate"."CurrencyRateDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime CurrencyRateDate - { - get { return (System.DateTime)GetValue((int)CurrencyRateFieldIndex.CurrencyRateDate, true); } - set { SetValue((int)CurrencyRateFieldIndex.CurrencyRateDate, value); } - } - - /// The CurrencyRateId property of the Entity CurrencyRate

- /// Mapped on table field: "CurrencyRate"."CurrencyRateID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 CurrencyRateId - { - get { return (System.Int32)GetValue((int)CurrencyRateFieldIndex.CurrencyRateId, true); } - set { SetValue((int)CurrencyRateFieldIndex.CurrencyRateId, value); } - } - - /// The EndOfDayRate property of the Entity CurrencyRate

- /// Mapped on table field: "CurrencyRate"."EndOfDayRate"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal EndOfDayRate - { - get { return (System.Decimal)GetValue((int)CurrencyRateFieldIndex.EndOfDayRate, true); } - set { SetValue((int)CurrencyRateFieldIndex.EndOfDayRate, value); } - } - - /// The FromCurrencyCode property of the Entity CurrencyRate

- /// Mapped on table field: "CurrencyRate"."FromCurrencyCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String FromCurrencyCode - { - get { return (System.String)GetValue((int)CurrencyRateFieldIndex.FromCurrencyCode, true); } - set { SetValue((int)CurrencyRateFieldIndex.FromCurrencyCode, value); } - } - - /// The ModifiedDate property of the Entity CurrencyRate

- /// Mapped on table field: "CurrencyRate"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)CurrencyRateFieldIndex.ModifiedDate, true); } - set { SetValue((int)CurrencyRateFieldIndex.ModifiedDate, value); } - } - - /// The ToCurrencyCode property of the Entity CurrencyRate

- /// Mapped on table field: "CurrencyRate"."ToCurrencyCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String ToCurrencyCode - { - get { return (System.String)GetValue((int)CurrencyRateFieldIndex.ToCurrencyCode, true); } - set { SetValue((int)CurrencyRateFieldIndex.ToCurrencyCode, value); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders - { - get { return GetOrCreateEntityCollection("CurrencyRate", true, false, ref _salesOrderHeaders); } - } - - /// Gets / sets related entity of type 'CurrencyEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CurrencyEntity Currency - { - get { return _currency; } - set - { - if(this.IsDeserializing) - { - SetupSyncCurrency(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "CurrencyRates", "Currency", _currency, true); - } - } - } - - /// Gets / sets related entity of type 'CurrencyEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CurrencyEntity Currency_ - { - get { return _currency_; } - set - { - if(this.IsDeserializing) - { - SetupSyncCurrency_(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "CurrencyRates_", "Currency_", _currency_, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CustomerEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/CustomerEntity.cs deleted file mode 100644 index c10f8ab7..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CustomerEntity.cs +++ /dev/null @@ -1,799 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Customer'.

- [Serializable] - public partial class CustomerEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _salesOrderHeaders; - private PersonEntity _person; - private SalesTerritoryEntity _salesTerritory; - private StoreEntity _store; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Person - public static readonly string Person = "Person"; - /// Member name SalesTerritory - public static readonly string SalesTerritory = "SalesTerritory"; - /// Member name Store - public static readonly string Store = "Store"; - /// Member name SalesOrderHeaders - public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static CustomerEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public CustomerEntity():base("CustomerEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public CustomerEntity(IEntityFields2 fields):base("CustomerEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this CustomerEntity - public CustomerEntity(IValidator validator):base("CustomerEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Customer which data should be fetched into this Customer object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CustomerEntity(System.Int32 customerId):base("CustomerEntity") - { - InitClassEmpty(null, null); - this.CustomerId = customerId; - } - - /// CTor - /// PK value for Customer which data should be fetched into this Customer object - /// The custom validator object for this CustomerEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public CustomerEntity(System.Int32 customerId, IValidator validator):base("CustomerEntity") - { - InitClassEmpty(validator, null); - this.CustomerId = customerId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected CustomerEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderHeaders = (EntityCollection)info.GetValue("_salesOrderHeaders", typeof(EntityCollection)); - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _salesTerritory = (SalesTerritoryEntity)info.GetValue("_salesTerritory", typeof(SalesTerritoryEntity)); - if(_salesTerritory!=null) - { - _salesTerritory.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _store = (StoreEntity)info.GetValue("_store", typeof(StoreEntity)); - if(_store!=null) - { - _store.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((CustomerFieldIndex)fieldIndex) - { - case CustomerFieldIndex.PersonId: - DesetupSyncPerson(true, false); - break; - case CustomerFieldIndex.StoreId: - DesetupSyncStore(true, false); - break; - case CustomerFieldIndex.TerritoryId: - DesetupSyncSalesTerritory(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Person": - this.Person = (PersonEntity)entity; - break; - case "SalesTerritory": - this.SalesTerritory = (SalesTerritoryEntity)entity; - break; - case "Store": - this.Store = (StoreEntity)entity; - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Person": - toReturn.Add(Relations.PersonEntityUsingPersonId); - break; - case "SalesTerritory": - toReturn.Add(Relations.SalesTerritoryEntityUsingTerritoryId); - break; - case "Store": - toReturn.Add(Relations.StoreEntityUsingStoreId); - break; - case "SalesOrderHeaders": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingCustomerId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Person": - SetupSyncPerson(relatedEntity); - break; - case "SalesTerritory": - SetupSyncSalesTerritory(relatedEntity); - break; - case "Store": - SetupSyncStore(relatedEntity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Person": - DesetupSyncPerson(false, true); - break; - case "SalesTerritory": - DesetupSyncSalesTerritory(false, true); - break; - case "Store": - DesetupSyncStore(false, true); - break; - case "SalesOrderHeaders": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_person!=null) - { - toReturn.Add(_person); - } - if(_salesTerritory!=null) - { - toReturn.Add(_salesTerritory); - } - if(_store!=null) - { - toReturn.Add(_store); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderHeaders", ((_salesOrderHeaders!=null) && (_salesOrderHeaders.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders:null); - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - info.AddValue("_salesTerritory", (!this.MarkedForDeletion?_salesTerritory:null)); - info.AddValue("_store", (!this.MarkedForDeletion?_store:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new CustomerRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.CustomerId, null, ComparisonOperator.Equal, this.CustomerId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.PersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Store' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoStore() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(StoreFields.CustomerId, null, ComparisonOperator.Equal, this.StoreId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._salesOrderHeaders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._salesOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._salesOrderHeaders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Person", _person); - toReturn.Add("SalesTerritory", _salesTerritory); - toReturn.Add("Store", _store); - toReturn.Add("SalesOrderHeaders", _salesOrderHeaders); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AccountNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CustomerId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PersonId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StoreId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TerritoryId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "Customers", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCustomerRelations.PersonEntityUsingPersonIdStatic, true, new int[] { (int)CustomerFieldIndex.PersonId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "Customers", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCustomerRelations.PersonEntityUsingPersonIdStatic, true, new string[] { }, new int[] { (int)CustomerFieldIndex.PersonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _salesTerritory - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesTerritory(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesTerritory, new PropertyChangedEventHandler(OnSalesTerritoryPropertyChanged), "SalesTerritory", "Customers", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCustomerRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new int[] { (int)CustomerFieldIndex.TerritoryId }); - } - - /// setups the sync logic for member _salesTerritory - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesTerritory(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesTerritory, new PropertyChangedEventHandler( OnSalesTerritoryPropertyChanged ), "SalesTerritory", "Customers", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCustomerRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new string[] { }, new int[] { (int)CustomerFieldIndex.TerritoryId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesTerritoryPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _store - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncStore(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _store, new PropertyChangedEventHandler(OnStorePropertyChanged), "Store", "Customers", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCustomerRelations.StoreEntityUsingStoreIdStatic, true, new int[] { (int)CustomerFieldIndex.StoreId }); - } - - /// setups the sync logic for member _store - /// Instance to set as the related entity of type entityType - private void SetupSyncStore(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _store, new PropertyChangedEventHandler( OnStorePropertyChanged ), "Store", "Customers", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticCustomerRelations.StoreEntityUsingStoreIdStatic, true, new string[] { }, new int[] { (int)CustomerFieldIndex.StoreId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnStorePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this CustomerEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static CustomerRelations Relations - { - get { return new CustomerRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritory - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritory")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, 0, null, null, null, null, "SalesTerritory", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Store' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathStore - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StoreEntityFactory))), (IEntityRelation)GetRelationsForField("Store")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity, 0, null, null, null, null, "Store", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AccountNumber property of the Entity Customer

- /// Mapped on table field: "Customer"."AccountNumber"
- /// Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 10
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String AccountNumber - { - get { return (System.String)GetValue((int)CustomerFieldIndex.AccountNumber, true); } - - } - - /// The CustomerId property of the Entity Customer

- /// Mapped on table field: "Customer"."CustomerID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 CustomerId - { - get { return (System.Int32)GetValue((int)CustomerFieldIndex.CustomerId, true); } - set { SetValue((int)CustomerFieldIndex.CustomerId, value); } - } - - /// The ModifiedDate property of the Entity Customer

- /// Mapped on table field: "Customer"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)CustomerFieldIndex.ModifiedDate, true); } - set { SetValue((int)CustomerFieldIndex.ModifiedDate, value); } - } - - /// The PersonId property of the Entity Customer

- /// Mapped on table field: "Customer"."PersonID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable PersonId - { - get { return (Nullable)GetValue((int)CustomerFieldIndex.PersonId, false); } - set { SetValue((int)CustomerFieldIndex.PersonId, value); } - } - - /// The Rowguid property of the Entity Customer

- /// Mapped on table field: "Customer"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)CustomerFieldIndex.Rowguid, true); } - set { SetValue((int)CustomerFieldIndex.Rowguid, value); } - } - - /// The StoreId property of the Entity Customer

- /// Mapped on table field: "Customer"."StoreID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable StoreId - { - get { return (Nullable)GetValue((int)CustomerFieldIndex.StoreId, false); } - set { SetValue((int)CustomerFieldIndex.StoreId, value); } - } - - /// The TerritoryId property of the Entity Customer

- /// Mapped on table field: "Customer"."TerritoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable TerritoryId - { - get { return (Nullable)GetValue((int)CustomerFieldIndex.TerritoryId, false); } - set { SetValue((int)CustomerFieldIndex.TerritoryId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders - { - get { return GetOrCreateEntityCollection("Customer", true, false, ref _salesOrderHeaders); } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Customers", "Person", _person, true); - } - } - } - - /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesTerritoryEntity SalesTerritory - { - get { return _salesTerritory; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesTerritory(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Customers", "SalesTerritory", _salesTerritory, true); - } - } - } - - /// Gets / sets related entity of type 'StoreEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual StoreEntity Store - { - get { return _store; } - set - { - if(this.IsDeserializing) - { - SetupSyncStore(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Customers", "Store", _store, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/DepartmentEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/DepartmentEntity.cs deleted file mode 100644 index b6585e7a..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/DepartmentEntity.cs +++ /dev/null @@ -1,481 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Department'.

- [Serializable] - public partial class DepartmentEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _employeeDepartmentHistories; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name EmployeeDepartmentHistories - public static readonly string EmployeeDepartmentHistories = "EmployeeDepartmentHistories"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static DepartmentEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public DepartmentEntity():base("DepartmentEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public DepartmentEntity(IEntityFields2 fields):base("DepartmentEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this DepartmentEntity - public DepartmentEntity(IValidator validator):base("DepartmentEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Department which data should be fetched into this Department object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public DepartmentEntity(System.Int16 departmentId):base("DepartmentEntity") - { - InitClassEmpty(null, null); - this.DepartmentId = departmentId; - } - - /// CTor - /// PK value for Department which data should be fetched into this Department object - /// The custom validator object for this DepartmentEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public DepartmentEntity(System.Int16 departmentId, IValidator validator):base("DepartmentEntity") - { - InitClassEmpty(validator, null); - this.DepartmentId = departmentId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected DepartmentEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _employeeDepartmentHistories = (EntityCollection)info.GetValue("_employeeDepartmentHistories", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "EmployeeDepartmentHistories": - this.EmployeeDepartmentHistories.Add((EmployeeDepartmentHistoryEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "EmployeeDepartmentHistories": - toReturn.Add(Relations.EmployeeDepartmentHistoryEntityUsingDepartmentId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "EmployeeDepartmentHistories": - this.EmployeeDepartmentHistories.Add((EmployeeDepartmentHistoryEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "EmployeeDepartmentHistories": - this.PerformRelatedEntityRemoval(this.EmployeeDepartmentHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.EmployeeDepartmentHistories); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_employeeDepartmentHistories", ((_employeeDepartmentHistories!=null) && (_employeeDepartmentHistories.Count>0) && !this.MarkedForDeletion)?_employeeDepartmentHistories:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new DepartmentRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeeDepartmentHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployeeDepartmentHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeDepartmentHistoryFields.DepartmentId, null, ComparisonOperator.Equal, this.DepartmentId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(DepartmentEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._employeeDepartmentHistories); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._employeeDepartmentHistories = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._employeeDepartmentHistories != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeDepartmentHistoryEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("EmployeeDepartmentHistories", _employeeDepartmentHistories); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DepartmentId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("GroupName", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this DepartmentEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static DepartmentRelations Relations - { - get { return new DepartmentRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeeDepartmentHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployeeDepartmentHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeDepartmentHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("EmployeeDepartmentHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.DepartmentEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity, 0, null, null, null, null, "EmployeeDepartmentHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The DepartmentId property of the Entity Department

- /// Mapped on table field: "Department"."DepartmentID"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int16 DepartmentId - { - get { return (System.Int16)GetValue((int)DepartmentFieldIndex.DepartmentId, true); } - set { SetValue((int)DepartmentFieldIndex.DepartmentId, value); } - } - - /// The GroupName property of the Entity Department

- /// Mapped on table field: "Department"."GroupName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String GroupName - { - get { return (System.String)GetValue((int)DepartmentFieldIndex.GroupName, true); } - set { SetValue((int)DepartmentFieldIndex.GroupName, value); } - } - - /// The ModifiedDate property of the Entity Department

- /// Mapped on table field: "Department"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)DepartmentFieldIndex.ModifiedDate, true); } - set { SetValue((int)DepartmentFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Department

- /// Mapped on table field: "Department"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)DepartmentFieldIndex.Name, true); } - set { SetValue((int)DepartmentFieldIndex.Name, value); } - } - - /// Gets the EntityCollection with the related entities of type 'EmployeeDepartmentHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(EmployeeDepartmentHistoryEntity))] - public virtual EntityCollection EmployeeDepartmentHistories - { - get { return GetOrCreateEntityCollection("Department", true, false, ref _employeeDepartmentHistories); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.DepartmentEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/DocumentEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/DocumentEntity.cs deleted file mode 100644 index 476f438b..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/DocumentEntity.cs +++ /dev/null @@ -1,713 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Document'.

- [Serializable] - public partial class DocumentEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productDocuments; - private EmployeeEntity _employee; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Employee - public static readonly string Employee = "Employee"; - /// Member name ProductDocuments - public static readonly string ProductDocuments = "ProductDocuments"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static DocumentEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public DocumentEntity():base("DocumentEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public DocumentEntity(IEntityFields2 fields):base("DocumentEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this DocumentEntity - public DocumentEntity(IValidator validator):base("DocumentEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Document which data should be fetched into this Document object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public DocumentEntity(System.String documentNode):base("DocumentEntity") - { - InitClassEmpty(null, null); - this.DocumentNode = documentNode; - } - - /// CTor - /// PK value for Document which data should be fetched into this Document object - /// The custom validator object for this DocumentEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public DocumentEntity(System.String documentNode, IValidator validator):base("DocumentEntity") - { - InitClassEmpty(validator, null); - this.DocumentNode = documentNode; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected DocumentEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productDocuments = (EntityCollection)info.GetValue("_productDocuments", typeof(EntityCollection)); - _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); - if(_employee!=null) - { - _employee.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((DocumentFieldIndex)fieldIndex) - { - case DocumentFieldIndex.Owner: - DesetupSyncEmployee(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Employee": - this.Employee = (EmployeeEntity)entity; - break; - case "ProductDocuments": - this.ProductDocuments.Add((ProductDocumentEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Employee": - toReturn.Add(Relations.EmployeeEntityUsingOwner); - break; - case "ProductDocuments": - toReturn.Add(Relations.ProductDocumentEntityUsingDocumentNode); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Employee": - SetupSyncEmployee(relatedEntity); - break; - case "ProductDocuments": - this.ProductDocuments.Add((ProductDocumentEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Employee": - DesetupSyncEmployee(false, true); - break; - case "ProductDocuments": - this.PerformRelatedEntityRemoval(this.ProductDocuments, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_employee!=null) - { - toReturn.Add(_employee); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductDocuments); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productDocuments", ((_productDocuments!=null) && (_productDocuments.Count>0) && !this.MarkedForDeletion)?_productDocuments:null); - info.AddValue("_employee", (!this.MarkedForDeletion?_employee:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - /// Method which will construct a filter (predicate expression) for the unique constraint defined on the fields: - /// Rowguid . - /// true if succeeded and the contents is read, false otherwise - public IPredicateExpression ConstructFilterForUCRowguid() - { - IPredicateExpression filter = new PredicateExpression(); - filter.Add(AdventureWorks.Dal.Adapter.v53.HelperClasses.DocumentFields.Rowguid == this.Fields.GetCurrentValue((int)DocumentFieldIndex.Rowguid)); - return filter; - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new DocumentRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductDocument' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductDocuments() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductDocumentFields.DocumentNode, null, ComparisonOperator.Equal, this.DocumentNode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployee() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeFields.EmployeeId, null, ComparisonOperator.Equal, this.Owner)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(DocumentEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productDocuments); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productDocuments = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productDocuments != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductDocumentEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Employee", _employee); - toReturn.Add("ProductDocuments", _productDocuments); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ChangeNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Document", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DocumentLevel", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DocumentNode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DocumentSummary", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("FileExtension", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("FileName", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("FolderFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Owner", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Revision", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Status", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Title", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _employee - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncEmployee(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _employee, new PropertyChangedEventHandler(OnEmployeePropertyChanged), "Employee", "Documents", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticDocumentRelations.EmployeeEntityUsingOwnerStatic, true, new int[] { (int)DocumentFieldIndex.Owner }); - } - - /// setups the sync logic for member _employee - /// Instance to set as the related entity of type entityType - private void SetupSyncEmployee(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _employee, new PropertyChangedEventHandler( OnEmployeePropertyChanged ), "Employee", "Documents", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticDocumentRelations.EmployeeEntityUsingOwnerStatic, true, new string[] { }, new int[] { (int)DocumentFieldIndex.Owner }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnEmployeePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this DocumentEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static DocumentRelations Relations - { - get { return new DocumentRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductDocument' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductDocuments - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductDocumentEntityFactory))), (IEntityRelation)GetRelationsForField("ProductDocuments")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity, 0, null, null, null, null, "ProductDocuments", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployee - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory))), (IEntityRelation)GetRelationsForField("Employee")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, 0, null, null, null, null, "Employee", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ChangeNumber property of the Entity Document

- /// Mapped on table field: "Document"."ChangeNumber"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ChangeNumber - { - get { return (System.Int32)GetValue((int)DocumentFieldIndex.ChangeNumber, true); } - set { SetValue((int)DocumentFieldIndex.ChangeNumber, value); } - } - - /// The Document property of the Entity Document

- /// Mapped on table field: "Document"."Document"
- /// Table field type characteristics (type, precision, scale, length): VarBinary, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.Byte[] Document - { - get { return (System.Byte[])GetValue((int)DocumentFieldIndex.Document, true); } - set { SetValue((int)DocumentFieldIndex.Document, value); } - } - - /// The DocumentLevel property of the Entity Document

- /// Mapped on table field: "Document"."DocumentLevel"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable DocumentLevel - { - get { return (Nullable)GetValue((int)DocumentFieldIndex.DocumentLevel, false); } - - } - - /// The DocumentNode property of the Entity Document

- /// Mapped on table field: "Document"."DocumentNode"
- /// Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 892
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String DocumentNode - { - get { return (System.String)GetValue((int)DocumentFieldIndex.DocumentNode, true); } - set { SetValue((int)DocumentFieldIndex.DocumentNode, value); } - } - - /// The DocumentSummary property of the Entity Document

- /// Mapped on table field: "Document"."DocumentSummary"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String DocumentSummary - { - get { return (System.String)GetValue((int)DocumentFieldIndex.DocumentSummary, true); } - set { SetValue((int)DocumentFieldIndex.DocumentSummary, value); } - } - - /// The FileExtension property of the Entity Document

- /// Mapped on table field: "Document"."FileExtension"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 8
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String FileExtension - { - get { return (System.String)GetValue((int)DocumentFieldIndex.FileExtension, true); } - set { SetValue((int)DocumentFieldIndex.FileExtension, value); } - } - - /// The FileName property of the Entity Document

- /// Mapped on table field: "Document"."FileName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 400
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String FileName - { - get { return (System.String)GetValue((int)DocumentFieldIndex.FileName, true); } - set { SetValue((int)DocumentFieldIndex.FileName, value); } - } - - /// The FolderFlag property of the Entity Document

- /// Mapped on table field: "Document"."FolderFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean FolderFlag - { - get { return (System.Boolean)GetValue((int)DocumentFieldIndex.FolderFlag, true); } - set { SetValue((int)DocumentFieldIndex.FolderFlag, value); } - } - - /// The ModifiedDate property of the Entity Document

- /// Mapped on table field: "Document"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)DocumentFieldIndex.ModifiedDate, true); } - set { SetValue((int)DocumentFieldIndex.ModifiedDate, value); } - } - - /// The Owner property of the Entity Document

- /// Mapped on table field: "Document"."Owner"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 Owner - { - get { return (System.Int32)GetValue((int)DocumentFieldIndex.Owner, true); } - set { SetValue((int)DocumentFieldIndex.Owner, value); } - } - - /// The Revision property of the Entity Document

- /// Mapped on table field: "Document"."Revision"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 5
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Revision - { - get { return (System.String)GetValue((int)DocumentFieldIndex.Revision, true); } - set { SetValue((int)DocumentFieldIndex.Revision, value); } - } - - /// The Rowguid property of the Entity Document

- /// Mapped on table field: "Document"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)DocumentFieldIndex.Rowguid, true); } - set { SetValue((int)DocumentFieldIndex.Rowguid, value); } - } - - /// The Status property of the Entity Document

- /// Mapped on table field: "Document"."Status"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte Status - { - get { return (System.Byte)GetValue((int)DocumentFieldIndex.Status, true); } - set { SetValue((int)DocumentFieldIndex.Status, value); } - } - - /// The Title property of the Entity Document

- /// Mapped on table field: "Document"."Title"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Title - { - get { return (System.String)GetValue((int)DocumentFieldIndex.Title, true); } - set { SetValue((int)DocumentFieldIndex.Title, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductDocumentEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductDocumentEntity))] - public virtual EntityCollection ProductDocuments - { - get { return GetOrCreateEntityCollection("Document", true, false, ref _productDocuments); } - } - - /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual EmployeeEntity Employee - { - get { return _employee; } - set - { - if(this.IsDeserializing) - { - SetupSyncEmployee(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Documents", "Employee", _employee, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs deleted file mode 100644 index 65a443e5..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs +++ /dev/null @@ -1,553 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'EmailAddress'.

- [Serializable] - public partial class EmailAddressEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private PersonEntity _person; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Person - public static readonly string Person = "Person"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static EmailAddressEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public EmailAddressEntity():base("EmailAddressEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public EmailAddressEntity(IEntityFields2 fields):base("EmailAddressEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this EmailAddressEntity - public EmailAddressEntity(IValidator validator):base("EmailAddressEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for EmailAddress which data should be fetched into this EmailAddress object - /// PK value for EmailAddress which data should be fetched into this EmailAddress object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmailAddressEntity(System.Int32 businessEntityId, System.Int32 emailAddressId):base("EmailAddressEntity") - { - InitClassEmpty(null, null); - this.BusinessEntityId = businessEntityId; - this.EmailAddressId = emailAddressId; - } - - /// CTor - /// PK value for EmailAddress which data should be fetched into this EmailAddress object - /// PK value for EmailAddress which data should be fetched into this EmailAddress object - /// The custom validator object for this EmailAddressEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmailAddressEntity(System.Int32 businessEntityId, System.Int32 emailAddressId, IValidator validator):base("EmailAddressEntity") - { - InitClassEmpty(validator, null); - this.BusinessEntityId = businessEntityId; - this.EmailAddressId = emailAddressId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected EmailAddressEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((EmailAddressFieldIndex)fieldIndex) - { - case EmailAddressFieldIndex.BusinessEntityId: - DesetupSyncPerson(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Person": - this.Person = (PersonEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Person": - toReturn.Add(Relations.PersonEntityUsingBusinessEntityId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Person": - SetupSyncPerson(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Person": - DesetupSyncPerson(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_person!=null) - { - toReturn.Add(_person); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new EmailAddressRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(EmailAddressEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Person", _person); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BusinessEntityId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmailAddressId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmailAddressValue", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "EmailAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmailAddressRelations.PersonEntityUsingBusinessEntityIdStatic, true, new int[] { (int)EmailAddressFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "EmailAddresses", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmailAddressRelations.PersonEntityUsingBusinessEntityIdStatic, true, new string[] { }, new int[] { (int)EmailAddressFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this EmailAddressEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static EmailAddressRelations Relations - { - get { return new EmailAddressRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmailAddressEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The BusinessEntityId property of the Entity EmailAddress

- /// Mapped on table field: "EmailAddress"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 BusinessEntityId - { - get { return (System.Int32)GetValue((int)EmailAddressFieldIndex.BusinessEntityId, true); } - set { SetValue((int)EmailAddressFieldIndex.BusinessEntityId, value); } - } - - /// The EmailAddressId property of the Entity EmailAddress

- /// Mapped on table field: "EmailAddress"."EmailAddressID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 EmailAddressId - { - get { return (System.Int32)GetValue((int)EmailAddressFieldIndex.EmailAddressId, true); } - set { SetValue((int)EmailAddressFieldIndex.EmailAddressId, value); } - } - - /// The EmailAddressValue property of the Entity EmailAddress

- /// Mapped on table field: "EmailAddress"."EmailAddress"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String EmailAddressValue - { - get { return (System.String)GetValue((int)EmailAddressFieldIndex.EmailAddressValue, true); } - set { SetValue((int)EmailAddressFieldIndex.EmailAddressValue, value); } - } - - /// The ModifiedDate property of the Entity EmailAddress

- /// Mapped on table field: "EmailAddress"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)EmailAddressFieldIndex.ModifiedDate, true); } - set { SetValue((int)EmailAddressFieldIndex.ModifiedDate, value); } - } - - /// The Rowguid property of the Entity EmailAddress

- /// Mapped on table field: "EmailAddress"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)EmailAddressFieldIndex.Rowguid, true); } - set { SetValue((int)EmailAddressFieldIndex.Rowguid, value); } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "EmailAddresses", "Person", _person, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmailAddressEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs deleted file mode 100644 index 399eb328..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs +++ /dev/null @@ -1,753 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'EmployeeDepartmentHistory'.

- [Serializable] - public partial class EmployeeDepartmentHistoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private DepartmentEntity _department; - private EmployeeEntity _employee; - private ShiftEntity _shift; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Department - public static readonly string Department = "Department"; - /// Member name Employee - public static readonly string Employee = "Employee"; - /// Member name Shift - public static readonly string Shift = "Shift"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static EmployeeDepartmentHistoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public EmployeeDepartmentHistoryEntity():base("EmployeeDepartmentHistoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public EmployeeDepartmentHistoryEntity(IEntityFields2 fields):base("EmployeeDepartmentHistoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this EmployeeDepartmentHistoryEntity - public EmployeeDepartmentHistoryEntity(IValidator validator):base("EmployeeDepartmentHistoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmployeeDepartmentHistoryEntity(System.Int16 departmentId, System.Int32 employeeId, System.Byte shiftId, System.DateTime startDate):base("EmployeeDepartmentHistoryEntity") - { - InitClassEmpty(null, null); - this.DepartmentId = departmentId; - this.EmployeeId = employeeId; - this.ShiftId = shiftId; - this.StartDate = startDate; - } - - /// CTor - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object - /// The custom validator object for this EmployeeDepartmentHistoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmployeeDepartmentHistoryEntity(System.Int16 departmentId, System.Int32 employeeId, System.Byte shiftId, System.DateTime startDate, IValidator validator):base("EmployeeDepartmentHistoryEntity") - { - InitClassEmpty(validator, null); - this.DepartmentId = departmentId; - this.EmployeeId = employeeId; - this.ShiftId = shiftId; - this.StartDate = startDate; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected EmployeeDepartmentHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _department = (DepartmentEntity)info.GetValue("_department", typeof(DepartmentEntity)); - if(_department!=null) - { - _department.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); - if(_employee!=null) - { - _employee.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _shift = (ShiftEntity)info.GetValue("_shift", typeof(ShiftEntity)); - if(_shift!=null) - { - _shift.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((EmployeeDepartmentHistoryFieldIndex)fieldIndex) - { - case EmployeeDepartmentHistoryFieldIndex.DepartmentId: - DesetupSyncDepartment(true, false); - break; - case EmployeeDepartmentHistoryFieldIndex.EmployeeId: - DesetupSyncEmployee(true, false); - break; - case EmployeeDepartmentHistoryFieldIndex.ShiftId: - DesetupSyncShift(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Department": - this.Department = (DepartmentEntity)entity; - break; - case "Employee": - this.Employee = (EmployeeEntity)entity; - break; - case "Shift": - this.Shift = (ShiftEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Department": - toReturn.Add(Relations.DepartmentEntityUsingDepartmentId); - break; - case "Employee": - toReturn.Add(Relations.EmployeeEntityUsingEmployeeId); - break; - case "Shift": - toReturn.Add(Relations.ShiftEntityUsingShiftId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Department": - SetupSyncDepartment(relatedEntity); - break; - case "Employee": - SetupSyncEmployee(relatedEntity); - break; - case "Shift": - SetupSyncShift(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Department": - DesetupSyncDepartment(false, true); - break; - case "Employee": - DesetupSyncEmployee(false, true); - break; - case "Shift": - DesetupSyncShift(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_department!=null) - { - toReturn.Add(_department); - } - if(_employee!=null) - { - toReturn.Add(_employee); - } - if(_shift!=null) - { - toReturn.Add(_shift); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_department", (!this.MarkedForDeletion?_department:null)); - info.AddValue("_employee", (!this.MarkedForDeletion?_employee:null)); - info.AddValue("_shift", (!this.MarkedForDeletion?_shift:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new EmployeeDepartmentHistoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Department' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoDepartment() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(DepartmentFields.DepartmentId, null, ComparisonOperator.Equal, this.DepartmentId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployee() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Shift' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoShift() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ShiftFields.ShiftId, null, ComparisonOperator.Equal, this.ShiftId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(EmployeeDepartmentHistoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Department", _department); - toReturn.Add("Employee", _employee); - toReturn.Add("Shift", _shift); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DepartmentId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmployeeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShiftId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartDate", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _department - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncDepartment(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _department, new PropertyChangedEventHandler(OnDepartmentPropertyChanged), "Department", "EmployeeDepartmentHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeDepartmentHistoryRelations.DepartmentEntityUsingDepartmentIdStatic, true, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.DepartmentId }); - } - - /// setups the sync logic for member _department - /// Instance to set as the related entity of type entityType - private void SetupSyncDepartment(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _department, new PropertyChangedEventHandler( OnDepartmentPropertyChanged ), "Department", "EmployeeDepartmentHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeDepartmentHistoryRelations.DepartmentEntityUsingDepartmentIdStatic, true, new string[] { }, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.DepartmentId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnDepartmentPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _employee - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncEmployee(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _employee, new PropertyChangedEventHandler(OnEmployeePropertyChanged), "Employee", "EmployeeDepartmentHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeDepartmentHistoryRelations.EmployeeEntityUsingEmployeeIdStatic, true, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.EmployeeId }); - } - - /// setups the sync logic for member _employee - /// Instance to set as the related entity of type entityType - private void SetupSyncEmployee(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _employee, new PropertyChangedEventHandler( OnEmployeePropertyChanged ), "Employee", "EmployeeDepartmentHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeDepartmentHistoryRelations.EmployeeEntityUsingEmployeeIdStatic, true, new string[] { }, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.EmployeeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnEmployeePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _shift - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncShift(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _shift, new PropertyChangedEventHandler(OnShiftPropertyChanged), "Shift", "EmployeeDepartmentHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeDepartmentHistoryRelations.ShiftEntityUsingShiftIdStatic, true, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.ShiftId }); - } - - /// setups the sync logic for member _shift - /// Instance to set as the related entity of type entityType - private void SetupSyncShift(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _shift, new PropertyChangedEventHandler( OnShiftPropertyChanged ), "Shift", "EmployeeDepartmentHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeDepartmentHistoryRelations.ShiftEntityUsingShiftIdStatic, true, new string[] { }, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.ShiftId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnShiftPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this EmployeeDepartmentHistoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static EmployeeDepartmentHistoryRelations Relations - { - get { return new EmployeeDepartmentHistoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Department' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathDepartment - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(DepartmentEntityFactory))), (IEntityRelation)GetRelationsForField("Department")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.DepartmentEntity, 0, null, null, null, null, "Department", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployee - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory))), (IEntityRelation)GetRelationsForField("Employee")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, 0, null, null, null, null, "Employee", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Shift' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathShift - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ShiftEntityFactory))), (IEntityRelation)GetRelationsForField("Shift")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShiftEntity, 0, null, null, null, null, "Shift", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The DepartmentId property of the Entity EmployeeDepartmentHistory

- /// Mapped on table field: "EmployeeDepartmentHistory"."DepartmentID"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int16 DepartmentId - { - get { return (System.Int16)GetValue((int)EmployeeDepartmentHistoryFieldIndex.DepartmentId, true); } - set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.DepartmentId, value); } - } - - /// The EmployeeId property of the Entity EmployeeDepartmentHistory

- /// Mapped on table field: "EmployeeDepartmentHistory"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 EmployeeId - { - get { return (System.Int32)GetValue((int)EmployeeDepartmentHistoryFieldIndex.EmployeeId, true); } - set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.EmployeeId, value); } - } - - /// The EndDate property of the Entity EmployeeDepartmentHistory

- /// Mapped on table field: "EmployeeDepartmentHistory"."EndDate"
- /// Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable EndDate - { - get { return (Nullable)GetValue((int)EmployeeDepartmentHistoryFieldIndex.EndDate, false); } - set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.EndDate, value); } - } - - /// The ModifiedDate property of the Entity EmployeeDepartmentHistory

- /// Mapped on table field: "EmployeeDepartmentHistory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)EmployeeDepartmentHistoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.ModifiedDate, value); } - } - - /// The ShiftId property of the Entity EmployeeDepartmentHistory

- /// Mapped on table field: "EmployeeDepartmentHistory"."ShiftID"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Byte ShiftId - { - get { return (System.Byte)GetValue((int)EmployeeDepartmentHistoryFieldIndex.ShiftId, true); } - set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.ShiftId, value); } - } - - /// The StartDate property of the Entity EmployeeDepartmentHistory

- /// Mapped on table field: "EmployeeDepartmentHistory"."StartDate"
- /// Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.DateTime StartDate - { - get { return (System.DateTime)GetValue((int)EmployeeDepartmentHistoryFieldIndex.StartDate, true); } - set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.StartDate, value); } - } - - /// Gets / sets related entity of type 'DepartmentEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual DepartmentEntity Department - { - get { return _department; } - set - { - if(this.IsDeserializing) - { - SetupSyncDepartment(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "EmployeeDepartmentHistories", "Department", _department, true); - } - } - } - - /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual EmployeeEntity Employee - { - get { return _employee; } - set - { - if(this.IsDeserializing) - { - SetupSyncEmployee(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "EmployeeDepartmentHistories", "Employee", _employee, true); - } - } - } - - /// Gets / sets related entity of type 'ShiftEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ShiftEntity Shift - { - get { return _shift; } - set - { - if(this.IsDeserializing) - { - SetupSyncShift(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "EmployeeDepartmentHistories", "Shift", _shift, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeEntity.cs deleted file mode 100644 index a351c854..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeeEntity.cs +++ /dev/null @@ -1,1040 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Employee'.

- [Serializable] - public partial class EmployeeEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _documents; - private EntityCollection _employeeDepartmentHistories; - private EntityCollection _employeePayHistories; - private EntityCollection _jobCandidates; - private EntityCollection _purchaseOrderHeaders; - private PersonEntity _person; - private SalesPersonEntity _salesPerson; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Documents - public static readonly string Documents = "Documents"; - /// Member name EmployeeDepartmentHistories - public static readonly string EmployeeDepartmentHistories = "EmployeeDepartmentHistories"; - /// Member name EmployeePayHistories - public static readonly string EmployeePayHistories = "EmployeePayHistories"; - /// Member name JobCandidates - public static readonly string JobCandidates = "JobCandidates"; - /// Member name PurchaseOrderHeaders - public static readonly string PurchaseOrderHeaders = "PurchaseOrderHeaders"; - /// Member name Person - public static readonly string Person = "Person"; - /// Member name SalesPerson - public static readonly string SalesPerson = "SalesPerson"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static EmployeeEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public EmployeeEntity():base("EmployeeEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public EmployeeEntity(IEntityFields2 fields):base("EmployeeEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this EmployeeEntity - public EmployeeEntity(IValidator validator):base("EmployeeEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Employee which data should be fetched into this Employee object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmployeeEntity(System.Int32 employeeId):base("EmployeeEntity") - { - InitClassEmpty(null, null); - this.EmployeeId = employeeId; - } - - /// CTor - /// PK value for Employee which data should be fetched into this Employee object - /// The custom validator object for this EmployeeEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmployeeEntity(System.Int32 employeeId, IValidator validator):base("EmployeeEntity") - { - InitClassEmpty(validator, null); - this.EmployeeId = employeeId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected EmployeeEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _documents = (EntityCollection)info.GetValue("_documents", typeof(EntityCollection)); - _employeeDepartmentHistories = (EntityCollection)info.GetValue("_employeeDepartmentHistories", typeof(EntityCollection)); - _employeePayHistories = (EntityCollection)info.GetValue("_employeePayHistories", typeof(EntityCollection)); - _jobCandidates = (EntityCollection)info.GetValue("_jobCandidates", typeof(EntityCollection)); - _purchaseOrderHeaders = (EntityCollection)info.GetValue("_purchaseOrderHeaders", typeof(EntityCollection)); - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _salesPerson = (SalesPersonEntity)info.GetValue("_salesPerson", typeof(SalesPersonEntity)); - if(_salesPerson!=null) - { - _salesPerson.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((EmployeeFieldIndex)fieldIndex) - { - case EmployeeFieldIndex.EmployeeId: - DesetupSyncPerson(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Documents": - this.Documents.Add((DocumentEntity)entity); - break; - case "EmployeeDepartmentHistories": - this.EmployeeDepartmentHistories.Add((EmployeeDepartmentHistoryEntity)entity); - break; - case "EmployeePayHistories": - this.EmployeePayHistories.Add((EmployeePayHistoryEntity)entity); - break; - case "JobCandidates": - this.JobCandidates.Add((JobCandidateEntity)entity); - break; - case "PurchaseOrderHeaders": - this.PurchaseOrderHeaders.Add((PurchaseOrderHeaderEntity)entity); - break; - case "Person": - this.Person = (PersonEntity)entity; - break; - case "SalesPerson": - this.SalesPerson = (SalesPersonEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Documents": - toReturn.Add(Relations.DocumentEntityUsingOwner); - 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 "Person": - toReturn.Add(Relations.PersonEntityUsingEmployeeId); - break; - case "SalesPerson": - toReturn.Add(Relations.SalesPersonEntityUsingSalesPersonId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Documents": - this.Documents.Add((DocumentEntity)relatedEntity); - break; - case "EmployeeDepartmentHistories": - this.EmployeeDepartmentHistories.Add((EmployeeDepartmentHistoryEntity)relatedEntity); - break; - case "EmployeePayHistories": - this.EmployeePayHistories.Add((EmployeePayHistoryEntity)relatedEntity); - break; - case "JobCandidates": - this.JobCandidates.Add((JobCandidateEntity)relatedEntity); - break; - case "PurchaseOrderHeaders": - this.PurchaseOrderHeaders.Add((PurchaseOrderHeaderEntity)relatedEntity); - break; - case "Person": - SetupSyncPerson(relatedEntity); - break; - case "SalesPerson": - SetupSyncSalesPerson(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Documents": - this.PerformRelatedEntityRemoval(this.Documents, relatedEntity, signalRelatedEntityManyToOne); - break; - case "EmployeeDepartmentHistories": - this.PerformRelatedEntityRemoval(this.EmployeeDepartmentHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "EmployeePayHistories": - this.PerformRelatedEntityRemoval(this.EmployeePayHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "JobCandidates": - this.PerformRelatedEntityRemoval(this.JobCandidates, relatedEntity, signalRelatedEntityManyToOne); - break; - case "PurchaseOrderHeaders": - this.PerformRelatedEntityRemoval(this.PurchaseOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - case "Person": - DesetupSyncPerson(false, true); - break; - case "SalesPerson": - DesetupSyncSalesPerson(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - - - if(_salesPerson!=null) - { - toReturn.Add(_salesPerson); - } - - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_person!=null) - { - toReturn.Add(_person); - } - - - - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.Documents); - toReturn.Add(this.EmployeeDepartmentHistories); - toReturn.Add(this.EmployeePayHistories); - toReturn.Add(this.JobCandidates); - toReturn.Add(this.PurchaseOrderHeaders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_documents", ((_documents!=null) && (_documents.Count>0) && !this.MarkedForDeletion)?_documents:null); - info.AddValue("_employeeDepartmentHistories", ((_employeeDepartmentHistories!=null) && (_employeeDepartmentHistories.Count>0) && !this.MarkedForDeletion)?_employeeDepartmentHistories:null); - info.AddValue("_employeePayHistories", ((_employeePayHistories!=null) && (_employeePayHistories.Count>0) && !this.MarkedForDeletion)?_employeePayHistories:null); - info.AddValue("_jobCandidates", ((_jobCandidates!=null) && (_jobCandidates.Count>0) && !this.MarkedForDeletion)?_jobCandidates:null); - info.AddValue("_purchaseOrderHeaders", ((_purchaseOrderHeaders!=null) && (_purchaseOrderHeaders.Count>0) && !this.MarkedForDeletion)?_purchaseOrderHeaders:null); - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - info.AddValue("_salesPerson", (!this.MarkedForDeletion?_salesPerson:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new EmployeeRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Document' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoDocuments() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(DocumentFields.Owner, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeeDepartmentHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployeeDepartmentHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeDepartmentHistoryFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeePayHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployeePayHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeePayHistoryFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'JobCandidate' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoJobCandidates() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(JobCandidateFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PurchaseOrderHeaderFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesPersonFields.SalesPersonId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._documents); - collectionsQueue.Enqueue(this._employeeDepartmentHistories); - collectionsQueue.Enqueue(this._employeePayHistories); - collectionsQueue.Enqueue(this._jobCandidates); - collectionsQueue.Enqueue(this._purchaseOrderHeaders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._documents = (EntityCollection) collectionsQueue.Dequeue(); - this._employeeDepartmentHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._employeePayHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._jobCandidates = (EntityCollection) collectionsQueue.Dequeue(); - this._purchaseOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._documents != null); - toReturn |=(this._employeeDepartmentHistories != null); - toReturn |=(this._employeePayHistories != null); - toReturn |=(this._jobCandidates != null); - toReturn |=(this._purchaseOrderHeaders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(DocumentEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeDepartmentHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeePayHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(JobCandidateEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Documents", _documents); - toReturn.Add("EmployeeDepartmentHistories", _employeeDepartmentHistories); - toReturn.Add("EmployeePayHistories", _employeePayHistories); - toReturn.Add("JobCandidates", _jobCandidates); - toReturn.Add("PurchaseOrderHeaders", _purchaseOrderHeaders); - toReturn.Add("Person", _person); - toReturn.Add("SalesPerson", _salesPerson); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BirthDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CurrentFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmployeeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Gender", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("HireDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LoginId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("MaritalStatus", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("NationalIdnumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OrganizationLevel", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OrganizationNode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalariedFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SickLeaveHours", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Title", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("VacationHours", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "Employee", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeRelations.PersonEntityUsingEmployeeIdStatic, true, new int[] { (int)EmployeeFieldIndex.EmployeeId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "Employee", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeRelations.PersonEntityUsingEmployeeIdStatic, true, new string[] { }, new int[] { (int)EmployeeFieldIndex.EmployeeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _salesPerson - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _salesPerson, new PropertyChangedEventHandler(OnSalesPersonPropertyChanged), "SalesPerson", "Employee", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeRelations.SalesPersonEntityUsingSalesPersonIdStatic, false, new int[] { (int)EmployeeFieldIndex.EmployeeId }); - } - - /// setups the sync logic for member _salesPerson - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesPerson, new PropertyChangedEventHandler( OnSalesPersonPropertyChanged ), "SalesPerson", "Employee", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeeRelations.SalesPersonEntityUsingSalesPersonIdStatic, false, new string[] { }, new int[] { (int)EmployeeFieldIndex.EmployeeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this EmployeeEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static EmployeeRelations Relations - { - get { return new EmployeeRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Document' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathDocuments - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(DocumentEntityFactory))), (IEntityRelation)GetRelationsForField("Documents")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity, 0, null, null, null, null, "Documents", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeeDepartmentHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployeeDepartmentHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeDepartmentHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("EmployeeDepartmentHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity, 0, null, null, null, null, "EmployeeDepartmentHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeePayHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployeePayHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeePayHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("EmployeePayHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeePayHistoryEntity, 0, null, null, null, null, "EmployeePayHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'JobCandidate' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathJobCandidates - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(JobCandidateEntityFactory))), (IEntityRelation)GetRelationsForField("JobCandidates")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.JobCandidateEntity, 0, null, null, null, null, "JobCandidates", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("PurchaseOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, 0, null, null, null, null, "PurchaseOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesPerson")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, 0, null, null, null, null, "SalesPerson", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The BirthDate property of the Entity Employee

- /// Mapped on table field: "Employee"."BirthDate"
- /// Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime BirthDate - { - get { return (System.DateTime)GetValue((int)EmployeeFieldIndex.BirthDate, true); } - set { SetValue((int)EmployeeFieldIndex.BirthDate, value); } - } - - /// The CurrentFlag property of the Entity Employee

- /// Mapped on table field: "Employee"."CurrentFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean CurrentFlag - { - get { return (System.Boolean)GetValue((int)EmployeeFieldIndex.CurrentFlag, true); } - set { SetValue((int)EmployeeFieldIndex.CurrentFlag, value); } - } - - /// The EmployeeId property of the Entity Employee

- /// Mapped on table field: "Employee"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 EmployeeId - { - get { return (System.Int32)GetValue((int)EmployeeFieldIndex.EmployeeId, true); } - set { SetValue((int)EmployeeFieldIndex.EmployeeId, value); } - } - - /// The Gender property of the Entity Employee

- /// Mapped on table field: "Employee"."Gender"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Gender - { - get { return (System.String)GetValue((int)EmployeeFieldIndex.Gender, true); } - set { SetValue((int)EmployeeFieldIndex.Gender, value); } - } - - /// The HireDate property of the Entity Employee

- /// Mapped on table field: "Employee"."HireDate"
- /// Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime HireDate - { - get { return (System.DateTime)GetValue((int)EmployeeFieldIndex.HireDate, true); } - set { SetValue((int)EmployeeFieldIndex.HireDate, value); } - } - - /// The LoginId property of the Entity Employee

- /// Mapped on table field: "Employee"."LoginID"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 256
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String LoginId - { - get { return (System.String)GetValue((int)EmployeeFieldIndex.LoginId, true); } - set { SetValue((int)EmployeeFieldIndex.LoginId, value); } - } - - /// The MaritalStatus property of the Entity Employee

- /// Mapped on table field: "Employee"."MaritalStatus"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String MaritalStatus - { - get { return (System.String)GetValue((int)EmployeeFieldIndex.MaritalStatus, true); } - set { SetValue((int)EmployeeFieldIndex.MaritalStatus, value); } - } - - /// The ModifiedDate property of the Entity Employee

- /// Mapped on table field: "Employee"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)EmployeeFieldIndex.ModifiedDate, true); } - set { SetValue((int)EmployeeFieldIndex.ModifiedDate, value); } - } - - /// The NationalIdnumber property of the Entity Employee

- /// Mapped on table field: "Employee"."NationalIDNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String NationalIdnumber - { - get { return (System.String)GetValue((int)EmployeeFieldIndex.NationalIdnumber, true); } - set { SetValue((int)EmployeeFieldIndex.NationalIdnumber, value); } - } - - /// The OrganizationLevel property of the Entity Employee

- /// Mapped on table field: "Employee"."OrganizationLevel"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable OrganizationLevel - { - get { return (Nullable)GetValue((int)EmployeeFieldIndex.OrganizationLevel, false); } - - } - - /// The OrganizationNode property of the Entity Employee

- /// Mapped on table field: "Employee"."OrganizationNode"
- /// Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 892
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String OrganizationNode - { - get { return (System.String)GetValue((int)EmployeeFieldIndex.OrganizationNode, true); } - set { SetValue((int)EmployeeFieldIndex.OrganizationNode, value); } - } - - /// The Rowguid property of the Entity Employee

- /// Mapped on table field: "Employee"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)EmployeeFieldIndex.Rowguid, true); } - set { SetValue((int)EmployeeFieldIndex.Rowguid, value); } - } - - /// The SalariedFlag property of the Entity Employee

- /// Mapped on table field: "Employee"."SalariedFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean SalariedFlag - { - get { return (System.Boolean)GetValue((int)EmployeeFieldIndex.SalariedFlag, true); } - set { SetValue((int)EmployeeFieldIndex.SalariedFlag, value); } - } - - /// The SickLeaveHours property of the Entity Employee

- /// Mapped on table field: "Employee"."SickLeaveHours"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 SickLeaveHours - { - get { return (System.Int16)GetValue((int)EmployeeFieldIndex.SickLeaveHours, true); } - set { SetValue((int)EmployeeFieldIndex.SickLeaveHours, value); } - } - - /// The Title property of the Entity Employee

- /// Mapped on table field: "Employee"."JobTitle"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Title - { - get { return (System.String)GetValue((int)EmployeeFieldIndex.Title, true); } - set { SetValue((int)EmployeeFieldIndex.Title, value); } - } - - /// The VacationHours property of the Entity Employee

- /// Mapped on table field: "Employee"."VacationHours"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 VacationHours - { - get { return (System.Int16)GetValue((int)EmployeeFieldIndex.VacationHours, true); } - set { SetValue((int)EmployeeFieldIndex.VacationHours, value); } - } - - /// Gets the EntityCollection with the related entities of type 'DocumentEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(DocumentEntity))] - public virtual EntityCollection Documents - { - get { return GetOrCreateEntityCollection("Employee", true, false, ref _documents); } - } - - /// Gets the EntityCollection with the related entities of type 'EmployeeDepartmentHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(EmployeeDepartmentHistoryEntity))] - public virtual EntityCollection EmployeeDepartmentHistories - { - get { return GetOrCreateEntityCollection("Employee", true, false, ref _employeeDepartmentHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'EmployeePayHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(EmployeePayHistoryEntity))] - public virtual EntityCollection EmployeePayHistories - { - get { return GetOrCreateEntityCollection("Employee", true, false, ref _employeePayHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'JobCandidateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(JobCandidateEntity))] - public virtual EntityCollection JobCandidates - { - get { return GetOrCreateEntityCollection("Employee", true, false, ref _jobCandidates); } - } - - /// Gets the EntityCollection with the related entities of type 'PurchaseOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(PurchaseOrderHeaderEntity))] - public virtual EntityCollection PurchaseOrderHeaders - { - get { return GetOrCreateEntityCollection("Employee", true, false, ref _purchaseOrderHeaders); } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - CallSetRelatedEntityDuringDeserialization(value, "Employee"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_person !=null); - DesetupSyncPerson(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Person"); - } - } - else - { - if(_person!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Employee"); - SetupSyncPerson(value); - } - } - } - } - } - - /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual SalesPersonEntity SalesPerson - { - get { return _salesPerson; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesPerson(value); - CallSetRelatedEntityDuringDeserialization(value, "Employee"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_salesPerson !=null); - DesetupSyncSalesPerson(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("SalesPerson"); - } - } - else - { - if(_salesPerson!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Employee"); - SetupSyncSalesPerson(value); - } - } - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs deleted file mode 100644 index 52613f25..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs +++ /dev/null @@ -1,553 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'EmployeePayHistory'.

- [Serializable] - public partial class EmployeePayHistoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EmployeeEntity _employee; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Employee - public static readonly string Employee = "Employee"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static EmployeePayHistoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public EmployeePayHistoryEntity():base("EmployeePayHistoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public EmployeePayHistoryEntity(IEntityFields2 fields):base("EmployeePayHistoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this EmployeePayHistoryEntity - public EmployeePayHistoryEntity(IValidator validator):base("EmployeePayHistoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object - /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmployeePayHistoryEntity(System.Int32 employeeId, System.DateTime rateChangeDate):base("EmployeePayHistoryEntity") - { - InitClassEmpty(null, null); - this.EmployeeId = employeeId; - this.RateChangeDate = rateChangeDate; - } - - /// CTor - /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object - /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object - /// The custom validator object for this EmployeePayHistoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public EmployeePayHistoryEntity(System.Int32 employeeId, System.DateTime rateChangeDate, IValidator validator):base("EmployeePayHistoryEntity") - { - InitClassEmpty(validator, null); - this.EmployeeId = employeeId; - this.RateChangeDate = rateChangeDate; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected EmployeePayHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); - if(_employee!=null) - { - _employee.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((EmployeePayHistoryFieldIndex)fieldIndex) - { - case EmployeePayHistoryFieldIndex.EmployeeId: - DesetupSyncEmployee(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Employee": - this.Employee = (EmployeeEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Employee": - toReturn.Add(Relations.EmployeeEntityUsingEmployeeId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Employee": - SetupSyncEmployee(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Employee": - DesetupSyncEmployee(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_employee!=null) - { - toReturn.Add(_employee); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_employee", (!this.MarkedForDeletion?_employee:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new EmployeePayHistoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployee() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(EmployeePayHistoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Employee", _employee); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmployeeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PayFrequency", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("RateChangeDate", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _employee - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncEmployee(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _employee, new PropertyChangedEventHandler(OnEmployeePropertyChanged), "Employee", "EmployeePayHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeePayHistoryRelations.EmployeeEntityUsingEmployeeIdStatic, true, new int[] { (int)EmployeePayHistoryFieldIndex.EmployeeId }); - } - - /// setups the sync logic for member _employee - /// Instance to set as the related entity of type entityType - private void SetupSyncEmployee(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _employee, new PropertyChangedEventHandler( OnEmployeePropertyChanged ), "Employee", "EmployeePayHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticEmployeePayHistoryRelations.EmployeeEntityUsingEmployeeIdStatic, true, new string[] { }, new int[] { (int)EmployeePayHistoryFieldIndex.EmployeeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnEmployeePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this EmployeePayHistoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static EmployeePayHistoryRelations Relations - { - get { return new EmployeePayHistoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployee - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory))), (IEntityRelation)GetRelationsForField("Employee")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeePayHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, 0, null, null, null, null, "Employee", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The EmployeeId property of the Entity EmployeePayHistory

- /// Mapped on table field: "EmployeePayHistory"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 EmployeeId - { - get { return (System.Int32)GetValue((int)EmployeePayHistoryFieldIndex.EmployeeId, true); } - set { SetValue((int)EmployeePayHistoryFieldIndex.EmployeeId, value); } - } - - /// The ModifiedDate property of the Entity EmployeePayHistory

- /// Mapped on table field: "EmployeePayHistory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)EmployeePayHistoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)EmployeePayHistoryFieldIndex.ModifiedDate, value); } - } - - /// The PayFrequency property of the Entity EmployeePayHistory

- /// Mapped on table field: "EmployeePayHistory"."PayFrequency"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte PayFrequency - { - get { return (System.Byte)GetValue((int)EmployeePayHistoryFieldIndex.PayFrequency, true); } - set { SetValue((int)EmployeePayHistoryFieldIndex.PayFrequency, value); } - } - - /// The Rate property of the Entity EmployeePayHistory

- /// Mapped on table field: "EmployeePayHistory"."Rate"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal Rate - { - get { return (System.Decimal)GetValue((int)EmployeePayHistoryFieldIndex.Rate, true); } - set { SetValue((int)EmployeePayHistoryFieldIndex.Rate, value); } - } - - /// The RateChangeDate property of the Entity EmployeePayHistory

- /// Mapped on table field: "EmployeePayHistory"."RateChangeDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.DateTime RateChangeDate - { - get { return (System.DateTime)GetValue((int)EmployeePayHistoryFieldIndex.RateChangeDate, true); } - set { SetValue((int)EmployeePayHistoryFieldIndex.RateChangeDate, value); } - } - - /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual EmployeeEntity Employee - { - get { return _employee; } - set - { - if(this.IsDeserializing) - { - SetupSyncEmployee(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "EmployeePayHistories", "Employee", _employee, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeePayHistoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/IllustrationEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/IllustrationEntity.cs deleted file mode 100644 index 9fc758d0..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/IllustrationEntity.cs +++ /dev/null @@ -1,469 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Illustration'.

- [Serializable] - public partial class IllustrationEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productModelIllustrations; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductModelIllustrations - public static readonly string ProductModelIllustrations = "ProductModelIllustrations"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static IllustrationEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public IllustrationEntity():base("IllustrationEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public IllustrationEntity(IEntityFields2 fields):base("IllustrationEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this IllustrationEntity - public IllustrationEntity(IValidator validator):base("IllustrationEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Illustration which data should be fetched into this Illustration object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public IllustrationEntity(System.Int32 illustrationId):base("IllustrationEntity") - { - InitClassEmpty(null, null); - this.IllustrationId = illustrationId; - } - - /// CTor - /// PK value for Illustration which data should be fetched into this Illustration object - /// The custom validator object for this IllustrationEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public IllustrationEntity(System.Int32 illustrationId, IValidator validator):base("IllustrationEntity") - { - InitClassEmpty(validator, null); - this.IllustrationId = illustrationId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected IllustrationEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productModelIllustrations = (EntityCollection)info.GetValue("_productModelIllustrations", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductModelIllustrations": - this.ProductModelIllustrations.Add((ProductModelIllustrationEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ProductModelIllustrations": - toReturn.Add(Relations.ProductModelIllustrationEntityUsingIllustrationId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductModelIllustrations": - this.ProductModelIllustrations.Add((ProductModelIllustrationEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductModelIllustrations": - this.PerformRelatedEntityRemoval(this.ProductModelIllustrations, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductModelIllustrations); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productModelIllustrations", ((_productModelIllustrations!=null) && (_productModelIllustrations.Count>0) && !this.MarkedForDeletion)?_productModelIllustrations:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new IllustrationRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelIllustration' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModelIllustrations() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelIllustrationFields.IllustrationId, null, ComparisonOperator.Equal, this.IllustrationId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(IllustrationEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productModelIllustrations); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productModelIllustrations = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productModelIllustrations != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelIllustrationEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductModelIllustrations", _productModelIllustrations); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Diagram", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("IllustrationId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this IllustrationEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static IllustrationRelations Relations - { - get { return new IllustrationRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelIllustration' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModelIllustrations - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelIllustrationEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModelIllustrations")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.IllustrationEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity, 0, null, null, null, null, "ProductModelIllustrations", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Diagram property of the Entity Illustration

- /// Mapped on table field: "Illustration"."Diagram"
- /// Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Diagram - { - get { return (System.String)GetValue((int)IllustrationFieldIndex.Diagram, true); } - set { SetValue((int)IllustrationFieldIndex.Diagram, value); } - } - - /// The IllustrationId property of the Entity Illustration

- /// Mapped on table field: "Illustration"."IllustrationID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 IllustrationId - { - get { return (System.Int32)GetValue((int)IllustrationFieldIndex.IllustrationId, true); } - set { SetValue((int)IllustrationFieldIndex.IllustrationId, value); } - } - - /// The ModifiedDate property of the Entity Illustration

- /// Mapped on table field: "Illustration"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)IllustrationFieldIndex.ModifiedDate, true); } - set { SetValue((int)IllustrationFieldIndex.ModifiedDate, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductModelIllustrationEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductModelIllustrationEntity))] - public virtual EntityCollection ProductModelIllustrations - { - get { return GetOrCreateEntityCollection("Illustration", true, false, ref _productModelIllustrations); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.IllustrationEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs deleted file mode 100644 index a6dacef8..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs +++ /dev/null @@ -1,537 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'JobCandidate'.

- [Serializable] - public partial class JobCandidateEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EmployeeEntity _employee; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Employee - public static readonly string Employee = "Employee"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static JobCandidateEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public JobCandidateEntity():base("JobCandidateEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public JobCandidateEntity(IEntityFields2 fields):base("JobCandidateEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this JobCandidateEntity - public JobCandidateEntity(IValidator validator):base("JobCandidateEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for JobCandidate which data should be fetched into this JobCandidate object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public JobCandidateEntity(System.Int32 jobCandidateId):base("JobCandidateEntity") - { - InitClassEmpty(null, null); - this.JobCandidateId = jobCandidateId; - } - - /// CTor - /// PK value for JobCandidate which data should be fetched into this JobCandidate object - /// The custom validator object for this JobCandidateEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public JobCandidateEntity(System.Int32 jobCandidateId, IValidator validator):base("JobCandidateEntity") - { - InitClassEmpty(validator, null); - this.JobCandidateId = jobCandidateId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected JobCandidateEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); - if(_employee!=null) - { - _employee.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((JobCandidateFieldIndex)fieldIndex) - { - case JobCandidateFieldIndex.EmployeeId: - DesetupSyncEmployee(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Employee": - this.Employee = (EmployeeEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Employee": - toReturn.Add(Relations.EmployeeEntityUsingEmployeeId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Employee": - SetupSyncEmployee(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Employee": - DesetupSyncEmployee(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_employee!=null) - { - toReturn.Add(_employee); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_employee", (!this.MarkedForDeletion?_employee:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new JobCandidateRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployee() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(JobCandidateEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Employee", _employee); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmployeeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("JobCandidateId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Resume", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _employee - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncEmployee(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _employee, new PropertyChangedEventHandler(OnEmployeePropertyChanged), "Employee", "JobCandidates", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticJobCandidateRelations.EmployeeEntityUsingEmployeeIdStatic, true, new int[] { (int)JobCandidateFieldIndex.EmployeeId }); - } - - /// setups the sync logic for member _employee - /// Instance to set as the related entity of type entityType - private void SetupSyncEmployee(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _employee, new PropertyChangedEventHandler( OnEmployeePropertyChanged ), "Employee", "JobCandidates", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticJobCandidateRelations.EmployeeEntityUsingEmployeeIdStatic, true, new string[] { }, new int[] { (int)JobCandidateFieldIndex.EmployeeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnEmployeePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this JobCandidateEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static JobCandidateRelations Relations - { - get { return new JobCandidateRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployee - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory))), (IEntityRelation)GetRelationsForField("Employee")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.JobCandidateEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, 0, null, null, null, null, "Employee", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The EmployeeId property of the Entity JobCandidate

- /// Mapped on table field: "JobCandidate"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable EmployeeId - { - get { return (Nullable)GetValue((int)JobCandidateFieldIndex.EmployeeId, false); } - set { SetValue((int)JobCandidateFieldIndex.EmployeeId, value); } - } - - /// The JobCandidateId property of the Entity JobCandidate

- /// Mapped on table field: "JobCandidate"."JobCandidateID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 JobCandidateId - { - get { return (System.Int32)GetValue((int)JobCandidateFieldIndex.JobCandidateId, true); } - set { SetValue((int)JobCandidateFieldIndex.JobCandidateId, value); } - } - - /// The ModifiedDate property of the Entity JobCandidate

- /// Mapped on table field: "JobCandidate"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)JobCandidateFieldIndex.ModifiedDate, true); } - set { SetValue((int)JobCandidateFieldIndex.ModifiedDate, value); } - } - - /// The Resume property of the Entity JobCandidate

- /// Mapped on table field: "JobCandidate"."Resume"
- /// Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Resume - { - get { return (System.String)GetValue((int)JobCandidateFieldIndex.Resume, true); } - set { SetValue((int)JobCandidateFieldIndex.Resume, value); } - } - - /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual EmployeeEntity Employee - { - get { return _employee; } - set - { - if(this.IsDeserializing) - { - SetupSyncEmployee(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "JobCandidates", "Employee", _employee, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.JobCandidateEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/LocationEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/LocationEntity.cs deleted file mode 100644 index 099b09de..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/LocationEntity.cs +++ /dev/null @@ -1,539 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Location'.

- [Serializable] - public partial class LocationEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productInventories; - private EntityCollection _workOrderRoutings; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductInventories - public static readonly string ProductInventories = "ProductInventories"; - /// Member name WorkOrderRoutings - public static readonly string WorkOrderRoutings = "WorkOrderRoutings"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static LocationEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public LocationEntity():base("LocationEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public LocationEntity(IEntityFields2 fields):base("LocationEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this LocationEntity - public LocationEntity(IValidator validator):base("LocationEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Location which data should be fetched into this Location object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public LocationEntity(System.Int16 locationId):base("LocationEntity") - { - InitClassEmpty(null, null); - this.LocationId = locationId; - } - - /// CTor - /// PK value for Location which data should be fetched into this Location object - /// The custom validator object for this LocationEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public LocationEntity(System.Int16 locationId, IValidator validator):base("LocationEntity") - { - InitClassEmpty(validator, null); - this.LocationId = locationId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected LocationEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productInventories = (EntityCollection)info.GetValue("_productInventories", typeof(EntityCollection)); - _workOrderRoutings = (EntityCollection)info.GetValue("_workOrderRoutings", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductInventories": - this.ProductInventories.Add((ProductInventoryEntity)entity); - break; - case "WorkOrderRoutings": - this.WorkOrderRoutings.Add((WorkOrderRoutingEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - 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; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductInventories": - this.ProductInventories.Add((ProductInventoryEntity)relatedEntity); - break; - case "WorkOrderRoutings": - this.WorkOrderRoutings.Add((WorkOrderRoutingEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductInventories": - this.PerformRelatedEntityRemoval(this.ProductInventories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "WorkOrderRoutings": - this.PerformRelatedEntityRemoval(this.WorkOrderRoutings, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductInventories); - toReturn.Add(this.WorkOrderRoutings); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productInventories", ((_productInventories!=null) && (_productInventories.Count>0) && !this.MarkedForDeletion)?_productInventories:null); - info.AddValue("_workOrderRoutings", ((_workOrderRoutings!=null) && (_workOrderRoutings.Count>0) && !this.MarkedForDeletion)?_workOrderRoutings:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new LocationRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductInventory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductInventories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductInventoryFields.LocationId, null, ComparisonOperator.Equal, this.LocationId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrderRouting' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoWorkOrderRoutings() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(WorkOrderRoutingFields.LocationId, null, ComparisonOperator.Equal, this.LocationId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(LocationEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productInventories); - collectionsQueue.Enqueue(this._workOrderRoutings); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productInventories = (EntityCollection) collectionsQueue.Dequeue(); - this._workOrderRoutings = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productInventories != null); - toReturn |=(this._workOrderRoutings != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductInventoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderRoutingEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductInventories", _productInventories); - toReturn.Add("WorkOrderRoutings", _workOrderRoutings); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Availability", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CostRate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LocationId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this LocationEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static LocationRelations Relations - { - get { return new LocationRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductInventory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductInventories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductInventoryEntityFactory))), (IEntityRelation)GetRelationsForField("ProductInventories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity, 0, null, null, null, null, "ProductInventories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrderRouting' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathWorkOrderRoutings - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderRoutingEntityFactory))), (IEntityRelation)GetRelationsForField("WorkOrderRoutings")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity, 0, null, null, null, null, "WorkOrderRoutings", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Availability property of the Entity Location

- /// Mapped on table field: "Location"."Availability"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal Availability - { - get { return (System.Decimal)GetValue((int)LocationFieldIndex.Availability, true); } - set { SetValue((int)LocationFieldIndex.Availability, value); } - } - - /// The CostRate property of the Entity Location

- /// Mapped on table field: "Location"."CostRate"
- /// Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal CostRate - { - get { return (System.Decimal)GetValue((int)LocationFieldIndex.CostRate, true); } - set { SetValue((int)LocationFieldIndex.CostRate, value); } - } - - /// The LocationId property of the Entity Location

- /// Mapped on table field: "Location"."LocationID"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int16 LocationId - { - get { return (System.Int16)GetValue((int)LocationFieldIndex.LocationId, true); } - set { SetValue((int)LocationFieldIndex.LocationId, value); } - } - - /// The ModifiedDate property of the Entity Location

- /// Mapped on table field: "Location"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)LocationFieldIndex.ModifiedDate, true); } - set { SetValue((int)LocationFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Location

- /// Mapped on table field: "Location"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)LocationFieldIndex.Name, true); } - set { SetValue((int)LocationFieldIndex.Name, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductInventoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductInventoryEntity))] - public virtual EntityCollection ProductInventories - { - get { return GetOrCreateEntityCollection("Location", true, false, ref _productInventories); } - } - - /// Gets the EntityCollection with the related entities of type 'WorkOrderRoutingEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(WorkOrderRoutingEntity))] - public virtual EntityCollection WorkOrderRoutings - { - get { return GetOrCreateEntityCollection("Location", true, false, ref _workOrderRoutings); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/PasswordEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/PasswordEntity.cs deleted file mode 100644 index 4a92734f..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/PasswordEntity.cs +++ /dev/null @@ -1,570 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Password'.

- [Serializable] - public partial class PasswordEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private PersonEntity _person; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Person - public static readonly string Person = "Person"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static PasswordEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public PasswordEntity():base("PasswordEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public PasswordEntity(IEntityFields2 fields):base("PasswordEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this PasswordEntity - public PasswordEntity(IValidator validator):base("PasswordEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Password which data should be fetched into this Password object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PasswordEntity(System.Int32 businessEntityId):base("PasswordEntity") - { - InitClassEmpty(null, null); - this.BusinessEntityId = businessEntityId; - } - - /// CTor - /// PK value for Password which data should be fetched into this Password object - /// The custom validator object for this PasswordEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PasswordEntity(System.Int32 businessEntityId, IValidator validator):base("PasswordEntity") - { - InitClassEmpty(validator, null); - this.BusinessEntityId = businessEntityId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected PasswordEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((PasswordFieldIndex)fieldIndex) - { - case PasswordFieldIndex.BusinessEntityId: - DesetupSyncPerson(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Person": - this.Person = (PersonEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Person": - toReturn.Add(Relations.PersonEntityUsingBusinessEntityId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Person": - SetupSyncPerson(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Person": - DesetupSyncPerson(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - - - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_person!=null) - { - toReturn.Add(_person); - } - - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new PasswordRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(PasswordEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Person", _person); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BusinessEntityId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PasswordHash", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PasswordSalt", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "Password", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPasswordRelations.PersonEntityUsingBusinessEntityIdStatic, true, new int[] { (int)PasswordFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "Password", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPasswordRelations.PersonEntityUsingBusinessEntityIdStatic, true, new string[] { }, new int[] { (int)PasswordFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this PasswordEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static PasswordRelations Relations - { - get { return new PasswordRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PasswordEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The BusinessEntityId property of the Entity Password

- /// Mapped on table field: "Password"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 BusinessEntityId - { - get { return (System.Int32)GetValue((int)PasswordFieldIndex.BusinessEntityId, true); } - set { SetValue((int)PasswordFieldIndex.BusinessEntityId, value); } - } - - /// The ModifiedDate property of the Entity Password

- /// Mapped on table field: "Password"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)PasswordFieldIndex.ModifiedDate, true); } - set { SetValue((int)PasswordFieldIndex.ModifiedDate, value); } - } - - /// The PasswordHash property of the Entity Password

- /// Mapped on table field: "Password"."PasswordHash"
- /// Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 128
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String PasswordHash - { - get { return (System.String)GetValue((int)PasswordFieldIndex.PasswordHash, true); } - set { SetValue((int)PasswordFieldIndex.PasswordHash, value); } - } - - /// The PasswordSalt property of the Entity Password

- /// Mapped on table field: "Password"."PasswordSalt"
- /// Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 10
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String PasswordSalt - { - get { return (System.String)GetValue((int)PasswordFieldIndex.PasswordSalt, true); } - set { SetValue((int)PasswordFieldIndex.PasswordSalt, value); } - } - - /// The Rowguid property of the Entity Password

- /// Mapped on table field: "Password"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)PasswordFieldIndex.Rowguid, true); } - set { SetValue((int)PasswordFieldIndex.Rowguid, value); } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - CallSetRelatedEntityDuringDeserialization(value, "Password"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_person !=null); - DesetupSyncPerson(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Person"); - } - } - else - { - if(_person!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Password"); - SetupSyncPerson(value); - } - } - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.PasswordEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/PersonEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/PersonEntity.cs deleted file mode 100644 index 05035607..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/PersonEntity.cs +++ /dev/null @@ -1,1112 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Person'.

- [Serializable] - public partial class PersonEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _businessEntityContacts; - private EntityCollection _contactCreditCards; - private EntityCollection _customers; - private EntityCollection _emailAddresses; - private EntityCollection _personPhones; - private BusinessEntityEntity _businessEntity; - private EmployeeEntity _employee; - private PasswordEntity _password; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name BusinessEntityContacts - public static readonly string BusinessEntityContacts = "BusinessEntityContacts"; - /// Member name ContactCreditCards - public static readonly string ContactCreditCards = "ContactCreditCards"; - /// Member name Customers - public static readonly string Customers = "Customers"; - /// Member name EmailAddresses - public static readonly string EmailAddresses = "EmailAddresses"; - /// Member name PersonPhones - public static readonly string PersonPhones = "PersonPhones"; - /// Member name BusinessEntity - public static readonly string BusinessEntity = "BusinessEntity"; - /// Member name Employee - public static readonly string Employee = "Employee"; - /// Member name Password - public static readonly string Password = "Password"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static PersonEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public PersonEntity():base("PersonEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public PersonEntity(IEntityFields2 fields):base("PersonEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this PersonEntity - public PersonEntity(IValidator validator):base("PersonEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Person which data should be fetched into this Person object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PersonEntity(System.Int32 businessEntityId):base("PersonEntity") - { - InitClassEmpty(null, null); - this.BusinessEntityId = businessEntityId; - } - - /// CTor - /// PK value for Person which data should be fetched into this Person object - /// The custom validator object for this PersonEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PersonEntity(System.Int32 businessEntityId, IValidator validator):base("PersonEntity") - { - InitClassEmpty(validator, null); - this.BusinessEntityId = businessEntityId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected PersonEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _businessEntityContacts = (EntityCollection)info.GetValue("_businessEntityContacts", typeof(EntityCollection)); - _contactCreditCards = (EntityCollection)info.GetValue("_contactCreditCards", typeof(EntityCollection)); - _customers = (EntityCollection)info.GetValue("_customers", typeof(EntityCollection)); - _emailAddresses = (EntityCollection)info.GetValue("_emailAddresses", typeof(EntityCollection)); - _personPhones = (EntityCollection)info.GetValue("_personPhones", typeof(EntityCollection)); - _businessEntity = (BusinessEntityEntity)info.GetValue("_businessEntity", typeof(BusinessEntityEntity)); - if(_businessEntity!=null) - { - _businessEntity.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); - if(_employee!=null) - { - _employee.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _password = (PasswordEntity)info.GetValue("_password", typeof(PasswordEntity)); - if(_password!=null) - { - _password.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((PersonFieldIndex)fieldIndex) - { - case PersonFieldIndex.BusinessEntityId: - DesetupSyncBusinessEntity(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "BusinessEntityContacts": - this.BusinessEntityContacts.Add((BusinessEntityContactEntity)entity); - break; - case "ContactCreditCards": - this.ContactCreditCards.Add((ContactCreditCardEntity)entity); - break; - case "Customers": - this.Customers.Add((CustomerEntity)entity); - break; - case "EmailAddresses": - this.EmailAddresses.Add((EmailAddressEntity)entity); - break; - case "PersonPhones": - this.PersonPhones.Add((PersonPhoneEntity)entity); - break; - case "BusinessEntity": - this.BusinessEntity = (BusinessEntityEntity)entity; - break; - case "Employee": - this.Employee = (EmployeeEntity)entity; - break; - case "Password": - this.Password = (PasswordEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "BusinessEntityContacts": - toReturn.Add(Relations.BusinessEntityContactEntityUsingPersonId); - break; - case "ContactCreditCards": - toReturn.Add(Relations.ContactCreditCardEntityUsingContactId); - break; - case "Customers": - toReturn.Add(Relations.CustomerEntityUsingPersonId); - break; - case "EmailAddresses": - toReturn.Add(Relations.EmailAddressEntityUsingBusinessEntityId); - break; - case "PersonPhones": - toReturn.Add(Relations.PersonPhoneEntityUsingBusinessEntityId); - break; - case "BusinessEntity": - toReturn.Add(Relations.BusinessEntityEntityUsingBusinessEntityId); - break; - case "Employee": - toReturn.Add(Relations.EmployeeEntityUsingEmployeeId); - break; - case "Password": - toReturn.Add(Relations.PasswordEntityUsingBusinessEntityId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "BusinessEntityContacts": - this.BusinessEntityContacts.Add((BusinessEntityContactEntity)relatedEntity); - break; - case "ContactCreditCards": - this.ContactCreditCards.Add((ContactCreditCardEntity)relatedEntity); - break; - case "Customers": - this.Customers.Add((CustomerEntity)relatedEntity); - break; - case "EmailAddresses": - this.EmailAddresses.Add((EmailAddressEntity)relatedEntity); - break; - case "PersonPhones": - this.PersonPhones.Add((PersonPhoneEntity)relatedEntity); - break; - case "BusinessEntity": - SetupSyncBusinessEntity(relatedEntity); - break; - case "Employee": - SetupSyncEmployee(relatedEntity); - break; - case "Password": - SetupSyncPassword(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "BusinessEntityContacts": - this.PerformRelatedEntityRemoval(this.BusinessEntityContacts, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ContactCreditCards": - this.PerformRelatedEntityRemoval(this.ContactCreditCards, relatedEntity, signalRelatedEntityManyToOne); - break; - case "Customers": - this.PerformRelatedEntityRemoval(this.Customers, relatedEntity, signalRelatedEntityManyToOne); - break; - case "EmailAddresses": - this.PerformRelatedEntityRemoval(this.EmailAddresses, relatedEntity, signalRelatedEntityManyToOne); - break; - case "PersonPhones": - this.PerformRelatedEntityRemoval(this.PersonPhones, relatedEntity, signalRelatedEntityManyToOne); - break; - case "BusinessEntity": - DesetupSyncBusinessEntity(false, true); - break; - case "Employee": - DesetupSyncEmployee(false, true); - break; - case "Password": - DesetupSyncPassword(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - - - if(_employee!=null) - { - toReturn.Add(_employee); - } - - if(_password!=null) - { - toReturn.Add(_password); - } - - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_businessEntity!=null) - { - toReturn.Add(_businessEntity); - } - - - - - - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityContacts); - toReturn.Add(this.ContactCreditCards); - toReturn.Add(this.Customers); - toReturn.Add(this.EmailAddresses); - toReturn.Add(this.PersonPhones); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_businessEntityContacts", ((_businessEntityContacts!=null) && (_businessEntityContacts.Count>0) && !this.MarkedForDeletion)?_businessEntityContacts:null); - info.AddValue("_contactCreditCards", ((_contactCreditCards!=null) && (_contactCreditCards.Count>0) && !this.MarkedForDeletion)?_contactCreditCards:null); - info.AddValue("_customers", ((_customers!=null) && (_customers.Count>0) && !this.MarkedForDeletion)?_customers:null); - info.AddValue("_emailAddresses", ((_emailAddresses!=null) && (_emailAddresses.Count>0) && !this.MarkedForDeletion)?_emailAddresses:null); - info.AddValue("_personPhones", ((_personPhones!=null) && (_personPhones.Count>0) && !this.MarkedForDeletion)?_personPhones:null); - info.AddValue("_businessEntity", (!this.MarkedForDeletion?_businessEntity:null)); - info.AddValue("_employee", (!this.MarkedForDeletion?_employee:null)); - info.AddValue("_password", (!this.MarkedForDeletion?_password:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new PersonRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityContact' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityContacts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityContactFields.PersonId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ContactCreditCard' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoContactCreditCards() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ContactCreditCardFields.ContactId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Customer' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCustomers() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CustomerFields.PersonId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmailAddress' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmailAddresses() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmailAddressFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PersonPhone' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPersonPhones() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonPhoneFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployee() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeFields.EmployeeId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Password' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPassword() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PasswordFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._businessEntityContacts); - collectionsQueue.Enqueue(this._contactCreditCards); - collectionsQueue.Enqueue(this._customers); - collectionsQueue.Enqueue(this._emailAddresses); - collectionsQueue.Enqueue(this._personPhones); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._businessEntityContacts = (EntityCollection) collectionsQueue.Dequeue(); - this._contactCreditCards = (EntityCollection) collectionsQueue.Dequeue(); - this._customers = (EntityCollection) collectionsQueue.Dequeue(); - this._emailAddresses = (EntityCollection) collectionsQueue.Dequeue(); - this._personPhones = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._businessEntityContacts != null); - toReturn |=(this._contactCreditCards != null); - toReturn |=(this._customers != null); - toReturn |=(this._emailAddresses != null); - toReturn |=(this._personPhones != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityContactEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ContactCreditCardEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmailAddressEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonPhoneEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("BusinessEntityContacts", _businessEntityContacts); - toReturn.Add("ContactCreditCards", _contactCreditCards); - toReturn.Add("Customers", _customers); - toReturn.Add("EmailAddresses", _emailAddresses); - toReturn.Add("PersonPhones", _personPhones); - toReturn.Add("BusinessEntity", _businessEntity); - toReturn.Add("Employee", _employee); - toReturn.Add("Password", _password); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AdditionalContactInfo", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BusinessEntityId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Demographics", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmailPromotion", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("FirstName", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LastName", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("MiddleName", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("NameStyle", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PersonType", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Suffix", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Title", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _businessEntity - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncBusinessEntity(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _businessEntity, new PropertyChangedEventHandler(OnBusinessEntityPropertyChanged), "BusinessEntity", "Person", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, true, new int[] { (int)PersonFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _businessEntity - /// Instance to set as the related entity of type entityType - private void SetupSyncBusinessEntity(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _businessEntity, new PropertyChangedEventHandler( OnBusinessEntityPropertyChanged ), "BusinessEntity", "Person", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, true, new string[] { }, new int[] { (int)PersonFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnBusinessEntityPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _employee - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncEmployee(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _employee, new PropertyChangedEventHandler(OnEmployeePropertyChanged), "Employee", "Person", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonRelations.EmployeeEntityUsingEmployeeIdStatic, false, new int[] { (int)PersonFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _employee - /// Instance to set as the related entity of type entityType - private void SetupSyncEmployee(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _employee, new PropertyChangedEventHandler( OnEmployeePropertyChanged ), "Employee", "Person", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonRelations.EmployeeEntityUsingEmployeeIdStatic, false, new string[] { }, new int[] { (int)PersonFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnEmployeePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _password - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPassword(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _password, new PropertyChangedEventHandler(OnPasswordPropertyChanged), "Password", "Person", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonRelations.PasswordEntityUsingBusinessEntityIdStatic, false, new int[] { (int)PersonFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _password - /// Instance to set as the related entity of type entityType - private void SetupSyncPassword(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _password, new PropertyChangedEventHandler( OnPasswordPropertyChanged ), "Password", "Person", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonRelations.PasswordEntityUsingBusinessEntityIdStatic, false, new string[] { }, new int[] { (int)PersonFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPasswordPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this PersonEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static PersonRelations Relations - { - get { return new PersonRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityContact' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntityContacts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityContactEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntityContacts")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity, 0, null, null, null, null, "BusinessEntityContacts", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ContactCreditCard' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathContactCreditCards - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ContactCreditCardEntityFactory))), (IEntityRelation)GetRelationsForField("ContactCreditCards")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity, 0, null, null, null, null, "ContactCreditCards", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCustomers - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory))), (IEntityRelation)GetRelationsForField("Customers")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, 0, null, null, null, null, "Customers", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmailAddress' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmailAddresses - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmailAddressEntityFactory))), (IEntityRelation)GetRelationsForField("EmailAddresses")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmailAddressEntity, 0, null, null, null, null, "EmailAddresses", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PersonPhone' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPersonPhones - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonPhoneEntityFactory))), (IEntityRelation)GetRelationsForField("PersonPhones")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity, 0, null, null, null, null, "PersonPhones", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntity - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntity")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, 0, null, null, null, null, "BusinessEntity", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployee - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory))), (IEntityRelation)GetRelationsForField("Employee")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, 0, null, null, null, null, "Employee", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Password' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPassword - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PasswordEntityFactory))), (IEntityRelation)GetRelationsForField("Password")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PasswordEntity, 0, null, null, null, null, "Password", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AdditionalContactInfo property of the Entity Person

- /// Mapped on table field: "Person"."AdditionalContactInfo"
- /// Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String AdditionalContactInfo - { - get { return (System.String)GetValue((int)PersonFieldIndex.AdditionalContactInfo, true); } - set { SetValue((int)PersonFieldIndex.AdditionalContactInfo, value); } - } - - /// The BusinessEntityId property of the Entity Person

- /// Mapped on table field: "Person"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 BusinessEntityId - { - get { return (System.Int32)GetValue((int)PersonFieldIndex.BusinessEntityId, true); } - set { SetValue((int)PersonFieldIndex.BusinessEntityId, value); } - } - - /// The Demographics property of the Entity Person

- /// Mapped on table field: "Person"."Demographics"
- /// Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Demographics - { - get { return (System.String)GetValue((int)PersonFieldIndex.Demographics, true); } - set { SetValue((int)PersonFieldIndex.Demographics, value); } - } - - /// The EmailPromotion property of the Entity Person

- /// Mapped on table field: "Person"."EmailPromotion"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 EmailPromotion - { - get { return (System.Int32)GetValue((int)PersonFieldIndex.EmailPromotion, true); } - set { SetValue((int)PersonFieldIndex.EmailPromotion, value); } - } - - /// The FirstName property of the Entity Person

- /// Mapped on table field: "Person"."FirstName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String FirstName - { - get { return (System.String)GetValue((int)PersonFieldIndex.FirstName, true); } - set { SetValue((int)PersonFieldIndex.FirstName, value); } - } - - /// The LastName property of the Entity Person

- /// Mapped on table field: "Person"."LastName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String LastName - { - get { return (System.String)GetValue((int)PersonFieldIndex.LastName, true); } - set { SetValue((int)PersonFieldIndex.LastName, value); } - } - - /// The MiddleName property of the Entity Person

- /// Mapped on table field: "Person"."MiddleName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String MiddleName - { - get { return (System.String)GetValue((int)PersonFieldIndex.MiddleName, true); } - set { SetValue((int)PersonFieldIndex.MiddleName, value); } - } - - /// The ModifiedDate property of the Entity Person

- /// Mapped on table field: "Person"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)PersonFieldIndex.ModifiedDate, true); } - set { SetValue((int)PersonFieldIndex.ModifiedDate, value); } - } - - /// The NameStyle property of the Entity Person

- /// Mapped on table field: "Person"."NameStyle"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean NameStyle - { - get { return (System.Boolean)GetValue((int)PersonFieldIndex.NameStyle, true); } - set { SetValue((int)PersonFieldIndex.NameStyle, value); } - } - - /// The PersonType property of the Entity Person

- /// Mapped on table field: "Person"."PersonType"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String PersonType - { - get { return (System.String)GetValue((int)PersonFieldIndex.PersonType, true); } - set { SetValue((int)PersonFieldIndex.PersonType, value); } - } - - /// The Rowguid property of the Entity Person

- /// Mapped on table field: "Person"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)PersonFieldIndex.Rowguid, true); } - set { SetValue((int)PersonFieldIndex.Rowguid, value); } - } - - /// The Suffix property of the Entity Person

- /// Mapped on table field: "Person"."Suffix"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 10
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Suffix - { - get { return (System.String)GetValue((int)PersonFieldIndex.Suffix, true); } - set { SetValue((int)PersonFieldIndex.Suffix, value); } - } - - /// The Title property of the Entity Person

- /// Mapped on table field: "Person"."Title"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 8
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Title - { - get { return (System.String)GetValue((int)PersonFieldIndex.Title, true); } - set { SetValue((int)PersonFieldIndex.Title, value); } - } - - /// Gets the EntityCollection with the related entities of type 'BusinessEntityContactEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BusinessEntityContactEntity))] - public virtual EntityCollection BusinessEntityContacts - { - get { return GetOrCreateEntityCollection("Person", true, false, ref _businessEntityContacts); } - } - - /// Gets the EntityCollection with the related entities of type 'ContactCreditCardEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ContactCreditCardEntity))] - public virtual EntityCollection ContactCreditCards - { - get { return GetOrCreateEntityCollection("Person", true, false, ref _contactCreditCards); } - } - - /// Gets the EntityCollection with the related entities of type 'CustomerEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(CustomerEntity))] - public virtual EntityCollection Customers - { - get { return GetOrCreateEntityCollection("Person", true, false, ref _customers); } - } - - /// Gets the EntityCollection with the related entities of type 'EmailAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(EmailAddressEntity))] - public virtual EntityCollection EmailAddresses - { - get { return GetOrCreateEntityCollection("Person", true, false, ref _emailAddresses); } - } - - /// Gets the EntityCollection with the related entities of type 'PersonPhoneEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(PersonPhoneEntity))] - public virtual EntityCollection PersonPhones - { - get { return GetOrCreateEntityCollection("Person", true, false, ref _personPhones); } - } - - /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual BusinessEntityEntity BusinessEntity - { - get { return _businessEntity; } - set - { - if(this.IsDeserializing) - { - SetupSyncBusinessEntity(value); - CallSetRelatedEntityDuringDeserialization(value, "Person"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_businessEntity !=null); - DesetupSyncBusinessEntity(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("BusinessEntity"); - } - } - else - { - if(_businessEntity!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Person"); - SetupSyncBusinessEntity(value); - } - } - } - } - } - - /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual EmployeeEntity Employee - { - get { return _employee; } - set - { - if(this.IsDeserializing) - { - SetupSyncEmployee(value); - CallSetRelatedEntityDuringDeserialization(value, "Person"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_employee !=null); - DesetupSyncEmployee(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Employee"); - } - } - else - { - if(_employee!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Person"); - SetupSyncEmployee(value); - } - } - } - } - } - - /// Gets / sets related entity of type 'PasswordEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual PasswordEntity Password - { - get { return _password; } - set - { - if(this.IsDeserializing) - { - SetupSyncPassword(value); - CallSetRelatedEntityDuringDeserialization(value, "Person"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_password !=null); - DesetupSyncPassword(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Password"); - } - } - else - { - if(_password!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Person"); - SetupSyncPassword(value); - } - } - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs deleted file mode 100644 index b23f7551..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs +++ /dev/null @@ -1,635 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'PersonPhone'.

- [Serializable] - public partial class PersonPhoneEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private PersonEntity _person; - private PhoneNumberTypeEntity _phoneNumberType; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Person - public static readonly string Person = "Person"; - /// Member name PhoneNumberType - public static readonly string PhoneNumberType = "PhoneNumberType"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static PersonPhoneEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public PersonPhoneEntity():base("PersonPhoneEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public PersonPhoneEntity(IEntityFields2 fields):base("PersonPhoneEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this PersonPhoneEntity - public PersonPhoneEntity(IValidator validator):base("PersonPhoneEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for PersonPhone which data should be fetched into this PersonPhone object - /// PK value for PersonPhone which data should be fetched into this PersonPhone object - /// PK value for PersonPhone which data should be fetched into this PersonPhone object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PersonPhoneEntity(System.Int32 businessEntityId, System.String phoneNumber, System.Int32 phoneNumberTypeId):base("PersonPhoneEntity") - { - InitClassEmpty(null, null); - this.BusinessEntityId = businessEntityId; - this.PhoneNumber = phoneNumber; - this.PhoneNumberTypeId = phoneNumberTypeId; - } - - /// CTor - /// PK value for PersonPhone which data should be fetched into this PersonPhone object - /// PK value for PersonPhone which data should be fetched into this PersonPhone object - /// PK value for PersonPhone which data should be fetched into this PersonPhone object - /// The custom validator object for this PersonPhoneEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PersonPhoneEntity(System.Int32 businessEntityId, System.String phoneNumber, System.Int32 phoneNumberTypeId, IValidator validator):base("PersonPhoneEntity") - { - InitClassEmpty(validator, null); - this.BusinessEntityId = businessEntityId; - this.PhoneNumber = phoneNumber; - this.PhoneNumberTypeId = phoneNumberTypeId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected PersonPhoneEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity)); - if(_person!=null) - { - _person.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _phoneNumberType = (PhoneNumberTypeEntity)info.GetValue("_phoneNumberType", typeof(PhoneNumberTypeEntity)); - if(_phoneNumberType!=null) - { - _phoneNumberType.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((PersonPhoneFieldIndex)fieldIndex) - { - case PersonPhoneFieldIndex.BusinessEntityId: - DesetupSyncPerson(true, false); - break; - case PersonPhoneFieldIndex.PhoneNumberTypeId: - DesetupSyncPhoneNumberType(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Person": - this.Person = (PersonEntity)entity; - break; - case "PhoneNumberType": - this.PhoneNumberType = (PhoneNumberTypeEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Person": - toReturn.Add(Relations.PersonEntityUsingBusinessEntityId); - break; - case "PhoneNumberType": - toReturn.Add(Relations.PhoneNumberTypeEntityUsingPhoneNumberTypeId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Person": - SetupSyncPerson(relatedEntity); - break; - case "PhoneNumberType": - SetupSyncPhoneNumberType(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Person": - DesetupSyncPerson(false, true); - break; - case "PhoneNumberType": - DesetupSyncPhoneNumberType(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_person!=null) - { - toReturn.Add(_person); - } - if(_phoneNumberType!=null) - { - toReturn.Add(_phoneNumberType); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_person", (!this.MarkedForDeletion?_person:null)); - info.AddValue("_phoneNumberType", (!this.MarkedForDeletion?_phoneNumberType:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new PersonPhoneRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonFields.BusinessEntityId, null, ComparisonOperator.Equal, this.BusinessEntityId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'PhoneNumberType' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPhoneNumberType() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PhoneNumberTypeFields.PhoneNumberTypeId, null, ComparisonOperator.Equal, this.PhoneNumberTypeId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(PersonPhoneEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Person", _person); - toReturn.Add("PhoneNumberType", _phoneNumberType); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BusinessEntityId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PhoneNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PhoneNumberTypeId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _person - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _person, new PropertyChangedEventHandler(OnPersonPropertyChanged), "Person", "PersonPhones", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonPhoneRelations.PersonEntityUsingBusinessEntityIdStatic, true, new int[] { (int)PersonPhoneFieldIndex.BusinessEntityId }); - } - - /// setups the sync logic for member _person - /// Instance to set as the related entity of type entityType - private void SetupSyncPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _person, new PropertyChangedEventHandler( OnPersonPropertyChanged ), "Person", "PersonPhones", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonPhoneRelations.PersonEntityUsingBusinessEntityIdStatic, true, new string[] { }, new int[] { (int)PersonPhoneFieldIndex.BusinessEntityId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _phoneNumberType - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPhoneNumberType(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _phoneNumberType, new PropertyChangedEventHandler(OnPhoneNumberTypePropertyChanged), "PhoneNumberType", "PersonPhones", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonPhoneRelations.PhoneNumberTypeEntityUsingPhoneNumberTypeIdStatic, true, new int[] { (int)PersonPhoneFieldIndex.PhoneNumberTypeId }); - } - - /// setups the sync logic for member _phoneNumberType - /// Instance to set as the related entity of type entityType - private void SetupSyncPhoneNumberType(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _phoneNumberType, new PropertyChangedEventHandler( OnPhoneNumberTypePropertyChanged ), "PhoneNumberType", "PersonPhones", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPersonPhoneRelations.PhoneNumberTypeEntityUsingPhoneNumberTypeIdStatic, true, new string[] { }, new int[] { (int)PersonPhoneFieldIndex.PhoneNumberTypeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPhoneNumberTypePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this PersonPhoneEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static PersonPhoneRelations Relations - { - get { return new PersonPhoneRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonEntityFactory))), (IEntityRelation)GetRelationsForField("Person")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, 0, null, null, null, null, "Person", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PhoneNumberType' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPhoneNumberType - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PhoneNumberTypeEntityFactory))), (IEntityRelation)GetRelationsForField("PhoneNumberType")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PhoneNumberTypeEntity, 0, null, null, null, null, "PhoneNumberType", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The BusinessEntityId property of the Entity PersonPhone

- /// Mapped on table field: "PersonPhone"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 BusinessEntityId - { - get { return (System.Int32)GetValue((int)PersonPhoneFieldIndex.BusinessEntityId, true); } - set { SetValue((int)PersonPhoneFieldIndex.BusinessEntityId, value); } - } - - /// The ModifiedDate property of the Entity PersonPhone

- /// Mapped on table field: "PersonPhone"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)PersonPhoneFieldIndex.ModifiedDate, true); } - set { SetValue((int)PersonPhoneFieldIndex.ModifiedDate, value); } - } - - /// The PhoneNumber property of the Entity PersonPhone

- /// Mapped on table field: "PersonPhone"."PhoneNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String PhoneNumber - { - get { return (System.String)GetValue((int)PersonPhoneFieldIndex.PhoneNumber, true); } - set { SetValue((int)PersonPhoneFieldIndex.PhoneNumber, value); } - } - - /// The PhoneNumberTypeId property of the Entity PersonPhone

- /// Mapped on table field: "PersonPhone"."PhoneNumberTypeID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 PhoneNumberTypeId - { - get { return (System.Int32)GetValue((int)PersonPhoneFieldIndex.PhoneNumberTypeId, true); } - set { SetValue((int)PersonPhoneFieldIndex.PhoneNumberTypeId, value); } - } - - /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual PersonEntity Person - { - get { return _person; } - set - { - if(this.IsDeserializing) - { - SetupSyncPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "PersonPhones", "Person", _person, true); - } - } - } - - /// Gets / sets related entity of type 'PhoneNumberTypeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual PhoneNumberTypeEntity PhoneNumberType - { - get { return _phoneNumberType; } - set - { - if(this.IsDeserializing) - { - SetupSyncPhoneNumberType(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "PersonPhones", "PhoneNumberType", _phoneNumberType, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs deleted file mode 100644 index f2b9f48b..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs +++ /dev/null @@ -1,469 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'PhoneNumberType'.

- [Serializable] - public partial class PhoneNumberTypeEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _personPhones; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name PersonPhones - public static readonly string PersonPhones = "PersonPhones"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static PhoneNumberTypeEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public PhoneNumberTypeEntity():base("PhoneNumberTypeEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public PhoneNumberTypeEntity(IEntityFields2 fields):base("PhoneNumberTypeEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this PhoneNumberTypeEntity - public PhoneNumberTypeEntity(IValidator validator):base("PhoneNumberTypeEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for PhoneNumberType which data should be fetched into this PhoneNumberType object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PhoneNumberTypeEntity(System.Int32 phoneNumberTypeId):base("PhoneNumberTypeEntity") - { - InitClassEmpty(null, null); - this.PhoneNumberTypeId = phoneNumberTypeId; - } - - /// CTor - /// PK value for PhoneNumberType which data should be fetched into this PhoneNumberType object - /// The custom validator object for this PhoneNumberTypeEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PhoneNumberTypeEntity(System.Int32 phoneNumberTypeId, IValidator validator):base("PhoneNumberTypeEntity") - { - InitClassEmpty(validator, null); - this.PhoneNumberTypeId = phoneNumberTypeId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected PhoneNumberTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _personPhones = (EntityCollection)info.GetValue("_personPhones", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "PersonPhones": - this.PersonPhones.Add((PersonPhoneEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "PersonPhones": - toReturn.Add(Relations.PersonPhoneEntityUsingPhoneNumberTypeId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "PersonPhones": - this.PersonPhones.Add((PersonPhoneEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "PersonPhones": - this.PerformRelatedEntityRemoval(this.PersonPhones, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.PersonPhones); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_personPhones", ((_personPhones!=null) && (_personPhones.Count>0) && !this.MarkedForDeletion)?_personPhones:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new PhoneNumberTypeRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PersonPhone' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPersonPhones() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PersonPhoneFields.PhoneNumberTypeId, null, ComparisonOperator.Equal, this.PhoneNumberTypeId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(PhoneNumberTypeEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._personPhones); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._personPhones = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._personPhones != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonPhoneEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("PersonPhones", _personPhones); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PhoneNumberTypeId", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this PhoneNumberTypeEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static PhoneNumberTypeRelations Relations - { - get { return new PhoneNumberTypeRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PersonPhone' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPersonPhones - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PersonPhoneEntityFactory))), (IEntityRelation)GetRelationsForField("PersonPhones")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PhoneNumberTypeEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity, 0, null, null, null, null, "PersonPhones", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity PhoneNumberType

- /// Mapped on table field: "PhoneNumberType"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)PhoneNumberTypeFieldIndex.ModifiedDate, true); } - set { SetValue((int)PhoneNumberTypeFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity PhoneNumberType

- /// Mapped on table field: "PhoneNumberType"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)PhoneNumberTypeFieldIndex.Name, true); } - set { SetValue((int)PhoneNumberTypeFieldIndex.Name, value); } - } - - /// The PhoneNumberTypeId property of the Entity PhoneNumberType

- /// Mapped on table field: "PhoneNumberType"."PhoneNumberTypeID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 PhoneNumberTypeId - { - get { return (System.Int32)GetValue((int)PhoneNumberTypeFieldIndex.PhoneNumberTypeId, true); } - set { SetValue((int)PhoneNumberTypeFieldIndex.PhoneNumberTypeId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'PersonPhoneEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(PersonPhoneEntity))] - public virtual EntityCollection PersonPhones - { - get { return GetOrCreateEntityCollection("PhoneNumberType", true, false, ref _personPhones); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.PhoneNumberTypeEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs deleted file mode 100644 index 1813a360..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs +++ /dev/null @@ -1,481 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductCategory'.

- [Serializable] - public partial class ProductCategoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productSubcategories; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductSubcategories - public static readonly string ProductSubcategories = "ProductSubcategories"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductCategoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductCategoryEntity():base("ProductCategoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductCategoryEntity(IEntityFields2 fields):base("ProductCategoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductCategoryEntity - public ProductCategoryEntity(IValidator validator):base("ProductCategoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductCategory which data should be fetched into this ProductCategory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductCategoryEntity(System.Int32 productCategoryId):base("ProductCategoryEntity") - { - InitClassEmpty(null, null); - this.ProductCategoryId = productCategoryId; - } - - /// CTor - /// PK value for ProductCategory which data should be fetched into this ProductCategory object - /// The custom validator object for this ProductCategoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductCategoryEntity(System.Int32 productCategoryId, IValidator validator):base("ProductCategoryEntity") - { - InitClassEmpty(validator, null); - this.ProductCategoryId = productCategoryId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductCategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productSubcategories = (EntityCollection)info.GetValue("_productSubcategories", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductSubcategories": - this.ProductSubcategories.Add((ProductSubcategoryEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ProductSubcategories": - toReturn.Add(Relations.ProductSubcategoryEntityUsingProductCategoryId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductSubcategories": - this.ProductSubcategories.Add((ProductSubcategoryEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductSubcategories": - this.PerformRelatedEntityRemoval(this.ProductSubcategories, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductSubcategories); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productSubcategories", ((_productSubcategories!=null) && (_productSubcategories.Count>0) && !this.MarkedForDeletion)?_productSubcategories:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductCategoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductSubcategory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductSubcategories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductSubcategoryFields.ProductCategoryId, null, ComparisonOperator.Equal, this.ProductCategoryId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductCategoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productSubcategories); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productSubcategories = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productSubcategories != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductSubcategoryEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductSubcategories", _productSubcategories); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductCategoryId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductCategoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductCategoryRelations Relations - { - get { return new ProductCategoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductSubcategory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductSubcategories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductSubcategoryEntityFactory))), (IEntityRelation)GetRelationsForField("ProductSubcategories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductCategoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity, 0, null, null, null, null, "ProductSubcategories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity ProductCategory

- /// Mapped on table field: "ProductCategory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductCategoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductCategoryFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity ProductCategory

- /// Mapped on table field: "ProductCategory"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ProductCategoryFieldIndex.Name, true); } - set { SetValue((int)ProductCategoryFieldIndex.Name, value); } - } - - /// The ProductCategoryId property of the Entity ProductCategory

- /// Mapped on table field: "ProductCategory"."ProductCategoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ProductCategoryId - { - get { return (System.Int32)GetValue((int)ProductCategoryFieldIndex.ProductCategoryId, true); } - set { SetValue((int)ProductCategoryFieldIndex.ProductCategoryId, value); } - } - - /// The Rowguid property of the Entity ProductCategory

- /// Mapped on table field: "ProductCategory"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)ProductCategoryFieldIndex.Rowguid, true); } - set { SetValue((int)ProductCategoryFieldIndex.Rowguid, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductSubcategoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductSubcategoryEntity))] - public virtual EntityCollection ProductSubcategories - { - get { return GetOrCreateEntityCollection("ProductCategory", true, false, ref _productSubcategories); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductCategoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs deleted file mode 100644 index 823562d3..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs +++ /dev/null @@ -1,553 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductCostHistory'.

- [Serializable] - public partial class ProductCostHistoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductCostHistoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductCostHistoryEntity():base("ProductCostHistoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductCostHistoryEntity(IEntityFields2 fields):base("ProductCostHistoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductCostHistoryEntity - public ProductCostHistoryEntity(IValidator validator):base("ProductCostHistoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object - /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductCostHistoryEntity(System.Int32 productId, System.DateTime startDate):base("ProductCostHistoryEntity") - { - InitClassEmpty(null, null); - this.ProductId = productId; - this.StartDate = startDate; - } - - /// CTor - /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object - /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object - /// The custom validator object for this ProductCostHistoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductCostHistoryEntity(System.Int32 productId, System.DateTime startDate, IValidator validator):base("ProductCostHistoryEntity") - { - InitClassEmpty(validator, null); - this.ProductId = productId; - this.StartDate = startDate; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductCostHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductCostHistoryFieldIndex)fieldIndex) - { - case ProductCostHistoryFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductCostHistoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductCostHistoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StandardCost", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartDate", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ProductCostHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductCostHistoryRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ProductCostHistoryFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ProductCostHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductCostHistoryRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ProductCostHistoryFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductCostHistoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductCostHistoryRelations Relations - { - get { return new ProductCostHistoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductCostHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The EndDate property of the Entity ProductCostHistory

- /// Mapped on table field: "ProductCostHistory"."EndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable EndDate - { - get { return (Nullable)GetValue((int)ProductCostHistoryFieldIndex.EndDate, false); } - set { SetValue((int)ProductCostHistoryFieldIndex.EndDate, value); } - } - - /// The ModifiedDate property of the Entity ProductCostHistory

- /// Mapped on table field: "ProductCostHistory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductCostHistoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductCostHistoryFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity ProductCostHistory

- /// Mapped on table field: "ProductCostHistory"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductCostHistoryFieldIndex.ProductId, true); } - set { SetValue((int)ProductCostHistoryFieldIndex.ProductId, value); } - } - - /// The StandardCost property of the Entity ProductCostHistory

- /// Mapped on table field: "ProductCostHistory"."StandardCost"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal StandardCost - { - get { return (System.Decimal)GetValue((int)ProductCostHistoryFieldIndex.StandardCost, true); } - set { SetValue((int)ProductCostHistoryFieldIndex.StandardCost, value); } - } - - /// The StartDate property of the Entity ProductCostHistory

- /// Mapped on table field: "ProductCostHistory"."StartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.DateTime StartDate - { - get { return (System.DateTime)GetValue((int)ProductCostHistoryFieldIndex.StartDate, true); } - set { SetValue((int)ProductCostHistoryFieldIndex.StartDate, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductCostHistories", "Product", _product, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductCostHistoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs deleted file mode 100644 index bb926d5e..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs +++ /dev/null @@ -1,481 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductDescription'.

- [Serializable] - public partial class ProductDescriptionEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productModelProductDescriptionCultures; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductModelProductDescriptionCultures - public static readonly string ProductModelProductDescriptionCultures = "ProductModelProductDescriptionCultures"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductDescriptionEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductDescriptionEntity():base("ProductDescriptionEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductDescriptionEntity(IEntityFields2 fields):base("ProductDescriptionEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductDescriptionEntity - public ProductDescriptionEntity(IValidator validator):base("ProductDescriptionEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductDescription which data should be fetched into this ProductDescription object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductDescriptionEntity(System.Int32 productDescriptionId):base("ProductDescriptionEntity") - { - InitClassEmpty(null, null); - this.ProductDescriptionId = productDescriptionId; - } - - /// CTor - /// PK value for ProductDescription which data should be fetched into this ProductDescription object - /// The custom validator object for this ProductDescriptionEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductDescriptionEntity(System.Int32 productDescriptionId, IValidator validator):base("ProductDescriptionEntity") - { - InitClassEmpty(validator, null); - this.ProductDescriptionId = productDescriptionId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductDescriptionEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productModelProductDescriptionCultures = (EntityCollection)info.GetValue("_productModelProductDescriptionCultures", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductModelProductDescriptionCultures": - this.ProductModelProductDescriptionCultures.Add((ProductModelProductDescriptionCultureEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ProductModelProductDescriptionCultures": - toReturn.Add(Relations.ProductModelProductDescriptionCultureEntityUsingProductDescriptionId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductModelProductDescriptionCultures": - this.ProductModelProductDescriptionCultures.Add((ProductModelProductDescriptionCultureEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductModelProductDescriptionCultures": - this.PerformRelatedEntityRemoval(this.ProductModelProductDescriptionCultures, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductModelProductDescriptionCultures); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productModelProductDescriptionCultures", ((_productModelProductDescriptionCultures!=null) && (_productModelProductDescriptionCultures.Count>0) && !this.MarkedForDeletion)?_productModelProductDescriptionCultures:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductDescriptionRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelProductDescriptionCulture' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModelProductDescriptionCultures() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelProductDescriptionCultureFields.ProductDescriptionId, null, ComparisonOperator.Equal, this.ProductDescriptionId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductDescriptionEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productModelProductDescriptionCultures); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productModelProductDescriptionCultures = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productModelProductDescriptionCultures != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelProductDescriptionCultureEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductModelProductDescriptionCultures", _productModelProductDescriptionCultures); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Description", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductDescriptionId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductDescriptionEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductDescriptionRelations Relations - { - get { return new ProductDescriptionRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelProductDescriptionCulture' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModelProductDescriptionCultures - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelProductDescriptionCultureEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModelProductDescriptionCultures")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDescriptionEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity, 0, null, null, null, null, "ProductModelProductDescriptionCultures", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Description property of the Entity ProductDescription

- /// Mapped on table field: "ProductDescription"."Description"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 400
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Description - { - get { return (System.String)GetValue((int)ProductDescriptionFieldIndex.Description, true); } - set { SetValue((int)ProductDescriptionFieldIndex.Description, value); } - } - - /// The ModifiedDate property of the Entity ProductDescription

- /// Mapped on table field: "ProductDescription"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductDescriptionFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductDescriptionFieldIndex.ModifiedDate, value); } - } - - /// The ProductDescriptionId property of the Entity ProductDescription

- /// Mapped on table field: "ProductDescription"."ProductDescriptionID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ProductDescriptionId - { - get { return (System.Int32)GetValue((int)ProductDescriptionFieldIndex.ProductDescriptionId, true); } - set { SetValue((int)ProductDescriptionFieldIndex.ProductDescriptionId, value); } - } - - /// The Rowguid property of the Entity ProductDescription

- /// Mapped on table field: "ProductDescription"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)ProductDescriptionFieldIndex.Rowguid, true); } - set { SetValue((int)ProductDescriptionFieldIndex.Rowguid, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductModelProductDescriptionCultureEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductModelProductDescriptionCultureEntity))] - public virtual EntityCollection ProductModelProductDescriptionCultures - { - get { return GetOrCreateEntityCollection("ProductDescription", true, false, ref _productModelProductDescriptionCultures); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDescriptionEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs deleted file mode 100644 index 46371430..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs +++ /dev/null @@ -1,619 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductDocument'.

- [Serializable] - public partial class ProductDocumentEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private DocumentEntity _document; - private ProductEntity _product; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Document - public static readonly string Document = "Document"; - /// Member name Product - public static readonly string Product = "Product"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductDocumentEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductDocumentEntity():base("ProductDocumentEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductDocumentEntity(IEntityFields2 fields):base("ProductDocumentEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductDocumentEntity - public ProductDocumentEntity(IValidator validator):base("ProductDocumentEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductDocument which data should be fetched into this ProductDocument object - /// PK value for ProductDocument which data should be fetched into this ProductDocument object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductDocumentEntity(System.String documentNode, System.Int32 productId):base("ProductDocumentEntity") - { - InitClassEmpty(null, null); - this.DocumentNode = documentNode; - this.ProductId = productId; - } - - /// CTor - /// PK value for ProductDocument which data should be fetched into this ProductDocument object - /// PK value for ProductDocument which data should be fetched into this ProductDocument object - /// The custom validator object for this ProductDocumentEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductDocumentEntity(System.String documentNode, System.Int32 productId, IValidator validator):base("ProductDocumentEntity") - { - InitClassEmpty(validator, null); - this.DocumentNode = documentNode; - this.ProductId = productId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductDocumentEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _document = (DocumentEntity)info.GetValue("_document", typeof(DocumentEntity)); - if(_document!=null) - { - _document.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductDocumentFieldIndex)fieldIndex) - { - case ProductDocumentFieldIndex.DocumentNode: - DesetupSyncDocument(true, false); - break; - case ProductDocumentFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Document": - this.Document = (DocumentEntity)entity; - break; - case "Product": - this.Product = (ProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Document": - toReturn.Add(Relations.DocumentEntityUsingDocumentNode); - break; - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Document": - SetupSyncDocument(relatedEntity); - break; - case "Product": - SetupSyncProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Document": - DesetupSyncDocument(false, true); - break; - case "Product": - DesetupSyncProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_document!=null) - { - toReturn.Add(_document); - } - if(_product!=null) - { - toReturn.Add(_product); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_document", (!this.MarkedForDeletion?_document:null)); - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductDocumentRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Document' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoDocument() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(DocumentFields.DocumentNode, null, ComparisonOperator.Equal, this.DocumentNode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductDocumentEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Document", _document); - toReturn.Add("Product", _product); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DocumentNode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _document - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncDocument(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _document, new PropertyChangedEventHandler(OnDocumentPropertyChanged), "Document", "ProductDocuments", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductDocumentRelations.DocumentEntityUsingDocumentNodeStatic, true, new int[] { (int)ProductDocumentFieldIndex.DocumentNode }); - } - - /// setups the sync logic for member _document - /// Instance to set as the related entity of type entityType - private void SetupSyncDocument(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _document, new PropertyChangedEventHandler( OnDocumentPropertyChanged ), "Document", "ProductDocuments", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductDocumentRelations.DocumentEntityUsingDocumentNodeStatic, true, new string[] { }, new int[] { (int)ProductDocumentFieldIndex.DocumentNode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnDocumentPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ProductDocuments", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductDocumentRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ProductDocumentFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ProductDocuments", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductDocumentRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ProductDocumentFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductDocumentEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductDocumentRelations Relations - { - get { return new ProductDocumentRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Document' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathDocument - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(DocumentEntityFactory))), (IEntityRelation)GetRelationsForField("Document")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity, 0, null, null, null, null, "Document", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The DocumentNode property of the Entity ProductDocument

- /// Mapped on table field: "ProductDocument"."DocumentNode"
- /// Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 892
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String DocumentNode - { - get { return (System.String)GetValue((int)ProductDocumentFieldIndex.DocumentNode, true); } - set { SetValue((int)ProductDocumentFieldIndex.DocumentNode, value); } - } - - /// The ModifiedDate property of the Entity ProductDocument

- /// Mapped on table field: "ProductDocument"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductDocumentFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductDocumentFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity ProductDocument

- /// Mapped on table field: "ProductDocument"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductDocumentFieldIndex.ProductId, true); } - set { SetValue((int)ProductDocumentFieldIndex.ProductId, value); } - } - - /// Gets / sets related entity of type 'DocumentEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual DocumentEntity Document - { - get { return _document; } - set - { - if(this.IsDeserializing) - { - SetupSyncDocument(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductDocuments", "Document", _document, true); - } - } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductDocuments", "Product", _product, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductEntity.cs deleted file mode 100644 index 65c4ca31..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductEntity.cs +++ /dev/null @@ -1,1703 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Product'.

- [Serializable] - public partial class ProductEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _billOfMaterials; - private EntityCollection _billOfMaterials_; - private EntityCollection _productCostHistories; - private EntityCollection _productDocuments; - private EntityCollection _productInventories; - private EntityCollection _productListPriceHistories; - private EntityCollection _productProductPhotos; - private EntityCollection _productReviews; - private EntityCollection _productVendors; - private EntityCollection _purchaseOrderDetails; - private EntityCollection _shoppingCartItems; - private EntityCollection _specialOfferProducts; - private EntityCollection _transactionHistories; - private EntityCollection _workOrders; - private ProductModelEntity _productModel; - private ProductSubcategoryEntity _productSubcategory; - private UnitMeasureEntity _unitMeasure; - private UnitMeasureEntity _unitMeasure_; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductModel - public static readonly string ProductModel = "ProductModel"; - /// Member name ProductSubcategory - public static readonly string ProductSubcategory = "ProductSubcategory"; - /// Member name UnitMeasure - public static readonly string UnitMeasure = "UnitMeasure"; - /// Member name UnitMeasure_ - public static readonly string UnitMeasure_ = "UnitMeasure_"; - /// Member name BillOfMaterials - public static readonly string BillOfMaterials = "BillOfMaterials"; - /// Member name BillOfMaterials_ - public static readonly string BillOfMaterials_ = "BillOfMaterials_"; - /// Member name ProductCostHistories - public static readonly string ProductCostHistories = "ProductCostHistories"; - /// Member name ProductDocuments - public static readonly string ProductDocuments = "ProductDocuments"; - /// Member name ProductInventories - public static readonly string ProductInventories = "ProductInventories"; - /// Member name ProductListPriceHistories - public static readonly string ProductListPriceHistories = "ProductListPriceHistories"; - /// Member name ProductProductPhotos - public static readonly string ProductProductPhotos = "ProductProductPhotos"; - /// Member name ProductReviews - public static readonly string ProductReviews = "ProductReviews"; - /// Member name ProductVendors - public static readonly string ProductVendors = "ProductVendors"; - /// Member name PurchaseOrderDetails - public static readonly string PurchaseOrderDetails = "PurchaseOrderDetails"; - /// Member name ShoppingCartItems - public static readonly string ShoppingCartItems = "ShoppingCartItems"; - /// Member name SpecialOfferProducts - public static readonly string SpecialOfferProducts = "SpecialOfferProducts"; - /// Member name TransactionHistories - public static readonly string TransactionHistories = "TransactionHistories"; - /// Member name WorkOrders - public static readonly string WorkOrders = "WorkOrders"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductEntity():base("ProductEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductEntity(IEntityFields2 fields):base("ProductEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductEntity - public ProductEntity(IValidator validator):base("ProductEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Product which data should be fetched into this Product object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductEntity(System.Int32 productId):base("ProductEntity") - { - InitClassEmpty(null, null); - this.ProductId = productId; - } - - /// CTor - /// PK value for Product which data should be fetched into this Product object - /// The custom validator object for this ProductEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductEntity(System.Int32 productId, IValidator validator):base("ProductEntity") - { - InitClassEmpty(validator, null); - this.ProductId = productId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _billOfMaterials = (EntityCollection)info.GetValue("_billOfMaterials", typeof(EntityCollection)); - _billOfMaterials_ = (EntityCollection)info.GetValue("_billOfMaterials_", typeof(EntityCollection)); - _productCostHistories = (EntityCollection)info.GetValue("_productCostHistories", typeof(EntityCollection)); - _productDocuments = (EntityCollection)info.GetValue("_productDocuments", typeof(EntityCollection)); - _productInventories = (EntityCollection)info.GetValue("_productInventories", typeof(EntityCollection)); - _productListPriceHistories = (EntityCollection)info.GetValue("_productListPriceHistories", typeof(EntityCollection)); - _productProductPhotos = (EntityCollection)info.GetValue("_productProductPhotos", typeof(EntityCollection)); - _productReviews = (EntityCollection)info.GetValue("_productReviews", typeof(EntityCollection)); - _productVendors = (EntityCollection)info.GetValue("_productVendors", typeof(EntityCollection)); - _purchaseOrderDetails = (EntityCollection)info.GetValue("_purchaseOrderDetails", typeof(EntityCollection)); - _shoppingCartItems = (EntityCollection)info.GetValue("_shoppingCartItems", typeof(EntityCollection)); - _specialOfferProducts = (EntityCollection)info.GetValue("_specialOfferProducts", typeof(EntityCollection)); - _transactionHistories = (EntityCollection)info.GetValue("_transactionHistories", typeof(EntityCollection)); - _workOrders = (EntityCollection)info.GetValue("_workOrders", typeof(EntityCollection)); - _productModel = (ProductModelEntity)info.GetValue("_productModel", typeof(ProductModelEntity)); - if(_productModel!=null) - { - _productModel.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _productSubcategory = (ProductSubcategoryEntity)info.GetValue("_productSubcategory", typeof(ProductSubcategoryEntity)); - if(_productSubcategory!=null) - { - _productSubcategory.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _unitMeasure = (UnitMeasureEntity)info.GetValue("_unitMeasure", typeof(UnitMeasureEntity)); - if(_unitMeasure!=null) - { - _unitMeasure.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _unitMeasure_ = (UnitMeasureEntity)info.GetValue("_unitMeasure_", typeof(UnitMeasureEntity)); - if(_unitMeasure_!=null) - { - _unitMeasure_.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductFieldIndex)fieldIndex) - { - case ProductFieldIndex.ProductModelId: - DesetupSyncProductModel(true, false); - break; - case ProductFieldIndex.ProductSubcategoryId: - DesetupSyncProductSubcategory(true, false); - break; - case ProductFieldIndex.SizeUnitMeasureCode: - DesetupSyncUnitMeasure(true, false); - break; - case ProductFieldIndex.WeightUnitMeasureCode: - DesetupSyncUnitMeasure_(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductModel": - this.ProductModel = (ProductModelEntity)entity; - break; - case "ProductSubcategory": - this.ProductSubcategory = (ProductSubcategoryEntity)entity; - break; - case "UnitMeasure": - this.UnitMeasure = (UnitMeasureEntity)entity; - break; - case "UnitMeasure_": - this.UnitMeasure_ = (UnitMeasureEntity)entity; - break; - case "BillOfMaterials": - this.BillOfMaterials.Add((BillOfMaterialEntity)entity); - break; - case "BillOfMaterials_": - this.BillOfMaterials_.Add((BillOfMaterialEntity)entity); - break; - case "ProductCostHistories": - this.ProductCostHistories.Add((ProductCostHistoryEntity)entity); - break; - case "ProductDocuments": - this.ProductDocuments.Add((ProductDocumentEntity)entity); - break; - case "ProductInventories": - this.ProductInventories.Add((ProductInventoryEntity)entity); - break; - case "ProductListPriceHistories": - this.ProductListPriceHistories.Add((ProductListPriceHistoryEntity)entity); - break; - case "ProductProductPhotos": - this.ProductProductPhotos.Add((ProductProductPhotoEntity)entity); - break; - case "ProductReviews": - this.ProductReviews.Add((ProductReviewEntity)entity); - break; - case "ProductVendors": - this.ProductVendors.Add((ProductVendorEntity)entity); - break; - case "PurchaseOrderDetails": - this.PurchaseOrderDetails.Add((PurchaseOrderDetailEntity)entity); - break; - case "ShoppingCartItems": - this.ShoppingCartItems.Add((ShoppingCartItemEntity)entity); - break; - case "SpecialOfferProducts": - this.SpecialOfferProducts.Add((SpecialOfferProductEntity)entity); - break; - case "TransactionHistories": - this.TransactionHistories.Add((TransactionHistoryEntity)entity); - break; - case "WorkOrders": - this.WorkOrders.Add((WorkOrderEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - 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; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductModel": - SetupSyncProductModel(relatedEntity); - break; - case "ProductSubcategory": - SetupSyncProductSubcategory(relatedEntity); - break; - case "UnitMeasure": - SetupSyncUnitMeasure(relatedEntity); - break; - case "UnitMeasure_": - SetupSyncUnitMeasure_(relatedEntity); - break; - case "BillOfMaterials": - this.BillOfMaterials.Add((BillOfMaterialEntity)relatedEntity); - break; - case "BillOfMaterials_": - this.BillOfMaterials_.Add((BillOfMaterialEntity)relatedEntity); - break; - case "ProductCostHistories": - this.ProductCostHistories.Add((ProductCostHistoryEntity)relatedEntity); - break; - case "ProductDocuments": - this.ProductDocuments.Add((ProductDocumentEntity)relatedEntity); - break; - case "ProductInventories": - this.ProductInventories.Add((ProductInventoryEntity)relatedEntity); - break; - case "ProductListPriceHistories": - this.ProductListPriceHistories.Add((ProductListPriceHistoryEntity)relatedEntity); - break; - case "ProductProductPhotos": - this.ProductProductPhotos.Add((ProductProductPhotoEntity)relatedEntity); - break; - case "ProductReviews": - this.ProductReviews.Add((ProductReviewEntity)relatedEntity); - break; - case "ProductVendors": - this.ProductVendors.Add((ProductVendorEntity)relatedEntity); - break; - case "PurchaseOrderDetails": - this.PurchaseOrderDetails.Add((PurchaseOrderDetailEntity)relatedEntity); - break; - case "ShoppingCartItems": - this.ShoppingCartItems.Add((ShoppingCartItemEntity)relatedEntity); - break; - case "SpecialOfferProducts": - this.SpecialOfferProducts.Add((SpecialOfferProductEntity)relatedEntity); - break; - case "TransactionHistories": - this.TransactionHistories.Add((TransactionHistoryEntity)relatedEntity); - break; - case "WorkOrders": - this.WorkOrders.Add((WorkOrderEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductModel": - DesetupSyncProductModel(false, true); - break; - case "ProductSubcategory": - DesetupSyncProductSubcategory(false, true); - break; - case "UnitMeasure": - DesetupSyncUnitMeasure(false, true); - break; - case "UnitMeasure_": - DesetupSyncUnitMeasure_(false, true); - break; - case "BillOfMaterials": - this.PerformRelatedEntityRemoval(this.BillOfMaterials, relatedEntity, signalRelatedEntityManyToOne); - break; - case "BillOfMaterials_": - this.PerformRelatedEntityRemoval(this.BillOfMaterials_, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductCostHistories": - this.PerformRelatedEntityRemoval(this.ProductCostHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductDocuments": - this.PerformRelatedEntityRemoval(this.ProductDocuments, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductInventories": - this.PerformRelatedEntityRemoval(this.ProductInventories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductListPriceHistories": - this.PerformRelatedEntityRemoval(this.ProductListPriceHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductProductPhotos": - this.PerformRelatedEntityRemoval(this.ProductProductPhotos, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductReviews": - this.PerformRelatedEntityRemoval(this.ProductReviews, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductVendors": - this.PerformRelatedEntityRemoval(this.ProductVendors, relatedEntity, signalRelatedEntityManyToOne); - break; - case "PurchaseOrderDetails": - this.PerformRelatedEntityRemoval(this.PurchaseOrderDetails, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ShoppingCartItems": - this.PerformRelatedEntityRemoval(this.ShoppingCartItems, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SpecialOfferProducts": - this.PerformRelatedEntityRemoval(this.SpecialOfferProducts, relatedEntity, signalRelatedEntityManyToOne); - break; - case "TransactionHistories": - this.PerformRelatedEntityRemoval(this.TransactionHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "WorkOrders": - this.PerformRelatedEntityRemoval(this.WorkOrders, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_productModel!=null) - { - toReturn.Add(_productModel); - } - if(_productSubcategory!=null) - { - toReturn.Add(_productSubcategory); - } - if(_unitMeasure!=null) - { - toReturn.Add(_unitMeasure); - } - if(_unitMeasure_!=null) - { - toReturn.Add(_unitMeasure_); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.BillOfMaterials); - toReturn.Add(this.BillOfMaterials_); - toReturn.Add(this.ProductCostHistories); - toReturn.Add(this.ProductDocuments); - toReturn.Add(this.ProductInventories); - toReturn.Add(this.ProductListPriceHistories); - toReturn.Add(this.ProductProductPhotos); - toReturn.Add(this.ProductReviews); - toReturn.Add(this.ProductVendors); - toReturn.Add(this.PurchaseOrderDetails); - toReturn.Add(this.ShoppingCartItems); - toReturn.Add(this.SpecialOfferProducts); - toReturn.Add(this.TransactionHistories); - toReturn.Add(this.WorkOrders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_billOfMaterials", ((_billOfMaterials!=null) && (_billOfMaterials.Count>0) && !this.MarkedForDeletion)?_billOfMaterials:null); - info.AddValue("_billOfMaterials_", ((_billOfMaterials_!=null) && (_billOfMaterials_.Count>0) && !this.MarkedForDeletion)?_billOfMaterials_:null); - info.AddValue("_productCostHistories", ((_productCostHistories!=null) && (_productCostHistories.Count>0) && !this.MarkedForDeletion)?_productCostHistories:null); - info.AddValue("_productDocuments", ((_productDocuments!=null) && (_productDocuments.Count>0) && !this.MarkedForDeletion)?_productDocuments:null); - info.AddValue("_productInventories", ((_productInventories!=null) && (_productInventories.Count>0) && !this.MarkedForDeletion)?_productInventories:null); - info.AddValue("_productListPriceHistories", ((_productListPriceHistories!=null) && (_productListPriceHistories.Count>0) && !this.MarkedForDeletion)?_productListPriceHistories:null); - info.AddValue("_productProductPhotos", ((_productProductPhotos!=null) && (_productProductPhotos.Count>0) && !this.MarkedForDeletion)?_productProductPhotos:null); - info.AddValue("_productReviews", ((_productReviews!=null) && (_productReviews.Count>0) && !this.MarkedForDeletion)?_productReviews:null); - info.AddValue("_productVendors", ((_productVendors!=null) && (_productVendors.Count>0) && !this.MarkedForDeletion)?_productVendors:null); - info.AddValue("_purchaseOrderDetails", ((_purchaseOrderDetails!=null) && (_purchaseOrderDetails.Count>0) && !this.MarkedForDeletion)?_purchaseOrderDetails:null); - info.AddValue("_shoppingCartItems", ((_shoppingCartItems!=null) && (_shoppingCartItems.Count>0) && !this.MarkedForDeletion)?_shoppingCartItems:null); - info.AddValue("_specialOfferProducts", ((_specialOfferProducts!=null) && (_specialOfferProducts.Count>0) && !this.MarkedForDeletion)?_specialOfferProducts:null); - info.AddValue("_transactionHistories", ((_transactionHistories!=null) && (_transactionHistories.Count>0) && !this.MarkedForDeletion)?_transactionHistories:null); - info.AddValue("_workOrders", ((_workOrders!=null) && (_workOrders.Count>0) && !this.MarkedForDeletion)?_workOrders:null); - info.AddValue("_productModel", (!this.MarkedForDeletion?_productModel:null)); - info.AddValue("_productSubcategory", (!this.MarkedForDeletion?_productSubcategory:null)); - info.AddValue("_unitMeasure", (!this.MarkedForDeletion?_unitMeasure:null)); - info.AddValue("_unitMeasure_", (!this.MarkedForDeletion?_unitMeasure_:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BillOfMaterial' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBillOfMaterials() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BillOfMaterialFields.ComponentId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BillOfMaterial' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBillOfMaterials_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BillOfMaterialFields.ProductAssemblyId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductCostHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductCostHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductCostHistoryFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductDocument' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductDocuments() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductDocumentFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductInventory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductInventories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductInventoryFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductListPriceHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductListPriceHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductListPriceHistoryFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductProductPhoto' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductProductPhotos() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductProductPhotoFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductReview' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductReviews() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductReviewFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductVendor' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductVendors() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductVendorFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderDetail' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderDetails() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PurchaseOrderDetailFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ShoppingCartItem' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoShoppingCartItems() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ShoppingCartItemFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SpecialOfferProduct' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSpecialOfferProducts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SpecialOfferProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TransactionHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoTransactionHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TransactionHistoryFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrder' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoWorkOrders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(WorkOrderFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductModel' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModel() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelFields.ProductModelId, null, ComparisonOperator.Equal, this.ProductModelId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductSubcategory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductSubcategory() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductSubcategoryFields.ProductSubcategoryId, null, ComparisonOperator.Equal, this.ProductSubcategoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(UnitMeasureFields.UnitMeasureCode, null, ComparisonOperator.Equal, this.SizeUnitMeasureCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(UnitMeasureFields.UnitMeasureCode, null, ComparisonOperator.Equal, this.WeightUnitMeasureCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._billOfMaterials); - collectionsQueue.Enqueue(this._billOfMaterials_); - collectionsQueue.Enqueue(this._productCostHistories); - collectionsQueue.Enqueue(this._productDocuments); - collectionsQueue.Enqueue(this._productInventories); - collectionsQueue.Enqueue(this._productListPriceHistories); - collectionsQueue.Enqueue(this._productProductPhotos); - collectionsQueue.Enqueue(this._productReviews); - collectionsQueue.Enqueue(this._productVendors); - collectionsQueue.Enqueue(this._purchaseOrderDetails); - collectionsQueue.Enqueue(this._shoppingCartItems); - collectionsQueue.Enqueue(this._specialOfferProducts); - collectionsQueue.Enqueue(this._transactionHistories); - collectionsQueue.Enqueue(this._workOrders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._billOfMaterials = (EntityCollection) collectionsQueue.Dequeue(); - this._billOfMaterials_ = (EntityCollection) collectionsQueue.Dequeue(); - this._productCostHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._productDocuments = (EntityCollection) collectionsQueue.Dequeue(); - this._productInventories = (EntityCollection) collectionsQueue.Dequeue(); - this._productListPriceHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._productProductPhotos = (EntityCollection) collectionsQueue.Dequeue(); - this._productReviews = (EntityCollection) collectionsQueue.Dequeue(); - this._productVendors = (EntityCollection) collectionsQueue.Dequeue(); - this._purchaseOrderDetails = (EntityCollection) collectionsQueue.Dequeue(); - this._shoppingCartItems = (EntityCollection) collectionsQueue.Dequeue(); - this._specialOfferProducts = (EntityCollection) collectionsQueue.Dequeue(); - this._transactionHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._workOrders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._billOfMaterials != null); - toReturn |=(this._billOfMaterials_ != null); - toReturn |=(this._productCostHistories != null); - toReturn |=(this._productDocuments != null); - toReturn |=(this._productInventories != null); - toReturn |=(this._productListPriceHistories != null); - toReturn |=(this._productProductPhotos != null); - toReturn |=(this._productReviews != null); - toReturn |=(this._productVendors != null); - toReturn |=(this._purchaseOrderDetails != null); - toReturn |=(this._shoppingCartItems != null); - toReturn |=(this._specialOfferProducts != null); - toReturn |=(this._transactionHistories != null); - toReturn |=(this._workOrders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BillOfMaterialEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BillOfMaterialEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductCostHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductDocumentEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductInventoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductListPriceHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductProductPhotoEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductReviewEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductVendorEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderDetailEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ShoppingCartItemEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferProductEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(TransactionHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductModel", _productModel); - toReturn.Add("ProductSubcategory", _productSubcategory); - toReturn.Add("UnitMeasure", _unitMeasure); - toReturn.Add("UnitMeasure_", _unitMeasure_); - toReturn.Add("BillOfMaterials", _billOfMaterials); - toReturn.Add("BillOfMaterials_", _billOfMaterials_); - toReturn.Add("ProductCostHistories", _productCostHistories); - toReturn.Add("ProductDocuments", _productDocuments); - toReturn.Add("ProductInventories", _productInventories); - toReturn.Add("ProductListPriceHistories", _productListPriceHistories); - toReturn.Add("ProductProductPhotos", _productProductPhotos); - toReturn.Add("ProductReviews", _productReviews); - toReturn.Add("ProductVendors", _productVendors); - toReturn.Add("PurchaseOrderDetails", _purchaseOrderDetails); - toReturn.Add("ShoppingCartItems", _shoppingCartItems); - toReturn.Add("SpecialOfferProducts", _specialOfferProducts); - toReturn.Add("TransactionHistories", _transactionHistories); - toReturn.Add("WorkOrders", _workOrders); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Class", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Color", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DaysToManufacture", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DiscontinuedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("FinishedGoodsFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ListPrice", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("MakeFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductLine", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductModelId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductSubcategoryId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReorderPoint", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SafetyStockLevel", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SellEndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SellStartDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Size", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SizeUnitMeasureCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StandardCost", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Style", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Weight", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("WeightUnitMeasureCode", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _productModel - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProductModel(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _productModel, new PropertyChangedEventHandler(OnProductModelPropertyChanged), "ProductModel", "Products", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.ProductModelEntityUsingProductModelIdStatic, true, new int[] { (int)ProductFieldIndex.ProductModelId }); - } - - /// setups the sync logic for member _productModel - /// Instance to set as the related entity of type entityType - private void SetupSyncProductModel(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _productModel, new PropertyChangedEventHandler( OnProductModelPropertyChanged ), "ProductModel", "Products", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.ProductModelEntityUsingProductModelIdStatic, true, new string[] { }, new int[] { (int)ProductFieldIndex.ProductModelId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductModelPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _productSubcategory - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProductSubcategory(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _productSubcategory, new PropertyChangedEventHandler(OnProductSubcategoryPropertyChanged), "ProductSubcategory", "Products", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.ProductSubcategoryEntityUsingProductSubcategoryIdStatic, true, new int[] { (int)ProductFieldIndex.ProductSubcategoryId }); - } - - /// setups the sync logic for member _productSubcategory - /// Instance to set as the related entity of type entityType - private void SetupSyncProductSubcategory(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _productSubcategory, new PropertyChangedEventHandler( OnProductSubcategoryPropertyChanged ), "ProductSubcategory", "Products", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.ProductSubcategoryEntityUsingProductSubcategoryIdStatic, true, new string[] { }, new int[] { (int)ProductFieldIndex.ProductSubcategoryId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductSubcategoryPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _unitMeasure - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncUnitMeasure(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _unitMeasure, new PropertyChangedEventHandler(OnUnitMeasurePropertyChanged), "UnitMeasure", "Products", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.UnitMeasureEntityUsingSizeUnitMeasureCodeStatic, true, new int[] { (int)ProductFieldIndex.SizeUnitMeasureCode }); - } - - /// setups the sync logic for member _unitMeasure - /// Instance to set as the related entity of type entityType - private void SetupSyncUnitMeasure(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _unitMeasure, new PropertyChangedEventHandler( OnUnitMeasurePropertyChanged ), "UnitMeasure", "Products", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.UnitMeasureEntityUsingSizeUnitMeasureCodeStatic, true, new string[] { }, new int[] { (int)ProductFieldIndex.SizeUnitMeasureCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnUnitMeasurePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _unitMeasure_ - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncUnitMeasure_(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _unitMeasure_, new PropertyChangedEventHandler(OnUnitMeasure_PropertyChanged), "UnitMeasure_", "Products_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.UnitMeasureEntityUsingWeightUnitMeasureCodeStatic, true, new int[] { (int)ProductFieldIndex.WeightUnitMeasureCode }); - } - - /// setups the sync logic for member _unitMeasure_ - /// Instance to set as the related entity of type entityType - private void SetupSyncUnitMeasure_(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _unitMeasure_, new PropertyChangedEventHandler( OnUnitMeasure_PropertyChanged ), "UnitMeasure_", "Products_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductRelations.UnitMeasureEntityUsingWeightUnitMeasureCodeStatic, true, new string[] { }, new int[] { (int)ProductFieldIndex.WeightUnitMeasureCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnUnitMeasure_PropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductRelations Relations - { - get { return new ProductRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BillOfMaterial' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBillOfMaterials - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BillOfMaterialEntityFactory))), (IEntityRelation)GetRelationsForField("BillOfMaterials")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity, 0, null, null, null, null, "BillOfMaterials", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BillOfMaterial' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBillOfMaterials_ - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BillOfMaterialEntityFactory))), (IEntityRelation)GetRelationsForField("BillOfMaterials_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity, 0, null, null, null, null, "BillOfMaterials_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductCostHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductCostHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductCostHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("ProductCostHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductCostHistoryEntity, 0, null, null, null, null, "ProductCostHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductDocument' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductDocuments - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductDocumentEntityFactory))), (IEntityRelation)GetRelationsForField("ProductDocuments")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity, 0, null, null, null, null, "ProductDocuments", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductInventory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductInventories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductInventoryEntityFactory))), (IEntityRelation)GetRelationsForField("ProductInventories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity, 0, null, null, null, null, "ProductInventories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductListPriceHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductListPriceHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductListPriceHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("ProductListPriceHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductListPriceHistoryEntity, 0, null, null, null, null, "ProductListPriceHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductProductPhoto' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductProductPhotos - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductProductPhotoEntityFactory))), (IEntityRelation)GetRelationsForField("ProductProductPhotos")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity, 0, null, null, null, null, "ProductProductPhotos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductReview' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductReviews - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductReviewEntityFactory))), (IEntityRelation)GetRelationsForField("ProductReviews")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductReviewEntity, 0, null, null, null, null, "ProductReviews", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductVendor' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductVendors - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductVendorEntityFactory))), (IEntityRelation)GetRelationsForField("ProductVendors")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity, 0, null, null, null, null, "ProductVendors", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderDetail' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPurchaseOrderDetails - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderDetailEntityFactory))), (IEntityRelation)GetRelationsForField("PurchaseOrderDetails")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity, 0, null, null, null, null, "PurchaseOrderDetails", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ShoppingCartItem' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathShoppingCartItems - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ShoppingCartItemEntityFactory))), (IEntityRelation)GetRelationsForField("ShoppingCartItems")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShoppingCartItemEntity, 0, null, null, null, null, "ShoppingCartItems", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOfferProduct' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSpecialOfferProducts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferProductEntityFactory))), (IEntityRelation)GetRelationsForField("SpecialOfferProducts")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity, 0, null, null, null, null, "SpecialOfferProducts", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TransactionHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathTransactionHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(TransactionHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("TransactionHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryEntity, 0, null, null, null, null, "TransactionHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrder' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathWorkOrders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderEntityFactory))), (IEntityRelation)GetRelationsForField("WorkOrders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity, 0, null, null, null, null, "WorkOrders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModel' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModel - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModel")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity, 0, null, null, null, null, "ProductModel", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductSubcategory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductSubcategory - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductSubcategoryEntityFactory))), (IEntityRelation)GetRelationsForField("ProductSubcategory")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity, 0, null, null, null, null, "ProductSubcategory", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathUnitMeasure - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(UnitMeasureEntityFactory))), (IEntityRelation)GetRelationsForField("UnitMeasure")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, 0, null, null, null, null, "UnitMeasure", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathUnitMeasure_ - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(UnitMeasureEntityFactory))), (IEntityRelation)GetRelationsForField("UnitMeasure_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, 0, null, null, null, null, "UnitMeasure_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Class property of the Entity Product

- /// Mapped on table field: "Product"."Class"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Class - { - get { return (System.String)GetValue((int)ProductFieldIndex.Class, true); } - set { SetValue((int)ProductFieldIndex.Class, value); } - } - - /// The Color property of the Entity Product

- /// Mapped on table field: "Product"."Color"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Color - { - get { return (System.String)GetValue((int)ProductFieldIndex.Color, true); } - set { SetValue((int)ProductFieldIndex.Color, value); } - } - - /// The DaysToManufacture property of the Entity Product

- /// Mapped on table field: "Product"."DaysToManufacture"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 DaysToManufacture - { - get { return (System.Int32)GetValue((int)ProductFieldIndex.DaysToManufacture, true); } - set { SetValue((int)ProductFieldIndex.DaysToManufacture, value); } - } - - /// The DiscontinuedDate property of the Entity Product

- /// Mapped on table field: "Product"."DiscontinuedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable DiscontinuedDate - { - get { return (Nullable)GetValue((int)ProductFieldIndex.DiscontinuedDate, false); } - set { SetValue((int)ProductFieldIndex.DiscontinuedDate, value); } - } - - /// The FinishedGoodsFlag property of the Entity Product

- /// Mapped on table field: "Product"."FinishedGoodsFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean FinishedGoodsFlag - { - get { return (System.Boolean)GetValue((int)ProductFieldIndex.FinishedGoodsFlag, true); } - set { SetValue((int)ProductFieldIndex.FinishedGoodsFlag, value); } - } - - /// The ListPrice property of the Entity Product

- /// Mapped on table field: "Product"."ListPrice"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal ListPrice - { - get { return (System.Decimal)GetValue((int)ProductFieldIndex.ListPrice, true); } - set { SetValue((int)ProductFieldIndex.ListPrice, value); } - } - - /// The MakeFlag property of the Entity Product

- /// Mapped on table field: "Product"."MakeFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean MakeFlag - { - get { return (System.Boolean)GetValue((int)ProductFieldIndex.MakeFlag, true); } - set { SetValue((int)ProductFieldIndex.MakeFlag, value); } - } - - /// The ModifiedDate property of the Entity Product

- /// Mapped on table field: "Product"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Product

- /// Mapped on table field: "Product"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ProductFieldIndex.Name, true); } - set { SetValue((int)ProductFieldIndex.Name, value); } - } - - /// The ProductId property of the Entity Product

- /// Mapped on table field: "Product"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductFieldIndex.ProductId, true); } - set { SetValue((int)ProductFieldIndex.ProductId, value); } - } - - /// The ProductLine property of the Entity Product

- /// Mapped on table field: "Product"."ProductLine"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String ProductLine - { - get { return (System.String)GetValue((int)ProductFieldIndex.ProductLine, true); } - set { SetValue((int)ProductFieldIndex.ProductLine, value); } - } - - /// The ProductModelId property of the Entity Product

- /// Mapped on table field: "Product"."ProductModelID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ProductModelId - { - get { return (Nullable)GetValue((int)ProductFieldIndex.ProductModelId, false); } - set { SetValue((int)ProductFieldIndex.ProductModelId, value); } - } - - /// The ProductNumber property of the Entity Product

- /// Mapped on table field: "Product"."ProductNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String ProductNumber - { - get { return (System.String)GetValue((int)ProductFieldIndex.ProductNumber, true); } - set { SetValue((int)ProductFieldIndex.ProductNumber, value); } - } - - /// The ProductSubcategoryId property of the Entity Product

- /// Mapped on table field: "Product"."ProductSubcategoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ProductSubcategoryId - { - get { return (Nullable)GetValue((int)ProductFieldIndex.ProductSubcategoryId, false); } - set { SetValue((int)ProductFieldIndex.ProductSubcategoryId, value); } - } - - /// The ReorderPoint property of the Entity Product

- /// Mapped on table field: "Product"."ReorderPoint"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 ReorderPoint - { - get { return (System.Int16)GetValue((int)ProductFieldIndex.ReorderPoint, true); } - set { SetValue((int)ProductFieldIndex.ReorderPoint, value); } - } - - /// The Rowguid property of the Entity Product

- /// Mapped on table field: "Product"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)ProductFieldIndex.Rowguid, true); } - set { SetValue((int)ProductFieldIndex.Rowguid, value); } - } - - /// The SafetyStockLevel property of the Entity Product

- /// Mapped on table field: "Product"."SafetyStockLevel"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 SafetyStockLevel - { - get { return (System.Int16)GetValue((int)ProductFieldIndex.SafetyStockLevel, true); } - set { SetValue((int)ProductFieldIndex.SafetyStockLevel, value); } - } - - /// The SellEndDate property of the Entity Product

- /// Mapped on table field: "Product"."SellEndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable SellEndDate - { - get { return (Nullable)GetValue((int)ProductFieldIndex.SellEndDate, false); } - set { SetValue((int)ProductFieldIndex.SellEndDate, value); } - } - - /// The SellStartDate property of the Entity Product

- /// Mapped on table field: "Product"."SellStartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime SellStartDate - { - get { return (System.DateTime)GetValue((int)ProductFieldIndex.SellStartDate, true); } - set { SetValue((int)ProductFieldIndex.SellStartDate, value); } - } - - /// The Size property of the Entity Product

- /// Mapped on table field: "Product"."Size"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 5
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Size - { - get { return (System.String)GetValue((int)ProductFieldIndex.Size, true); } - set { SetValue((int)ProductFieldIndex.Size, value); } - } - - /// The SizeUnitMeasureCode property of the Entity Product

- /// Mapped on table field: "Product"."SizeUnitMeasureCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String SizeUnitMeasureCode - { - get { return (System.String)GetValue((int)ProductFieldIndex.SizeUnitMeasureCode, true); } - set { SetValue((int)ProductFieldIndex.SizeUnitMeasureCode, value); } - } - - /// The StandardCost property of the Entity Product

- /// Mapped on table field: "Product"."StandardCost"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal StandardCost - { - get { return (System.Decimal)GetValue((int)ProductFieldIndex.StandardCost, true); } - set { SetValue((int)ProductFieldIndex.StandardCost, value); } - } - - /// The Style property of the Entity Product

- /// Mapped on table field: "Product"."Style"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Style - { - get { return (System.String)GetValue((int)ProductFieldIndex.Style, true); } - set { SetValue((int)ProductFieldIndex.Style, value); } - } - - /// The Weight property of the Entity Product

- /// Mapped on table field: "Product"."Weight"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable Weight - { - get { return (Nullable)GetValue((int)ProductFieldIndex.Weight, false); } - set { SetValue((int)ProductFieldIndex.Weight, value); } - } - - /// The WeightUnitMeasureCode property of the Entity Product

- /// Mapped on table field: "Product"."WeightUnitMeasureCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String WeightUnitMeasureCode - { - get { return (System.String)GetValue((int)ProductFieldIndex.WeightUnitMeasureCode, true); } - set { SetValue((int)ProductFieldIndex.WeightUnitMeasureCode, value); } - } - - /// Gets the EntityCollection with the related entities of type 'BillOfMaterialEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BillOfMaterialEntity))] - public virtual EntityCollection BillOfMaterials - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _billOfMaterials); } - } - - /// Gets the EntityCollection with the related entities of type 'BillOfMaterialEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BillOfMaterialEntity))] - public virtual EntityCollection BillOfMaterials_ - { - get { return GetOrCreateEntityCollection("Product_", true, false, ref _billOfMaterials_); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductCostHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductCostHistoryEntity))] - public virtual EntityCollection ProductCostHistories - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _productCostHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductDocumentEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductDocumentEntity))] - public virtual EntityCollection ProductDocuments - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _productDocuments); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductInventoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductInventoryEntity))] - public virtual EntityCollection ProductInventories - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _productInventories); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductListPriceHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductListPriceHistoryEntity))] - public virtual EntityCollection ProductListPriceHistories - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _productListPriceHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductProductPhotoEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductProductPhotoEntity))] - public virtual EntityCollection ProductProductPhotos - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _productProductPhotos); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductReviewEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductReviewEntity))] - public virtual EntityCollection ProductReviews - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _productReviews); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductVendorEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductVendorEntity))] - public virtual EntityCollection ProductVendors - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _productVendors); } - } - - /// Gets the EntityCollection with the related entities of type 'PurchaseOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(PurchaseOrderDetailEntity))] - public virtual EntityCollection PurchaseOrderDetails - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _purchaseOrderDetails); } - } - - /// Gets the EntityCollection with the related entities of type 'ShoppingCartItemEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ShoppingCartItemEntity))] - public virtual EntityCollection ShoppingCartItems - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _shoppingCartItems); } - } - - /// Gets the EntityCollection with the related entities of type 'SpecialOfferProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SpecialOfferProductEntity))] - public virtual EntityCollection SpecialOfferProducts - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _specialOfferProducts); } - } - - /// Gets the EntityCollection with the related entities of type 'TransactionHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(TransactionHistoryEntity))] - public virtual EntityCollection TransactionHistories - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _transactionHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'WorkOrderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(WorkOrderEntity))] - public virtual EntityCollection WorkOrders - { - get { return GetOrCreateEntityCollection("Product", true, false, ref _workOrders); } - } - - /// Gets / sets related entity of type 'ProductModelEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductModelEntity ProductModel - { - get { return _productModel; } - set - { - if(this.IsDeserializing) - { - SetupSyncProductModel(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Products", "ProductModel", _productModel, true); - } - } - } - - /// Gets / sets related entity of type 'ProductSubcategoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductSubcategoryEntity ProductSubcategory - { - get { return _productSubcategory; } - set - { - if(this.IsDeserializing) - { - SetupSyncProductSubcategory(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Products", "ProductSubcategory", _productSubcategory, true); - } - } - } - - /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual UnitMeasureEntity UnitMeasure - { - get { return _unitMeasure; } - set - { - if(this.IsDeserializing) - { - SetupSyncUnitMeasure(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Products", "UnitMeasure", _unitMeasure, true); - } - } - } - - /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual UnitMeasureEntity UnitMeasure_ - { - get { return _unitMeasure_; } - set - { - if(this.IsDeserializing) - { - SetupSyncUnitMeasure_(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Products_", "UnitMeasure_", _unitMeasure_, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs deleted file mode 100644 index 60ef5ea5..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs +++ /dev/null @@ -1,667 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductInventory'.

- [Serializable] - public partial class ProductInventoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private LocationEntity _location; - private ProductEntity _product; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Location - public static readonly string Location = "Location"; - /// Member name Product - public static readonly string Product = "Product"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductInventoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductInventoryEntity():base("ProductInventoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductInventoryEntity(IEntityFields2 fields):base("ProductInventoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductInventoryEntity - public ProductInventoryEntity(IValidator validator):base("ProductInventoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductInventory which data should be fetched into this ProductInventory object - /// PK value for ProductInventory which data should be fetched into this ProductInventory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductInventoryEntity(System.Int16 locationId, System.Int32 productId):base("ProductInventoryEntity") - { - InitClassEmpty(null, null); - this.LocationId = locationId; - this.ProductId = productId; - } - - /// CTor - /// PK value for ProductInventory which data should be fetched into this ProductInventory object - /// PK value for ProductInventory which data should be fetched into this ProductInventory object - /// The custom validator object for this ProductInventoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductInventoryEntity(System.Int16 locationId, System.Int32 productId, IValidator validator):base("ProductInventoryEntity") - { - InitClassEmpty(validator, null); - this.LocationId = locationId; - this.ProductId = productId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductInventoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _location = (LocationEntity)info.GetValue("_location", typeof(LocationEntity)); - if(_location!=null) - { - _location.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductInventoryFieldIndex)fieldIndex) - { - case ProductInventoryFieldIndex.LocationId: - DesetupSyncLocation(true, false); - break; - case ProductInventoryFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Location": - this.Location = (LocationEntity)entity; - break; - case "Product": - this.Product = (ProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Location": - toReturn.Add(Relations.LocationEntityUsingLocationId); - break; - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Location": - SetupSyncLocation(relatedEntity); - break; - case "Product": - SetupSyncProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Location": - DesetupSyncLocation(false, true); - break; - case "Product": - DesetupSyncProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_location!=null) - { - toReturn.Add(_location); - } - if(_product!=null) - { - toReturn.Add(_product); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_location", (!this.MarkedForDeletion?_location:null)); - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductInventoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Location' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoLocation() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(LocationFields.LocationId, null, ComparisonOperator.Equal, this.LocationId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductInventoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Location", _location); - toReturn.Add("Product", _product); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Bin", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LocationId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Quantity", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Shelf", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _location - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncLocation(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _location, new PropertyChangedEventHandler(OnLocationPropertyChanged), "Location", "ProductInventories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductInventoryRelations.LocationEntityUsingLocationIdStatic, true, new int[] { (int)ProductInventoryFieldIndex.LocationId }); - } - - /// setups the sync logic for member _location - /// Instance to set as the related entity of type entityType - private void SetupSyncLocation(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _location, new PropertyChangedEventHandler( OnLocationPropertyChanged ), "Location", "ProductInventories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductInventoryRelations.LocationEntityUsingLocationIdStatic, true, new string[] { }, new int[] { (int)ProductInventoryFieldIndex.LocationId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnLocationPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ProductInventories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductInventoryRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ProductInventoryFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ProductInventories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductInventoryRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ProductInventoryFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductInventoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductInventoryRelations Relations - { - get { return new ProductInventoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Location' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathLocation - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(LocationEntityFactory))), (IEntityRelation)GetRelationsForField("Location")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity, 0, null, null, null, null, "Location", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Bin property of the Entity ProductInventory

- /// Mapped on table field: "ProductInventory"."Bin"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte Bin - { - get { return (System.Byte)GetValue((int)ProductInventoryFieldIndex.Bin, true); } - set { SetValue((int)ProductInventoryFieldIndex.Bin, value); } - } - - /// The LocationId property of the Entity ProductInventory

- /// Mapped on table field: "ProductInventory"."LocationID"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int16 LocationId - { - get { return (System.Int16)GetValue((int)ProductInventoryFieldIndex.LocationId, true); } - set { SetValue((int)ProductInventoryFieldIndex.LocationId, value); } - } - - /// The ModifiedDate property of the Entity ProductInventory

- /// Mapped on table field: "ProductInventory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductInventoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductInventoryFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity ProductInventory

- /// Mapped on table field: "ProductInventory"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductInventoryFieldIndex.ProductId, true); } - set { SetValue((int)ProductInventoryFieldIndex.ProductId, value); } - } - - /// The Quantity property of the Entity ProductInventory

- /// Mapped on table field: "ProductInventory"."Quantity"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 Quantity - { - get { return (System.Int16)GetValue((int)ProductInventoryFieldIndex.Quantity, true); } - set { SetValue((int)ProductInventoryFieldIndex.Quantity, value); } - } - - /// The Rowguid property of the Entity ProductInventory

- /// Mapped on table field: "ProductInventory"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)ProductInventoryFieldIndex.Rowguid, true); } - set { SetValue((int)ProductInventoryFieldIndex.Rowguid, value); } - } - - /// The Shelf property of the Entity ProductInventory

- /// Mapped on table field: "ProductInventory"."Shelf"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 10
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Shelf - { - get { return (System.String)GetValue((int)ProductInventoryFieldIndex.Shelf, true); } - set { SetValue((int)ProductInventoryFieldIndex.Shelf, value); } - } - - /// Gets / sets related entity of type 'LocationEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual LocationEntity Location - { - get { return _location; } - set - { - if(this.IsDeserializing) - { - SetupSyncLocation(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductInventories", "Location", _location, true); - } - } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductInventories", "Product", _product, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs deleted file mode 100644 index 035fe679..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs +++ /dev/null @@ -1,553 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductListPriceHistory'.

- [Serializable] - public partial class ProductListPriceHistoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductListPriceHistoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductListPriceHistoryEntity():base("ProductListPriceHistoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductListPriceHistoryEntity(IEntityFields2 fields):base("ProductListPriceHistoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductListPriceHistoryEntity - public ProductListPriceHistoryEntity(IValidator validator):base("ProductListPriceHistoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object - /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductListPriceHistoryEntity(System.Int32 productId, System.DateTime startDate):base("ProductListPriceHistoryEntity") - { - InitClassEmpty(null, null); - this.ProductId = productId; - this.StartDate = startDate; - } - - /// CTor - /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object - /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object - /// The custom validator object for this ProductListPriceHistoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductListPriceHistoryEntity(System.Int32 productId, System.DateTime startDate, IValidator validator):base("ProductListPriceHistoryEntity") - { - InitClassEmpty(validator, null); - this.ProductId = productId; - this.StartDate = startDate; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductListPriceHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductListPriceHistoryFieldIndex)fieldIndex) - { - case ProductListPriceHistoryFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductListPriceHistoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductListPriceHistoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ListPrice", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartDate", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ProductListPriceHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductListPriceHistoryRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ProductListPriceHistoryFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ProductListPriceHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductListPriceHistoryRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ProductListPriceHistoryFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductListPriceHistoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductListPriceHistoryRelations Relations - { - get { return new ProductListPriceHistoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductListPriceHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The EndDate property of the Entity ProductListPriceHistory

- /// Mapped on table field: "ProductListPriceHistory"."EndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable EndDate - { - get { return (Nullable)GetValue((int)ProductListPriceHistoryFieldIndex.EndDate, false); } - set { SetValue((int)ProductListPriceHistoryFieldIndex.EndDate, value); } - } - - /// The ListPrice property of the Entity ProductListPriceHistory

- /// Mapped on table field: "ProductListPriceHistory"."ListPrice"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal ListPrice - { - get { return (System.Decimal)GetValue((int)ProductListPriceHistoryFieldIndex.ListPrice, true); } - set { SetValue((int)ProductListPriceHistoryFieldIndex.ListPrice, value); } - } - - /// The ModifiedDate property of the Entity ProductListPriceHistory

- /// Mapped on table field: "ProductListPriceHistory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductListPriceHistoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductListPriceHistoryFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity ProductListPriceHistory

- /// Mapped on table field: "ProductListPriceHistory"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductListPriceHistoryFieldIndex.ProductId, true); } - set { SetValue((int)ProductListPriceHistoryFieldIndex.ProductId, value); } - } - - /// The StartDate property of the Entity ProductListPriceHistory

- /// Mapped on table field: "ProductListPriceHistory"."StartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.DateTime StartDate - { - get { return (System.DateTime)GetValue((int)ProductListPriceHistoryFieldIndex.StartDate, true); } - set { SetValue((int)ProductListPriceHistoryFieldIndex.StartDate, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductListPriceHistories", "Product", _product, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductListPriceHistoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelEntity.cs deleted file mode 100644 index 296ed238..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelEntity.cs +++ /dev/null @@ -1,597 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductModel'.

- [Serializable] - public partial class ProductModelEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _products; - private EntityCollection _productModelIllustrations; - private EntityCollection _productModelProductDescriptionCultures; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Products - public static readonly string Products = "Products"; - /// Member name ProductModelIllustrations - public static readonly string ProductModelIllustrations = "ProductModelIllustrations"; - /// Member name ProductModelProductDescriptionCultures - public static readonly string ProductModelProductDescriptionCultures = "ProductModelProductDescriptionCultures"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductModelEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductModelEntity():base("ProductModelEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductModelEntity(IEntityFields2 fields):base("ProductModelEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductModelEntity - public ProductModelEntity(IValidator validator):base("ProductModelEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductModel which data should be fetched into this ProductModel object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductModelEntity(System.Int32 productModelId):base("ProductModelEntity") - { - InitClassEmpty(null, null); - this.ProductModelId = productModelId; - } - - /// CTor - /// PK value for ProductModel which data should be fetched into this ProductModel object - /// The custom validator object for this ProductModelEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductModelEntity(System.Int32 productModelId, IValidator validator):base("ProductModelEntity") - { - InitClassEmpty(validator, null); - this.ProductModelId = productModelId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductModelEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _products = (EntityCollection)info.GetValue("_products", typeof(EntityCollection)); - _productModelIllustrations = (EntityCollection)info.GetValue("_productModelIllustrations", typeof(EntityCollection)); - _productModelProductDescriptionCultures = (EntityCollection)info.GetValue("_productModelProductDescriptionCultures", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Products": - this.Products.Add((ProductEntity)entity); - break; - case "ProductModelIllustrations": - this.ProductModelIllustrations.Add((ProductModelIllustrationEntity)entity); - break; - case "ProductModelProductDescriptionCultures": - this.ProductModelProductDescriptionCultures.Add((ProductModelProductDescriptionCultureEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Products": - toReturn.Add(Relations.ProductEntityUsingProductModelId); - break; - case "ProductModelIllustrations": - toReturn.Add(Relations.ProductModelIllustrationEntityUsingProductModelId); - break; - case "ProductModelProductDescriptionCultures": - toReturn.Add(Relations.ProductModelProductDescriptionCultureEntityUsingProductModelId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Products": - this.Products.Add((ProductEntity)relatedEntity); - break; - case "ProductModelIllustrations": - this.ProductModelIllustrations.Add((ProductModelIllustrationEntity)relatedEntity); - break; - case "ProductModelProductDescriptionCultures": - this.ProductModelProductDescriptionCultures.Add((ProductModelProductDescriptionCultureEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Products": - this.PerformRelatedEntityRemoval(this.Products, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductModelIllustrations": - this.PerformRelatedEntityRemoval(this.ProductModelIllustrations, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductModelProductDescriptionCultures": - this.PerformRelatedEntityRemoval(this.ProductModelProductDescriptionCultures, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.Products); - toReturn.Add(this.ProductModelIllustrations); - toReturn.Add(this.ProductModelProductDescriptionCultures); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_products", ((_products!=null) && (_products.Count>0) && !this.MarkedForDeletion)?_products:null); - info.AddValue("_productModelIllustrations", ((_productModelIllustrations!=null) && (_productModelIllustrations.Count>0) && !this.MarkedForDeletion)?_productModelIllustrations:null); - info.AddValue("_productModelProductDescriptionCultures", ((_productModelProductDescriptionCultures!=null) && (_productModelProductDescriptionCultures.Count>0) && !this.MarkedForDeletion)?_productModelProductDescriptionCultures:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductModelRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProducts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductModelId, null, ComparisonOperator.Equal, this.ProductModelId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelIllustration' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModelIllustrations() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelIllustrationFields.ProductModelId, null, ComparisonOperator.Equal, this.ProductModelId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelProductDescriptionCulture' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModelProductDescriptionCultures() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelProductDescriptionCultureFields.ProductModelId, null, ComparisonOperator.Equal, this.ProductModelId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductModelEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._products); - collectionsQueue.Enqueue(this._productModelIllustrations); - collectionsQueue.Enqueue(this._productModelProductDescriptionCultures); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._products = (EntityCollection) collectionsQueue.Dequeue(); - this._productModelIllustrations = (EntityCollection) collectionsQueue.Dequeue(); - this._productModelProductDescriptionCultures = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._products != null); - toReturn |=(this._productModelIllustrations != null); - toReturn |=(this._productModelProductDescriptionCultures != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelIllustrationEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelProductDescriptionCultureEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Products", _products); - toReturn.Add("ProductModelIllustrations", _productModelIllustrations); - toReturn.Add("ProductModelProductDescriptionCultures", _productModelProductDescriptionCultures); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CatalogDescription", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Instructions", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductModelId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductModelEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductModelRelations Relations - { - get { return new ProductModelRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProducts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Products")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Products", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelIllustration' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModelIllustrations - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelIllustrationEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModelIllustrations")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity, 0, null, null, null, null, "ProductModelIllustrations", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelProductDescriptionCulture' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModelProductDescriptionCultures - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelProductDescriptionCultureEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModelProductDescriptionCultures")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity, 0, null, null, null, null, "ProductModelProductDescriptionCultures", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CatalogDescription property of the Entity ProductModel

- /// Mapped on table field: "ProductModel"."CatalogDescription"
- /// Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String CatalogDescription - { - get { return (System.String)GetValue((int)ProductModelFieldIndex.CatalogDescription, true); } - set { SetValue((int)ProductModelFieldIndex.CatalogDescription, value); } - } - - /// The Instructions property of the Entity ProductModel

- /// Mapped on table field: "ProductModel"."Instructions"
- /// Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Instructions - { - get { return (System.String)GetValue((int)ProductModelFieldIndex.Instructions, true); } - set { SetValue((int)ProductModelFieldIndex.Instructions, value); } - } - - /// The ModifiedDate property of the Entity ProductModel

- /// Mapped on table field: "ProductModel"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductModelFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductModelFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity ProductModel

- /// Mapped on table field: "ProductModel"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ProductModelFieldIndex.Name, true); } - set { SetValue((int)ProductModelFieldIndex.Name, value); } - } - - /// The ProductModelId property of the Entity ProductModel

- /// Mapped on table field: "ProductModel"."ProductModelID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ProductModelId - { - get { return (System.Int32)GetValue((int)ProductModelFieldIndex.ProductModelId, true); } - set { SetValue((int)ProductModelFieldIndex.ProductModelId, value); } - } - - /// The Rowguid property of the Entity ProductModel

- /// Mapped on table field: "ProductModel"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)ProductModelFieldIndex.Rowguid, true); } - set { SetValue((int)ProductModelFieldIndex.Rowguid, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductEntity))] - public virtual EntityCollection Products - { - get { return GetOrCreateEntityCollection("ProductModel", true, false, ref _products); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductModelIllustrationEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductModelIllustrationEntity))] - public virtual EntityCollection ProductModelIllustrations - { - get { return GetOrCreateEntityCollection("ProductModel", true, false, ref _productModelIllustrations); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductModelProductDescriptionCultureEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductModelProductDescriptionCultureEntity))] - public virtual EntityCollection ProductModelProductDescriptionCultures - { - get { return GetOrCreateEntityCollection("ProductModel", true, false, ref _productModelProductDescriptionCultures); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs deleted file mode 100644 index b92d08d4..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs +++ /dev/null @@ -1,619 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductModelIllustration'.

- [Serializable] - public partial class ProductModelIllustrationEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private IllustrationEntity _illustration; - private ProductModelEntity _productModel; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Illustration - public static readonly string Illustration = "Illustration"; - /// Member name ProductModel - public static readonly string ProductModel = "ProductModel"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductModelIllustrationEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductModelIllustrationEntity():base("ProductModelIllustrationEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductModelIllustrationEntity(IEntityFields2 fields):base("ProductModelIllustrationEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductModelIllustrationEntity - public ProductModelIllustrationEntity(IValidator validator):base("ProductModelIllustrationEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object - /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductModelIllustrationEntity(System.Int32 illustrationId, System.Int32 productModelId):base("ProductModelIllustrationEntity") - { - InitClassEmpty(null, null); - this.IllustrationId = illustrationId; - this.ProductModelId = productModelId; - } - - /// CTor - /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object - /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object - /// The custom validator object for this ProductModelIllustrationEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductModelIllustrationEntity(System.Int32 illustrationId, System.Int32 productModelId, IValidator validator):base("ProductModelIllustrationEntity") - { - InitClassEmpty(validator, null); - this.IllustrationId = illustrationId; - this.ProductModelId = productModelId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductModelIllustrationEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _illustration = (IllustrationEntity)info.GetValue("_illustration", typeof(IllustrationEntity)); - if(_illustration!=null) - { - _illustration.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _productModel = (ProductModelEntity)info.GetValue("_productModel", typeof(ProductModelEntity)); - if(_productModel!=null) - { - _productModel.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductModelIllustrationFieldIndex)fieldIndex) - { - case ProductModelIllustrationFieldIndex.IllustrationId: - DesetupSyncIllustration(true, false); - break; - case ProductModelIllustrationFieldIndex.ProductModelId: - DesetupSyncProductModel(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Illustration": - this.Illustration = (IllustrationEntity)entity; - break; - case "ProductModel": - this.ProductModel = (ProductModelEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Illustration": - toReturn.Add(Relations.IllustrationEntityUsingIllustrationId); - break; - case "ProductModel": - toReturn.Add(Relations.ProductModelEntityUsingProductModelId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Illustration": - SetupSyncIllustration(relatedEntity); - break; - case "ProductModel": - SetupSyncProductModel(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Illustration": - DesetupSyncIllustration(false, true); - break; - case "ProductModel": - DesetupSyncProductModel(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_illustration!=null) - { - toReturn.Add(_illustration); - } - if(_productModel!=null) - { - toReturn.Add(_productModel); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_illustration", (!this.MarkedForDeletion?_illustration:null)); - info.AddValue("_productModel", (!this.MarkedForDeletion?_productModel:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductModelIllustrationRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Illustration' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoIllustration() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(IllustrationFields.IllustrationId, null, ComparisonOperator.Equal, this.IllustrationId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductModel' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModel() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelFields.ProductModelId, null, ComparisonOperator.Equal, this.ProductModelId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductModelIllustrationEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Illustration", _illustration); - toReturn.Add("ProductModel", _productModel); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("IllustrationId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductModelId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _illustration - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncIllustration(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _illustration, new PropertyChangedEventHandler(OnIllustrationPropertyChanged), "Illustration", "ProductModelIllustrations", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelIllustrationRelations.IllustrationEntityUsingIllustrationIdStatic, true, new int[] { (int)ProductModelIllustrationFieldIndex.IllustrationId }); - } - - /// setups the sync logic for member _illustration - /// Instance to set as the related entity of type entityType - private void SetupSyncIllustration(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _illustration, new PropertyChangedEventHandler( OnIllustrationPropertyChanged ), "Illustration", "ProductModelIllustrations", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelIllustrationRelations.IllustrationEntityUsingIllustrationIdStatic, true, new string[] { }, new int[] { (int)ProductModelIllustrationFieldIndex.IllustrationId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnIllustrationPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _productModel - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProductModel(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _productModel, new PropertyChangedEventHandler(OnProductModelPropertyChanged), "ProductModel", "ProductModelIllustrations", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelIllustrationRelations.ProductModelEntityUsingProductModelIdStatic, true, new int[] { (int)ProductModelIllustrationFieldIndex.ProductModelId }); - } - - /// setups the sync logic for member _productModel - /// Instance to set as the related entity of type entityType - private void SetupSyncProductModel(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _productModel, new PropertyChangedEventHandler( OnProductModelPropertyChanged ), "ProductModel", "ProductModelIllustrations", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelIllustrationRelations.ProductModelEntityUsingProductModelIdStatic, true, new string[] { }, new int[] { (int)ProductModelIllustrationFieldIndex.ProductModelId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductModelPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductModelIllustrationEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductModelIllustrationRelations Relations - { - get { return new ProductModelIllustrationRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Illustration' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathIllustration - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(IllustrationEntityFactory))), (IEntityRelation)GetRelationsForField("Illustration")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.IllustrationEntity, 0, null, null, null, null, "Illustration", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModel' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModel - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModel")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity, 0, null, null, null, null, "ProductModel", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The IllustrationId property of the Entity ProductModelIllustration

- /// Mapped on table field: "ProductModelIllustration"."IllustrationID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 IllustrationId - { - get { return (System.Int32)GetValue((int)ProductModelIllustrationFieldIndex.IllustrationId, true); } - set { SetValue((int)ProductModelIllustrationFieldIndex.IllustrationId, value); } - } - - /// The ModifiedDate property of the Entity ProductModelIllustration

- /// Mapped on table field: "ProductModelIllustration"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductModelIllustrationFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductModelIllustrationFieldIndex.ModifiedDate, value); } - } - - /// The ProductModelId property of the Entity ProductModelIllustration

- /// Mapped on table field: "ProductModelIllustration"."ProductModelID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductModelId - { - get { return (System.Int32)GetValue((int)ProductModelIllustrationFieldIndex.ProductModelId, true); } - set { SetValue((int)ProductModelIllustrationFieldIndex.ProductModelId, value); } - } - - /// Gets / sets related entity of type 'IllustrationEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual IllustrationEntity Illustration - { - get { return _illustration; } - set - { - if(this.IsDeserializing) - { - SetupSyncIllustration(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductModelIllustrations", "Illustration", _illustration, true); - } - } - } - - /// Gets / sets related entity of type 'ProductModelEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductModelEntity ProductModel - { - get { return _productModel; } - set - { - if(this.IsDeserializing) - { - SetupSyncProductModel(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductModelIllustrations", "ProductModel", _productModel, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs deleted file mode 100644 index 1540bcfa..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs +++ /dev/null @@ -1,725 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductModelProductDescriptionCulture'.

- [Serializable] - public partial class ProductModelProductDescriptionCultureEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private CultureEntity _culture; - private ProductDescriptionEntity _productDescription; - private ProductModelEntity _productModel; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Culture - public static readonly string Culture = "Culture"; - /// Member name ProductDescription - public static readonly string ProductDescription = "ProductDescription"; - /// Member name ProductModel - public static readonly string ProductModel = "ProductModel"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductModelProductDescriptionCultureEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductModelProductDescriptionCultureEntity():base("ProductModelProductDescriptionCultureEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductModelProductDescriptionCultureEntity(IEntityFields2 fields):base("ProductModelProductDescriptionCultureEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductModelProductDescriptionCultureEntity - public ProductModelProductDescriptionCultureEntity(IValidator validator):base("ProductModelProductDescriptionCultureEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object - /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object - /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductModelProductDescriptionCultureEntity(System.String cultureId, System.Int32 productDescriptionId, System.Int32 productModelId):base("ProductModelProductDescriptionCultureEntity") - { - InitClassEmpty(null, null); - this.CultureId = cultureId; - this.ProductDescriptionId = productDescriptionId; - this.ProductModelId = productModelId; - } - - /// CTor - /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object - /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object - /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object - /// The custom validator object for this ProductModelProductDescriptionCultureEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductModelProductDescriptionCultureEntity(System.String cultureId, System.Int32 productDescriptionId, System.Int32 productModelId, IValidator validator):base("ProductModelProductDescriptionCultureEntity") - { - InitClassEmpty(validator, null); - this.CultureId = cultureId; - this.ProductDescriptionId = productDescriptionId; - this.ProductModelId = productModelId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductModelProductDescriptionCultureEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _culture = (CultureEntity)info.GetValue("_culture", typeof(CultureEntity)); - if(_culture!=null) - { - _culture.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _productDescription = (ProductDescriptionEntity)info.GetValue("_productDescription", typeof(ProductDescriptionEntity)); - if(_productDescription!=null) - { - _productDescription.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _productModel = (ProductModelEntity)info.GetValue("_productModel", typeof(ProductModelEntity)); - if(_productModel!=null) - { - _productModel.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductModelProductDescriptionCultureFieldIndex)fieldIndex) - { - case ProductModelProductDescriptionCultureFieldIndex.CultureId: - DesetupSyncCulture(true, false); - break; - case ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId: - DesetupSyncProductDescription(true, false); - break; - case ProductModelProductDescriptionCultureFieldIndex.ProductModelId: - DesetupSyncProductModel(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Culture": - this.Culture = (CultureEntity)entity; - break; - case "ProductDescription": - this.ProductDescription = (ProductDescriptionEntity)entity; - break; - case "ProductModel": - this.ProductModel = (ProductModelEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Culture": - toReturn.Add(Relations.CultureEntityUsingCultureId); - break; - case "ProductDescription": - toReturn.Add(Relations.ProductDescriptionEntityUsingProductDescriptionId); - break; - case "ProductModel": - toReturn.Add(Relations.ProductModelEntityUsingProductModelId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Culture": - SetupSyncCulture(relatedEntity); - break; - case "ProductDescription": - SetupSyncProductDescription(relatedEntity); - break; - case "ProductModel": - SetupSyncProductModel(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Culture": - DesetupSyncCulture(false, true); - break; - case "ProductDescription": - DesetupSyncProductDescription(false, true); - break; - case "ProductModel": - DesetupSyncProductModel(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_culture!=null) - { - toReturn.Add(_culture); - } - if(_productDescription!=null) - { - toReturn.Add(_productDescription); - } - if(_productModel!=null) - { - toReturn.Add(_productModel); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_culture", (!this.MarkedForDeletion?_culture:null)); - info.AddValue("_productDescription", (!this.MarkedForDeletion?_productDescription:null)); - info.AddValue("_productModel", (!this.MarkedForDeletion?_productModel:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductModelProductDescriptionCultureRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Culture' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCulture() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CultureFields.CultureId, null, ComparisonOperator.Equal, this.CultureId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductDescription' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductDescription() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductDescriptionFields.ProductDescriptionId, null, ComparisonOperator.Equal, this.ProductDescriptionId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductModel' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductModel() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductModelFields.ProductModelId, null, ComparisonOperator.Equal, this.ProductModelId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductModelProductDescriptionCultureEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Culture", _culture); - toReturn.Add("ProductDescription", _productDescription); - toReturn.Add("ProductModel", _productModel); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CultureId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductDescriptionId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductModelId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _culture - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCulture(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _culture, new PropertyChangedEventHandler(OnCulturePropertyChanged), "Culture", "ProductModelProductDescriptionCultures", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelProductDescriptionCultureRelations.CultureEntityUsingCultureIdStatic, true, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.CultureId }); - } - - /// setups the sync logic for member _culture - /// Instance to set as the related entity of type entityType - private void SetupSyncCulture(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _culture, new PropertyChangedEventHandler( OnCulturePropertyChanged ), "Culture", "ProductModelProductDescriptionCultures", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelProductDescriptionCultureRelations.CultureEntityUsingCultureIdStatic, true, new string[] { }, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.CultureId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCulturePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _productDescription - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProductDescription(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _productDescription, new PropertyChangedEventHandler(OnProductDescriptionPropertyChanged), "ProductDescription", "ProductModelProductDescriptionCultures", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelProductDescriptionCultureRelations.ProductDescriptionEntityUsingProductDescriptionIdStatic, true, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId }); - } - - /// setups the sync logic for member _productDescription - /// Instance to set as the related entity of type entityType - private void SetupSyncProductDescription(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _productDescription, new PropertyChangedEventHandler( OnProductDescriptionPropertyChanged ), "ProductDescription", "ProductModelProductDescriptionCultures", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelProductDescriptionCultureRelations.ProductDescriptionEntityUsingProductDescriptionIdStatic, true, new string[] { }, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductDescriptionPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _productModel - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProductModel(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _productModel, new PropertyChangedEventHandler(OnProductModelPropertyChanged), "ProductModel", "ProductModelProductDescriptionCultures", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelProductDescriptionCultureRelations.ProductModelEntityUsingProductModelIdStatic, true, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId }); - } - - /// setups the sync logic for member _productModel - /// Instance to set as the related entity of type entityType - private void SetupSyncProductModel(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _productModel, new PropertyChangedEventHandler( OnProductModelPropertyChanged ), "ProductModel", "ProductModelProductDescriptionCultures", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductModelProductDescriptionCultureRelations.ProductModelEntityUsingProductModelIdStatic, true, new string[] { }, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductModelPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductModelProductDescriptionCultureEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductModelProductDescriptionCultureRelations Relations - { - get { return new ProductModelProductDescriptionCultureRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Culture' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCulture - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CultureEntityFactory))), (IEntityRelation)GetRelationsForField("Culture")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CultureEntity, 0, null, null, null, null, "Culture", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductDescription' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductDescription - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductDescriptionEntityFactory))), (IEntityRelation)GetRelationsForField("ProductDescription")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductDescriptionEntity, 0, null, null, null, null, "ProductDescription", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModel' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductModel - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductModelEntityFactory))), (IEntityRelation)GetRelationsForField("ProductModel")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity, 0, null, null, null, null, "ProductModel", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CultureId property of the Entity ProductModelProductDescriptionCulture

- /// Mapped on table field: "ProductModelProductDescriptionCulture"."CultureID"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 6
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String CultureId - { - get { return (System.String)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.CultureId, true); } - set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.CultureId, value); } - } - - /// The ModifiedDate property of the Entity ProductModelProductDescriptionCulture

- /// Mapped on table field: "ProductModelProductDescriptionCulture"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.ModifiedDate, value); } - } - - /// The ProductDescriptionId property of the Entity ProductModelProductDescriptionCulture

- /// Mapped on table field: "ProductModelProductDescriptionCulture"."ProductDescriptionID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductDescriptionId - { - get { return (System.Int32)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId, true); } - set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId, value); } - } - - /// The ProductModelId property of the Entity ProductModelProductDescriptionCulture

- /// Mapped on table field: "ProductModelProductDescriptionCulture"."ProductModelID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductModelId - { - get { return (System.Int32)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId, true); } - set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId, value); } - } - - /// Gets / sets related entity of type 'CultureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CultureEntity Culture - { - get { return _culture; } - set - { - if(this.IsDeserializing) - { - SetupSyncCulture(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductModelProductDescriptionCultures", "Culture", _culture, true); - } - } - } - - /// Gets / sets related entity of type 'ProductDescriptionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductDescriptionEntity ProductDescription - { - get { return _productDescription; } - set - { - if(this.IsDeserializing) - { - SetupSyncProductDescription(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductModelProductDescriptionCultures", "ProductDescription", _productDescription, true); - } - } - } - - /// Gets / sets related entity of type 'ProductModelEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductModelEntity ProductModel - { - get { return _productModel; } - set - { - if(this.IsDeserializing) - { - SetupSyncProductModel(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductModelProductDescriptionCultures", "ProductModel", _productModel, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs deleted file mode 100644 index 9c429aa0..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs +++ /dev/null @@ -1,505 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductPhoto'.

- [Serializable] - public partial class ProductPhotoEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productProductPhotos; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductProductPhotos - public static readonly string ProductProductPhotos = "ProductProductPhotos"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductPhotoEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductPhotoEntity():base("ProductPhotoEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductPhotoEntity(IEntityFields2 fields):base("ProductPhotoEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductPhotoEntity - public ProductPhotoEntity(IValidator validator):base("ProductPhotoEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductPhoto which data should be fetched into this ProductPhoto object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductPhotoEntity(System.Int32 productPhotoId):base("ProductPhotoEntity") - { - InitClassEmpty(null, null); - this.ProductPhotoId = productPhotoId; - } - - /// CTor - /// PK value for ProductPhoto which data should be fetched into this ProductPhoto object - /// The custom validator object for this ProductPhotoEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductPhotoEntity(System.Int32 productPhotoId, IValidator validator):base("ProductPhotoEntity") - { - InitClassEmpty(validator, null); - this.ProductPhotoId = productPhotoId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductPhotoEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productProductPhotos = (EntityCollection)info.GetValue("_productProductPhotos", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductProductPhotos": - this.ProductProductPhotos.Add((ProductProductPhotoEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ProductProductPhotos": - toReturn.Add(Relations.ProductProductPhotoEntityUsingProductPhotoId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductProductPhotos": - this.ProductProductPhotos.Add((ProductProductPhotoEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductProductPhotos": - this.PerformRelatedEntityRemoval(this.ProductProductPhotos, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductProductPhotos); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productProductPhotos", ((_productProductPhotos!=null) && (_productProductPhotos.Count>0) && !this.MarkedForDeletion)?_productProductPhotos:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductPhotoRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductProductPhoto' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductProductPhotos() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductProductPhotoFields.ProductPhotoId, null, ComparisonOperator.Equal, this.ProductPhotoId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductPhotoEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productProductPhotos); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productProductPhotos = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productProductPhotos != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductProductPhotoEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductProductPhotos", _productProductPhotos); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LargePhoto", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LargePhotoFileName", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductPhotoId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ThumbNailPhoto", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ThumbnailPhotoFileName", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductPhotoEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductPhotoRelations Relations - { - get { return new ProductPhotoRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductProductPhoto' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductProductPhotos - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductProductPhotoEntityFactory))), (IEntityRelation)GetRelationsForField("ProductProductPhotos")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductPhotoEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity, 0, null, null, null, null, "ProductProductPhotos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The LargePhoto property of the Entity ProductPhoto

- /// Mapped on table field: "ProductPhoto"."LargePhoto"
- /// Table field type characteristics (type, precision, scale, length): VarBinary, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.Byte[] LargePhoto - { - get { return (System.Byte[])GetValue((int)ProductPhotoFieldIndex.LargePhoto, true); } - set { SetValue((int)ProductPhotoFieldIndex.LargePhoto, value); } - } - - /// The LargePhotoFileName property of the Entity ProductPhoto

- /// Mapped on table field: "ProductPhoto"."LargePhotoFileName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String LargePhotoFileName - { - get { return (System.String)GetValue((int)ProductPhotoFieldIndex.LargePhotoFileName, true); } - set { SetValue((int)ProductPhotoFieldIndex.LargePhotoFileName, value); } - } - - /// The ModifiedDate property of the Entity ProductPhoto

- /// Mapped on table field: "ProductPhoto"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductPhotoFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductPhotoFieldIndex.ModifiedDate, value); } - } - - /// The ProductPhotoId property of the Entity ProductPhoto

- /// Mapped on table field: "ProductPhoto"."ProductPhotoID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ProductPhotoId - { - get { return (System.Int32)GetValue((int)ProductPhotoFieldIndex.ProductPhotoId, true); } - set { SetValue((int)ProductPhotoFieldIndex.ProductPhotoId, value); } - } - - /// The ThumbNailPhoto property of the Entity ProductPhoto

- /// Mapped on table field: "ProductPhoto"."ThumbNailPhoto"
- /// Table field type characteristics (type, precision, scale, length): VarBinary, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.Byte[] ThumbNailPhoto - { - get { return (System.Byte[])GetValue((int)ProductPhotoFieldIndex.ThumbNailPhoto, true); } - set { SetValue((int)ProductPhotoFieldIndex.ThumbNailPhoto, value); } - } - - /// The ThumbnailPhotoFileName property of the Entity ProductPhoto

- /// Mapped on table field: "ProductPhoto"."ThumbnailPhotoFileName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String ThumbnailPhotoFileName - { - get { return (System.String)GetValue((int)ProductPhotoFieldIndex.ThumbnailPhotoFileName, true); } - set { SetValue((int)ProductPhotoFieldIndex.ThumbnailPhotoFileName, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductProductPhotoEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductProductPhotoEntity))] - public virtual EntityCollection ProductProductPhotos - { - get { return GetOrCreateEntityCollection("ProductPhoto", true, false, ref _productProductPhotos); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductPhotoEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs deleted file mode 100644 index 17ce4cf8..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs +++ /dev/null @@ -1,631 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductProductPhoto'.

- [Serializable] - public partial class ProductProductPhotoEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - private ProductPhotoEntity _productPhoto; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - /// Member name ProductPhoto - public static readonly string ProductPhoto = "ProductPhoto"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductProductPhotoEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductProductPhotoEntity():base("ProductProductPhotoEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductProductPhotoEntity(IEntityFields2 fields):base("ProductProductPhotoEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductProductPhotoEntity - public ProductProductPhotoEntity(IValidator validator):base("ProductProductPhotoEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object - /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductProductPhotoEntity(System.Int32 productId, System.Int32 productPhotoId):base("ProductProductPhotoEntity") - { - InitClassEmpty(null, null); - this.ProductId = productId; - this.ProductPhotoId = productPhotoId; - } - - /// CTor - /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object - /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object - /// The custom validator object for this ProductProductPhotoEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductProductPhotoEntity(System.Int32 productId, System.Int32 productPhotoId, IValidator validator):base("ProductProductPhotoEntity") - { - InitClassEmpty(validator, null); - this.ProductId = productId; - this.ProductPhotoId = productPhotoId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductProductPhotoEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _productPhoto = (ProductPhotoEntity)info.GetValue("_productPhoto", typeof(ProductPhotoEntity)); - if(_productPhoto!=null) - { - _productPhoto.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductProductPhotoFieldIndex)fieldIndex) - { - case ProductProductPhotoFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - case ProductProductPhotoFieldIndex.ProductPhotoId: - DesetupSyncProductPhoto(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - case "ProductPhoto": - this.ProductPhoto = (ProductPhotoEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - case "ProductPhoto": - toReturn.Add(Relations.ProductPhotoEntityUsingProductPhotoId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - case "ProductPhoto": - SetupSyncProductPhoto(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - case "ProductPhoto": - DesetupSyncProductPhoto(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - if(_productPhoto!=null) - { - toReturn.Add(_productPhoto); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - info.AddValue("_productPhoto", (!this.MarkedForDeletion?_productPhoto:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductProductPhotoRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductPhoto' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductPhoto() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductPhotoFields.ProductPhotoId, null, ComparisonOperator.Equal, this.ProductPhotoId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductProductPhotoEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - toReturn.Add("ProductPhoto", _productPhoto); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Primary", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductPhotoId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ProductProductPhotos", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductProductPhotoRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ProductProductPhotoFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ProductProductPhotos", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductProductPhotoRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ProductProductPhotoFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _productPhoto - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProductPhoto(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _productPhoto, new PropertyChangedEventHandler(OnProductPhotoPropertyChanged), "ProductPhoto", "ProductProductPhotos", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductProductPhotoRelations.ProductPhotoEntityUsingProductPhotoIdStatic, true, new int[] { (int)ProductProductPhotoFieldIndex.ProductPhotoId }); - } - - /// setups the sync logic for member _productPhoto - /// Instance to set as the related entity of type entityType - private void SetupSyncProductPhoto(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _productPhoto, new PropertyChangedEventHandler( OnProductPhotoPropertyChanged ), "ProductPhoto", "ProductProductPhotos", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductProductPhotoRelations.ProductPhotoEntityUsingProductPhotoIdStatic, true, new string[] { }, new int[] { (int)ProductProductPhotoFieldIndex.ProductPhotoId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPhotoPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductProductPhotoEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductProductPhotoRelations Relations - { - get { return new ProductProductPhotoRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductPhoto' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductPhoto - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductPhotoEntityFactory))), (IEntityRelation)GetRelationsForField("ProductPhoto")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductPhotoEntity, 0, null, null, null, null, "ProductPhoto", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity ProductProductPhoto

- /// Mapped on table field: "ProductProductPhoto"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductProductPhotoFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductProductPhotoFieldIndex.ModifiedDate, value); } - } - - /// The Primary property of the Entity ProductProductPhoto

- /// Mapped on table field: "ProductProductPhoto"."Primary"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean Primary - { - get { return (System.Boolean)GetValue((int)ProductProductPhotoFieldIndex.Primary, true); } - set { SetValue((int)ProductProductPhotoFieldIndex.Primary, value); } - } - - /// The ProductId property of the Entity ProductProductPhoto

- /// Mapped on table field: "ProductProductPhoto"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductProductPhotoFieldIndex.ProductId, true); } - set { SetValue((int)ProductProductPhotoFieldIndex.ProductId, value); } - } - - /// The ProductPhotoId property of the Entity ProductProductPhoto

- /// Mapped on table field: "ProductProductPhoto"."ProductPhotoID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductPhotoId - { - get { return (System.Int32)GetValue((int)ProductProductPhotoFieldIndex.ProductPhotoId, true); } - set { SetValue((int)ProductProductPhotoFieldIndex.ProductPhotoId, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductProductPhotos", "Product", _product, true); - } - } - } - - /// Gets / sets related entity of type 'ProductPhotoEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductPhotoEntity ProductPhoto - { - get { return _productPhoto; } - set - { - if(this.IsDeserializing) - { - SetupSyncProductPhoto(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductProductPhotos", "ProductPhoto", _productPhoto, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs deleted file mode 100644 index 6f0dacad..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs +++ /dev/null @@ -1,585 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductReview'.

- [Serializable] - public partial class ProductReviewEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductReviewEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductReviewEntity():base("ProductReviewEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductReviewEntity(IEntityFields2 fields):base("ProductReviewEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductReviewEntity - public ProductReviewEntity(IValidator validator):base("ProductReviewEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductReview which data should be fetched into this ProductReview object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductReviewEntity(System.Int32 productReviewId):base("ProductReviewEntity") - { - InitClassEmpty(null, null); - this.ProductReviewId = productReviewId; - } - - /// CTor - /// PK value for ProductReview which data should be fetched into this ProductReview object - /// The custom validator object for this ProductReviewEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductReviewEntity(System.Int32 productReviewId, IValidator validator):base("ProductReviewEntity") - { - InitClassEmpty(validator, null); - this.ProductReviewId = productReviewId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductReviewEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductReviewFieldIndex)fieldIndex) - { - case ProductReviewFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductReviewRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductReviewEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Comments", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmailAddress", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductReviewId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rating", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReviewDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReviewerName", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ProductReviews", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductReviewRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ProductReviewFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ProductReviews", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductReviewRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ProductReviewFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductReviewEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductReviewRelations Relations - { - get { return new ProductReviewRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductReviewEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Comments property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."Comments"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3850
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Comments - { - get { return (System.String)GetValue((int)ProductReviewFieldIndex.Comments, true); } - set { SetValue((int)ProductReviewFieldIndex.Comments, value); } - } - - /// The EmailAddress property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."EmailAddress"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String EmailAddress - { - get { return (System.String)GetValue((int)ProductReviewFieldIndex.EmailAddress, true); } - set { SetValue((int)ProductReviewFieldIndex.EmailAddress, value); } - } - - /// The ModifiedDate property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductReviewFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductReviewFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductReviewFieldIndex.ProductId, true); } - set { SetValue((int)ProductReviewFieldIndex.ProductId, value); } - } - - /// The ProductReviewId property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."ProductReviewID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ProductReviewId - { - get { return (System.Int32)GetValue((int)ProductReviewFieldIndex.ProductReviewId, true); } - set { SetValue((int)ProductReviewFieldIndex.ProductReviewId, value); } - } - - /// The Rating property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."Rating"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 Rating - { - get { return (System.Int32)GetValue((int)ProductReviewFieldIndex.Rating, true); } - set { SetValue((int)ProductReviewFieldIndex.Rating, value); } - } - - /// The ReviewDate property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."ReviewDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ReviewDate - { - get { return (System.DateTime)GetValue((int)ProductReviewFieldIndex.ReviewDate, true); } - set { SetValue((int)ProductReviewFieldIndex.ReviewDate, value); } - } - - /// The ReviewerName property of the Entity ProductReview

- /// Mapped on table field: "ProductReview"."ReviewerName"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String ReviewerName - { - get { return (System.String)GetValue((int)ProductReviewFieldIndex.ReviewerName, true); } - set { SetValue((int)ProductReviewFieldIndex.ReviewerName, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductReviews", "Product", _product, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductReviewEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs deleted file mode 100644 index c81e9f80..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs +++ /dev/null @@ -1,595 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductSubcategory'.

- [Serializable] - public partial class ProductSubcategoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _products; - private ProductCategoryEntity _productCategory; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductCategory - public static readonly string ProductCategory = "ProductCategory"; - /// Member name Products - public static readonly string Products = "Products"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductSubcategoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductSubcategoryEntity():base("ProductSubcategoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductSubcategoryEntity(IEntityFields2 fields):base("ProductSubcategoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductSubcategoryEntity - public ProductSubcategoryEntity(IValidator validator):base("ProductSubcategoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductSubcategory which data should be fetched into this ProductSubcategory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductSubcategoryEntity(System.Int32 productSubcategoryId):base("ProductSubcategoryEntity") - { - InitClassEmpty(null, null); - this.ProductSubcategoryId = productSubcategoryId; - } - - /// CTor - /// PK value for ProductSubcategory which data should be fetched into this ProductSubcategory object - /// The custom validator object for this ProductSubcategoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductSubcategoryEntity(System.Int32 productSubcategoryId, IValidator validator):base("ProductSubcategoryEntity") - { - InitClassEmpty(validator, null); - this.ProductSubcategoryId = productSubcategoryId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductSubcategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _products = (EntityCollection)info.GetValue("_products", typeof(EntityCollection)); - _productCategory = (ProductCategoryEntity)info.GetValue("_productCategory", typeof(ProductCategoryEntity)); - if(_productCategory!=null) - { - _productCategory.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductSubcategoryFieldIndex)fieldIndex) - { - case ProductSubcategoryFieldIndex.ProductCategoryId: - DesetupSyncProductCategory(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductCategory": - this.ProductCategory = (ProductCategoryEntity)entity; - break; - case "Products": - this.Products.Add((ProductEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ProductCategory": - toReturn.Add(Relations.ProductCategoryEntityUsingProductCategoryId); - break; - case "Products": - toReturn.Add(Relations.ProductEntityUsingProductSubcategoryId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductCategory": - SetupSyncProductCategory(relatedEntity); - break; - case "Products": - this.Products.Add((ProductEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductCategory": - DesetupSyncProductCategory(false, true); - break; - case "Products": - this.PerformRelatedEntityRemoval(this.Products, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_productCategory!=null) - { - toReturn.Add(_productCategory); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.Products); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_products", ((_products!=null) && (_products.Count>0) && !this.MarkedForDeletion)?_products:null); - info.AddValue("_productCategory", (!this.MarkedForDeletion?_productCategory:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductSubcategoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProducts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductSubcategoryId, null, ComparisonOperator.Equal, this.ProductSubcategoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductCategory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductCategory() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductCategoryFields.ProductCategoryId, null, ComparisonOperator.Equal, this.ProductCategoryId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductSubcategoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._products); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._products = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._products != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductCategory", _productCategory); - toReturn.Add("Products", _products); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductCategoryId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductSubcategoryId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _productCategory - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProductCategory(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _productCategory, new PropertyChangedEventHandler(OnProductCategoryPropertyChanged), "ProductCategory", "ProductSubcategories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductSubcategoryRelations.ProductCategoryEntityUsingProductCategoryIdStatic, true, new int[] { (int)ProductSubcategoryFieldIndex.ProductCategoryId }); - } - - /// setups the sync logic for member _productCategory - /// Instance to set as the related entity of type entityType - private void SetupSyncProductCategory(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _productCategory, new PropertyChangedEventHandler( OnProductCategoryPropertyChanged ), "ProductCategory", "ProductSubcategories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductSubcategoryRelations.ProductCategoryEntityUsingProductCategoryIdStatic, true, new string[] { }, new int[] { (int)ProductSubcategoryFieldIndex.ProductCategoryId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductCategoryPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductSubcategoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductSubcategoryRelations Relations - { - get { return new ProductSubcategoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProducts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Products")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Products", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductCategory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductCategory - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductCategoryEntityFactory))), (IEntityRelation)GetRelationsForField("ProductCategory")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductCategoryEntity, 0, null, null, null, null, "ProductCategory", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity ProductSubcategory

- /// Mapped on table field: "ProductSubcategory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductSubcategoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductSubcategoryFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity ProductSubcategory

- /// Mapped on table field: "ProductSubcategory"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ProductSubcategoryFieldIndex.Name, true); } - set { SetValue((int)ProductSubcategoryFieldIndex.Name, value); } - } - - /// The ProductCategoryId property of the Entity ProductSubcategory

- /// Mapped on table field: "ProductSubcategory"."ProductCategoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductCategoryId - { - get { return (System.Int32)GetValue((int)ProductSubcategoryFieldIndex.ProductCategoryId, true); } - set { SetValue((int)ProductSubcategoryFieldIndex.ProductCategoryId, value); } - } - - /// The ProductSubcategoryId property of the Entity ProductSubcategory

- /// Mapped on table field: "ProductSubcategory"."ProductSubcategoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ProductSubcategoryId - { - get { return (System.Int32)GetValue((int)ProductSubcategoryFieldIndex.ProductSubcategoryId, true); } - set { SetValue((int)ProductSubcategoryFieldIndex.ProductSubcategoryId, value); } - } - - /// The Rowguid property of the Entity ProductSubcategory

- /// Mapped on table field: "ProductSubcategory"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)ProductSubcategoryFieldIndex.Rowguid, true); } - set { SetValue((int)ProductSubcategoryFieldIndex.Rowguid, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductEntity))] - public virtual EntityCollection Products - { - get { return GetOrCreateEntityCollection("ProductSubcategory", true, false, ref _products); } - } - - /// Gets / sets related entity of type 'ProductCategoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductCategoryEntity ProductCategory - { - get { return _productCategory; } - set - { - if(this.IsDeserializing) - { - SetupSyncProductCategory(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductSubcategories", "ProductCategory", _productCategory, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs deleted file mode 100644 index 3fa2ad28..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs +++ /dev/null @@ -1,805 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ProductVendor'.

- [Serializable] - public partial class ProductVendorEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - private UnitMeasureEntity _unitMeasure; - private VendorEntity _vendor; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - /// Member name UnitMeasure - public static readonly string UnitMeasure = "UnitMeasure"; - /// Member name Vendor - public static readonly string Vendor = "Vendor"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ProductVendorEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ProductVendorEntity():base("ProductVendorEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ProductVendorEntity(IEntityFields2 fields):base("ProductVendorEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ProductVendorEntity - public ProductVendorEntity(IValidator validator):base("ProductVendorEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ProductVendor which data should be fetched into this ProductVendor object - /// PK value for ProductVendor which data should be fetched into this ProductVendor object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductVendorEntity(System.Int32 productId, System.Int32 vendorId):base("ProductVendorEntity") - { - InitClassEmpty(null, null); - this.ProductId = productId; - this.VendorId = vendorId; - } - - /// CTor - /// PK value for ProductVendor which data should be fetched into this ProductVendor object - /// PK value for ProductVendor which data should be fetched into this ProductVendor object - /// The custom validator object for this ProductVendorEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ProductVendorEntity(System.Int32 productId, System.Int32 vendorId, IValidator validator):base("ProductVendorEntity") - { - InitClassEmpty(validator, null); - this.ProductId = productId; - this.VendorId = vendorId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ProductVendorEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _unitMeasure = (UnitMeasureEntity)info.GetValue("_unitMeasure", typeof(UnitMeasureEntity)); - if(_unitMeasure!=null) - { - _unitMeasure.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _vendor = (VendorEntity)info.GetValue("_vendor", typeof(VendorEntity)); - if(_vendor!=null) - { - _vendor.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ProductVendorFieldIndex)fieldIndex) - { - case ProductVendorFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - case ProductVendorFieldIndex.UnitMeasureCode: - DesetupSyncUnitMeasure(true, false); - break; - case ProductVendorFieldIndex.VendorId: - DesetupSyncVendor(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - case "UnitMeasure": - this.UnitMeasure = (UnitMeasureEntity)entity; - break; - case "Vendor": - this.Vendor = (VendorEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - case "UnitMeasure": - toReturn.Add(Relations.UnitMeasureEntityUsingUnitMeasureCode); - break; - case "Vendor": - toReturn.Add(Relations.VendorEntityUsingVendorId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - case "UnitMeasure": - SetupSyncUnitMeasure(relatedEntity); - break; - case "Vendor": - SetupSyncVendor(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - case "UnitMeasure": - DesetupSyncUnitMeasure(false, true); - break; - case "Vendor": - DesetupSyncVendor(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - if(_unitMeasure!=null) - { - toReturn.Add(_unitMeasure); - } - if(_vendor!=null) - { - toReturn.Add(_vendor); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - info.AddValue("_unitMeasure", (!this.MarkedForDeletion?_unitMeasure:null)); - info.AddValue("_vendor", (!this.MarkedForDeletion?_vendor:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ProductVendorRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(UnitMeasureFields.UnitMeasureCode, null, ComparisonOperator.Equal, this.UnitMeasureCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Vendor' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoVendor() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(VendorFields.VendorId, null, ComparisonOperator.Equal, this.VendorId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ProductVendorEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - toReturn.Add("UnitMeasure", _unitMeasure); - toReturn.Add("Vendor", _vendor); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AverageLeadTime", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LastReceiptCost", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LastReceiptDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("MaxOrderQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("MinOrderQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OnOrderQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StandardPrice", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("UnitMeasureCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("VendorId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ProductVendors", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductVendorRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ProductVendorFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ProductVendors", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductVendorRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ProductVendorFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _unitMeasure - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncUnitMeasure(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _unitMeasure, new PropertyChangedEventHandler(OnUnitMeasurePropertyChanged), "UnitMeasure", "ProductVendors", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductVendorRelations.UnitMeasureEntityUsingUnitMeasureCodeStatic, true, new int[] { (int)ProductVendorFieldIndex.UnitMeasureCode }); - } - - /// setups the sync logic for member _unitMeasure - /// Instance to set as the related entity of type entityType - private void SetupSyncUnitMeasure(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _unitMeasure, new PropertyChangedEventHandler( OnUnitMeasurePropertyChanged ), "UnitMeasure", "ProductVendors", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductVendorRelations.UnitMeasureEntityUsingUnitMeasureCodeStatic, true, new string[] { }, new int[] { (int)ProductVendorFieldIndex.UnitMeasureCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnUnitMeasurePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _vendor - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncVendor(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _vendor, new PropertyChangedEventHandler(OnVendorPropertyChanged), "Vendor", "ProductVendors", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductVendorRelations.VendorEntityUsingVendorIdStatic, true, new int[] { (int)ProductVendorFieldIndex.VendorId }); - } - - /// setups the sync logic for member _vendor - /// Instance to set as the related entity of type entityType - private void SetupSyncVendor(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _vendor, new PropertyChangedEventHandler( OnVendorPropertyChanged ), "Vendor", "ProductVendors", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticProductVendorRelations.VendorEntityUsingVendorIdStatic, true, new string[] { }, new int[] { (int)ProductVendorFieldIndex.VendorId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnVendorPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ProductVendorEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ProductVendorRelations Relations - { - get { return new ProductVendorRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathUnitMeasure - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(UnitMeasureEntityFactory))), (IEntityRelation)GetRelationsForField("UnitMeasure")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, 0, null, null, null, null, "UnitMeasure", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Vendor' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathVendor - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(VendorEntityFactory))), (IEntityRelation)GetRelationsForField("Vendor")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity, 0, null, null, null, null, "Vendor", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AverageLeadTime property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."AverageLeadTime"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 AverageLeadTime - { - get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.AverageLeadTime, true); } - set { SetValue((int)ProductVendorFieldIndex.AverageLeadTime, value); } - } - - /// The LastReceiptCost property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."LastReceiptCost"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable LastReceiptCost - { - get { return (Nullable)GetValue((int)ProductVendorFieldIndex.LastReceiptCost, false); } - set { SetValue((int)ProductVendorFieldIndex.LastReceiptCost, value); } - } - - /// The LastReceiptDate property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."LastReceiptDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable LastReceiptDate - { - get { return (Nullable)GetValue((int)ProductVendorFieldIndex.LastReceiptDate, false); } - set { SetValue((int)ProductVendorFieldIndex.LastReceiptDate, value); } - } - - /// The MaxOrderQty property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."MaxOrderQty"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 MaxOrderQty - { - get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.MaxOrderQty, true); } - set { SetValue((int)ProductVendorFieldIndex.MaxOrderQty, value); } - } - - /// The MinOrderQty property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."MinOrderQty"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 MinOrderQty - { - get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.MinOrderQty, true); } - set { SetValue((int)ProductVendorFieldIndex.MinOrderQty, value); } - } - - /// The ModifiedDate property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ProductVendorFieldIndex.ModifiedDate, true); } - set { SetValue((int)ProductVendorFieldIndex.ModifiedDate, value); } - } - - /// The OnOrderQty property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."OnOrderQty"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable OnOrderQty - { - get { return (Nullable)GetValue((int)ProductVendorFieldIndex.OnOrderQty, false); } - set { SetValue((int)ProductVendorFieldIndex.OnOrderQty, value); } - } - - /// The ProductId property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.ProductId, true); } - set { SetValue((int)ProductVendorFieldIndex.ProductId, value); } - } - - /// The StandardPrice property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."StandardPrice"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal StandardPrice - { - get { return (System.Decimal)GetValue((int)ProductVendorFieldIndex.StandardPrice, true); } - set { SetValue((int)ProductVendorFieldIndex.StandardPrice, value); } - } - - /// The UnitMeasureCode property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."UnitMeasureCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String UnitMeasureCode - { - get { return (System.String)GetValue((int)ProductVendorFieldIndex.UnitMeasureCode, true); } - set { SetValue((int)ProductVendorFieldIndex.UnitMeasureCode, value); } - } - - /// The VendorId property of the Entity ProductVendor

- /// Mapped on table field: "ProductVendor"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 VendorId - { - get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.VendorId, true); } - set { SetValue((int)ProductVendorFieldIndex.VendorId, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductVendors", "Product", _product, true); - } - } - } - - /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual UnitMeasureEntity UnitMeasure - { - get { return _unitMeasure; } - set - { - if(this.IsDeserializing) - { - SetupSyncUnitMeasure(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductVendors", "UnitMeasure", _unitMeasure, true); - } - } - } - - /// Gets / sets related entity of type 'VendorEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual VendorEntity Vendor - { - get { return _vendor; } - set - { - if(this.IsDeserializing) - { - SetupSyncVendor(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ProductVendors", "Vendor", _vendor, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs deleted file mode 100644 index 0d1ad166..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs +++ /dev/null @@ -1,715 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'PurchaseOrderDetail'.

- [Serializable] - public partial class PurchaseOrderDetailEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - private PurchaseOrderHeaderEntity _purchaseOrderHeader; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - /// Member name PurchaseOrderHeader - public static readonly string PurchaseOrderHeader = "PurchaseOrderHeader"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static PurchaseOrderDetailEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public PurchaseOrderDetailEntity():base("PurchaseOrderDetailEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public PurchaseOrderDetailEntity(IEntityFields2 fields):base("PurchaseOrderDetailEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this PurchaseOrderDetailEntity - public PurchaseOrderDetailEntity(IValidator validator):base("PurchaseOrderDetailEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object - /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PurchaseOrderDetailEntity(System.Int32 purchaseOrderDetailId, System.Int32 purchaseOrderId):base("PurchaseOrderDetailEntity") - { - InitClassEmpty(null, null); - this.PurchaseOrderDetailId = purchaseOrderDetailId; - this.PurchaseOrderId = purchaseOrderId; - } - - /// CTor - /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object - /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object - /// The custom validator object for this PurchaseOrderDetailEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PurchaseOrderDetailEntity(System.Int32 purchaseOrderDetailId, System.Int32 purchaseOrderId, IValidator validator):base("PurchaseOrderDetailEntity") - { - InitClassEmpty(validator, null); - this.PurchaseOrderDetailId = purchaseOrderDetailId; - this.PurchaseOrderId = purchaseOrderId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected PurchaseOrderDetailEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _purchaseOrderHeader = (PurchaseOrderHeaderEntity)info.GetValue("_purchaseOrderHeader", typeof(PurchaseOrderHeaderEntity)); - if(_purchaseOrderHeader!=null) - { - _purchaseOrderHeader.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((PurchaseOrderDetailFieldIndex)fieldIndex) - { - case PurchaseOrderDetailFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - case PurchaseOrderDetailFieldIndex.PurchaseOrderId: - DesetupSyncPurchaseOrderHeader(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - case "PurchaseOrderHeader": - this.PurchaseOrderHeader = (PurchaseOrderHeaderEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - case "PurchaseOrderHeader": - toReturn.Add(Relations.PurchaseOrderHeaderEntityUsingPurchaseOrderId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - case "PurchaseOrderHeader": - SetupSyncPurchaseOrderHeader(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - case "PurchaseOrderHeader": - DesetupSyncPurchaseOrderHeader(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - if(_purchaseOrderHeader!=null) - { - toReturn.Add(_purchaseOrderHeader); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - info.AddValue("_purchaseOrderHeader", (!this.MarkedForDeletion?_purchaseOrderHeader:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new PurchaseOrderDetailRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'PurchaseOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeader() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PurchaseOrderHeaderFields.PurchaseOrderId, null, ComparisonOperator.Equal, this.PurchaseOrderId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderDetailEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - toReturn.Add("PurchaseOrderHeader", _purchaseOrderHeader); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DueDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LineTotal", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OrderQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PurchaseOrderDetailId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PurchaseOrderId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReceivedQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("RejectedQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StockedQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("UnitPrice", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "PurchaseOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderDetailRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)PurchaseOrderDetailFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "PurchaseOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderDetailRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)PurchaseOrderDetailFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _purchaseOrderHeader - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncPurchaseOrderHeader(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _purchaseOrderHeader, new PropertyChangedEventHandler(OnPurchaseOrderHeaderPropertyChanged), "PurchaseOrderHeader", "PurchaseOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderDetailRelations.PurchaseOrderHeaderEntityUsingPurchaseOrderIdStatic, true, new int[] { (int)PurchaseOrderDetailFieldIndex.PurchaseOrderId }); - } - - /// setups the sync logic for member _purchaseOrderHeader - /// Instance to set as the related entity of type entityType - private void SetupSyncPurchaseOrderHeader(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _purchaseOrderHeader, new PropertyChangedEventHandler( OnPurchaseOrderHeaderPropertyChanged ), "PurchaseOrderHeader", "PurchaseOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderDetailRelations.PurchaseOrderHeaderEntityUsingPurchaseOrderIdStatic, true, new string[] { }, new int[] { (int)PurchaseOrderDetailFieldIndex.PurchaseOrderId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnPurchaseOrderHeaderPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this PurchaseOrderDetailEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static PurchaseOrderDetailRelations Relations - { - get { return new PurchaseOrderDetailRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeader - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("PurchaseOrderHeader")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, 0, null, null, null, null, "PurchaseOrderHeader", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The DueDate property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."DueDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime DueDate - { - get { return (System.DateTime)GetValue((int)PurchaseOrderDetailFieldIndex.DueDate, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.DueDate, value); } - } - - /// The LineTotal property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."LineTotal"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal LineTotal - { - get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.LineTotal, true); } - - } - - /// The ModifiedDate property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)PurchaseOrderDetailFieldIndex.ModifiedDate, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.ModifiedDate, value); } - } - - /// The OrderQty property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."OrderQty"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 OrderQty - { - get { return (System.Int16)GetValue((int)PurchaseOrderDetailFieldIndex.OrderQty, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.OrderQty, value); } - } - - /// The ProductId property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)PurchaseOrderDetailFieldIndex.ProductId, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.ProductId, value); } - } - - /// The PurchaseOrderDetailId property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."PurchaseOrderDetailID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 PurchaseOrderDetailId - { - get { return (System.Int32)GetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderDetailId, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderDetailId, value); } - } - - /// The PurchaseOrderId property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."PurchaseOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 PurchaseOrderId - { - get { return (System.Int32)GetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderId, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderId, value); } - } - - /// The ReceivedQty property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."ReceivedQty"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal ReceivedQty - { - get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.ReceivedQty, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.ReceivedQty, value); } - } - - /// The RejectedQty property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."RejectedQty"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal RejectedQty - { - get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.RejectedQty, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.RejectedQty, value); } - } - - /// The StockedQty property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."StockedQty"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 9, 2, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal StockedQty - { - get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.StockedQty, true); } - - } - - /// The UnitPrice property of the Entity PurchaseOrderDetail

- /// Mapped on table field: "PurchaseOrderDetail"."UnitPrice"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal UnitPrice - { - get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.UnitPrice, true); } - set { SetValue((int)PurchaseOrderDetailFieldIndex.UnitPrice, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "PurchaseOrderDetails", "Product", _product, true); - } - } - } - - /// Gets / sets related entity of type 'PurchaseOrderHeaderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual PurchaseOrderHeaderEntity PurchaseOrderHeader - { - get { return _purchaseOrderHeader; } - set - { - if(this.IsDeserializing) - { - SetupSyncPurchaseOrderHeader(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "PurchaseOrderDetails", "PurchaseOrderHeader", _purchaseOrderHeader, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs deleted file mode 100644 index 10535bc2..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs +++ /dev/null @@ -1,871 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'PurchaseOrderHeader'.

- [Serializable] - public partial class PurchaseOrderHeaderEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _purchaseOrderDetails; - private EmployeeEntity _employee; - private ShipMethodEntity _shipMethod; - private VendorEntity _vendor; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Employee - public static readonly string Employee = "Employee"; - /// Member name ShipMethod - public static readonly string ShipMethod = "ShipMethod"; - /// Member name Vendor - public static readonly string Vendor = "Vendor"; - /// Member name PurchaseOrderDetails - public static readonly string PurchaseOrderDetails = "PurchaseOrderDetails"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static PurchaseOrderHeaderEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public PurchaseOrderHeaderEntity():base("PurchaseOrderHeaderEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public PurchaseOrderHeaderEntity(IEntityFields2 fields):base("PurchaseOrderHeaderEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this PurchaseOrderHeaderEntity - public PurchaseOrderHeaderEntity(IValidator validator):base("PurchaseOrderHeaderEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for PurchaseOrderHeader which data should be fetched into this PurchaseOrderHeader object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PurchaseOrderHeaderEntity(System.Int32 purchaseOrderId):base("PurchaseOrderHeaderEntity") - { - InitClassEmpty(null, null); - this.PurchaseOrderId = purchaseOrderId; - } - - /// CTor - /// PK value for PurchaseOrderHeader which data should be fetched into this PurchaseOrderHeader object - /// The custom validator object for this PurchaseOrderHeaderEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public PurchaseOrderHeaderEntity(System.Int32 purchaseOrderId, IValidator validator):base("PurchaseOrderHeaderEntity") - { - InitClassEmpty(validator, null); - this.PurchaseOrderId = purchaseOrderId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected PurchaseOrderHeaderEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _purchaseOrderDetails = (EntityCollection)info.GetValue("_purchaseOrderDetails", typeof(EntityCollection)); - _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); - if(_employee!=null) - { - _employee.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _shipMethod = (ShipMethodEntity)info.GetValue("_shipMethod", typeof(ShipMethodEntity)); - if(_shipMethod!=null) - { - _shipMethod.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _vendor = (VendorEntity)info.GetValue("_vendor", typeof(VendorEntity)); - if(_vendor!=null) - { - _vendor.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((PurchaseOrderHeaderFieldIndex)fieldIndex) - { - case PurchaseOrderHeaderFieldIndex.EmployeeId: - DesetupSyncEmployee(true, false); - break; - case PurchaseOrderHeaderFieldIndex.ShipMethodId: - DesetupSyncShipMethod(true, false); - break; - case PurchaseOrderHeaderFieldIndex.VendorId: - DesetupSyncVendor(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Employee": - this.Employee = (EmployeeEntity)entity; - break; - case "ShipMethod": - this.ShipMethod = (ShipMethodEntity)entity; - break; - case "Vendor": - this.Vendor = (VendorEntity)entity; - break; - case "PurchaseOrderDetails": - this.PurchaseOrderDetails.Add((PurchaseOrderDetailEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - 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; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Employee": - SetupSyncEmployee(relatedEntity); - break; - case "ShipMethod": - SetupSyncShipMethod(relatedEntity); - break; - case "Vendor": - SetupSyncVendor(relatedEntity); - break; - case "PurchaseOrderDetails": - this.PurchaseOrderDetails.Add((PurchaseOrderDetailEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Employee": - DesetupSyncEmployee(false, true); - break; - case "ShipMethod": - DesetupSyncShipMethod(false, true); - break; - case "Vendor": - DesetupSyncVendor(false, true); - break; - case "PurchaseOrderDetails": - this.PerformRelatedEntityRemoval(this.PurchaseOrderDetails, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_employee!=null) - { - toReturn.Add(_employee); - } - if(_shipMethod!=null) - { - toReturn.Add(_shipMethod); - } - if(_vendor!=null) - { - toReturn.Add(_vendor); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.PurchaseOrderDetails); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_purchaseOrderDetails", ((_purchaseOrderDetails!=null) && (_purchaseOrderDetails.Count>0) && !this.MarkedForDeletion)?_purchaseOrderDetails:null); - info.AddValue("_employee", (!this.MarkedForDeletion?_employee:null)); - info.AddValue("_shipMethod", (!this.MarkedForDeletion?_shipMethod:null)); - info.AddValue("_vendor", (!this.MarkedForDeletion?_vendor:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new PurchaseOrderHeaderRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderDetail' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderDetails() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PurchaseOrderDetailFields.PurchaseOrderId, null, ComparisonOperator.Equal, this.PurchaseOrderId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployee() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeFields.EmployeeId, null, ComparisonOperator.Equal, this.EmployeeId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ShipMethod' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoShipMethod() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ShipMethodFields.ShipMethodId, null, ComparisonOperator.Equal, this.ShipMethodId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Vendor' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoVendor() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(VendorFields.VendorId, null, ComparisonOperator.Equal, this.VendorId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._purchaseOrderDetails); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._purchaseOrderDetails = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._purchaseOrderDetails != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderDetailEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Employee", _employee); - toReturn.Add("ShipMethod", _shipMethod); - toReturn.Add("Vendor", _vendor); - toReturn.Add("PurchaseOrderDetails", _purchaseOrderDetails); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EmployeeId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Freight", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OrderDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PurchaseOrderId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("RevisionNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipMethodId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Status", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SubTotal", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TaxAmt", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TotalDue", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("VendorId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _employee - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncEmployee(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _employee, new PropertyChangedEventHandler(OnEmployeePropertyChanged), "Employee", "PurchaseOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderHeaderRelations.EmployeeEntityUsingEmployeeIdStatic, true, new int[] { (int)PurchaseOrderHeaderFieldIndex.EmployeeId }); - } - - /// setups the sync logic for member _employee - /// Instance to set as the related entity of type entityType - private void SetupSyncEmployee(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _employee, new PropertyChangedEventHandler( OnEmployeePropertyChanged ), "Employee", "PurchaseOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderHeaderRelations.EmployeeEntityUsingEmployeeIdStatic, true, new string[] { }, new int[] { (int)PurchaseOrderHeaderFieldIndex.EmployeeId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnEmployeePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _shipMethod - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncShipMethod(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _shipMethod, new PropertyChangedEventHandler(OnShipMethodPropertyChanged), "ShipMethod", "PurchaseOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderHeaderRelations.ShipMethodEntityUsingShipMethodIdStatic, true, new int[] { (int)PurchaseOrderHeaderFieldIndex.ShipMethodId }); - } - - /// setups the sync logic for member _shipMethod - /// Instance to set as the related entity of type entityType - private void SetupSyncShipMethod(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _shipMethod, new PropertyChangedEventHandler( OnShipMethodPropertyChanged ), "ShipMethod", "PurchaseOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderHeaderRelations.ShipMethodEntityUsingShipMethodIdStatic, true, new string[] { }, new int[] { (int)PurchaseOrderHeaderFieldIndex.ShipMethodId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnShipMethodPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _vendor - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncVendor(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _vendor, new PropertyChangedEventHandler(OnVendorPropertyChanged), "Vendor", "PurchaseOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderHeaderRelations.VendorEntityUsingVendorIdStatic, true, new int[] { (int)PurchaseOrderHeaderFieldIndex.VendorId }); - } - - /// setups the sync logic for member _vendor - /// Instance to set as the related entity of type entityType - private void SetupSyncVendor(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _vendor, new PropertyChangedEventHandler( OnVendorPropertyChanged ), "Vendor", "PurchaseOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticPurchaseOrderHeaderRelations.VendorEntityUsingVendorIdStatic, true, new string[] { }, new int[] { (int)PurchaseOrderHeaderFieldIndex.VendorId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnVendorPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this PurchaseOrderHeaderEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static PurchaseOrderHeaderRelations Relations - { - get { return new PurchaseOrderHeaderRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderDetail' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPurchaseOrderDetails - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderDetailEntityFactory))), (IEntityRelation)GetRelationsForField("PurchaseOrderDetails")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity, 0, null, null, null, null, "PurchaseOrderDetails", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployee - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory))), (IEntityRelation)GetRelationsForField("Employee")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, 0, null, null, null, null, "Employee", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ShipMethod' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathShipMethod - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ShipMethodEntityFactory))), (IEntityRelation)GetRelationsForField("ShipMethod")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity, 0, null, null, null, null, "ShipMethod", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Vendor' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathVendor - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(VendorEntityFactory))), (IEntityRelation)GetRelationsForField("Vendor")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity, 0, null, null, null, null, "Vendor", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The EmployeeId property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."EmployeeID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 EmployeeId - { - get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.EmployeeId, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.EmployeeId, value); } - } - - /// The Freight property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."Freight"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal Freight - { - get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.Freight, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.Freight, value); } - } - - /// The ModifiedDate property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)PurchaseOrderHeaderFieldIndex.ModifiedDate, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.ModifiedDate, value); } - } - - /// The OrderDate property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."OrderDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime OrderDate - { - get { return (System.DateTime)GetValue((int)PurchaseOrderHeaderFieldIndex.OrderDate, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.OrderDate, value); } - } - - /// The PurchaseOrderId property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."PurchaseOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 PurchaseOrderId - { - get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.PurchaseOrderId, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.PurchaseOrderId, value); } - } - - /// The RevisionNumber property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."RevisionNumber"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte RevisionNumber - { - get { return (System.Byte)GetValue((int)PurchaseOrderHeaderFieldIndex.RevisionNumber, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.RevisionNumber, value); } - } - - /// The ShipDate property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."ShipDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ShipDate - { - get { return (Nullable)GetValue((int)PurchaseOrderHeaderFieldIndex.ShipDate, false); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.ShipDate, value); } - } - - /// The ShipMethodId property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."ShipMethodID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ShipMethodId - { - get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.ShipMethodId, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.ShipMethodId, value); } - } - - /// The Status property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."Status"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte Status - { - get { return (System.Byte)GetValue((int)PurchaseOrderHeaderFieldIndex.Status, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.Status, value); } - } - - /// The SubTotal property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."SubTotal"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal SubTotal - { - get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.SubTotal, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.SubTotal, value); } - } - - /// The TaxAmt property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."TaxAmt"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal TaxAmt - { - get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.TaxAmt, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.TaxAmt, value); } - } - - /// The TotalDue property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."TotalDue"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal TotalDue - { - get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.TotalDue, true); } - - } - - /// The VendorId property of the Entity PurchaseOrderHeader

- /// Mapped on table field: "PurchaseOrderHeader"."VendorID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 VendorId - { - get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.VendorId, true); } - set { SetValue((int)PurchaseOrderHeaderFieldIndex.VendorId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'PurchaseOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(PurchaseOrderDetailEntity))] - public virtual EntityCollection PurchaseOrderDetails - { - get { return GetOrCreateEntityCollection("PurchaseOrderHeader", true, false, ref _purchaseOrderDetails); } - } - - /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual EmployeeEntity Employee - { - get { return _employee; } - set - { - if(this.IsDeserializing) - { - SetupSyncEmployee(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "PurchaseOrderHeaders", "Employee", _employee, true); - } - } - } - - /// Gets / sets related entity of type 'ShipMethodEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ShipMethodEntity ShipMethod - { - get { return _shipMethod; } - set - { - if(this.IsDeserializing) - { - SetupSyncShipMethod(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "PurchaseOrderHeaders", "ShipMethod", _shipMethod, true); - } - } - } - - /// Gets / sets related entity of type 'VendorEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual VendorEntity Vendor - { - get { return _vendor; } - set - { - if(this.IsDeserializing) - { - SetupSyncVendor(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "PurchaseOrderHeaders", "Vendor", _vendor, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs deleted file mode 100644 index becef10f..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs +++ /dev/null @@ -1,719 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesOrderDetail'.

- [Serializable] - public partial class SalesOrderDetailEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private SalesOrderHeaderEntity _salesOrderHeader; - private SpecialOfferProductEntity _specialOfferProduct; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SalesOrderHeader - public static readonly string SalesOrderHeader = "SalesOrderHeader"; - /// Member name SpecialOfferProduct - public static readonly string SpecialOfferProduct = "SpecialOfferProduct"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesOrderDetailEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesOrderDetailEntity():base("SalesOrderDetailEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesOrderDetailEntity(IEntityFields2 fields):base("SalesOrderDetailEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesOrderDetailEntity - public SalesOrderDetailEntity(IValidator validator):base("SalesOrderDetailEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object - /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesOrderDetailEntity(System.Int32 salesOrderDetailId, System.Int32 salesOrderId):base("SalesOrderDetailEntity") - { - InitClassEmpty(null, null); - this.SalesOrderDetailId = salesOrderDetailId; - this.SalesOrderId = salesOrderId; - } - - /// CTor - /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object - /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object - /// The custom validator object for this SalesOrderDetailEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesOrderDetailEntity(System.Int32 salesOrderDetailId, System.Int32 salesOrderId, IValidator validator):base("SalesOrderDetailEntity") - { - InitClassEmpty(validator, null); - this.SalesOrderDetailId = salesOrderDetailId; - this.SalesOrderId = salesOrderId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesOrderDetailEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderHeader = (SalesOrderHeaderEntity)info.GetValue("_salesOrderHeader", typeof(SalesOrderHeaderEntity)); - if(_salesOrderHeader!=null) - { - _salesOrderHeader.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _specialOfferProduct = (SpecialOfferProductEntity)info.GetValue("_specialOfferProduct", typeof(SpecialOfferProductEntity)); - if(_specialOfferProduct!=null) - { - _specialOfferProduct.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesOrderDetailFieldIndex)fieldIndex) - { - case SalesOrderDetailFieldIndex.ProductId: - DesetupSyncSpecialOfferProduct(true, false); - break; - case SalesOrderDetailFieldIndex.SalesOrderId: - DesetupSyncSalesOrderHeader(true, false); - break; - case SalesOrderDetailFieldIndex.SpecialOfferId: - DesetupSyncSpecialOfferProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SalesOrderHeader": - this.SalesOrderHeader = (SalesOrderHeaderEntity)entity; - break; - case "SpecialOfferProduct": - this.SpecialOfferProduct = (SpecialOfferProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SalesOrderHeader": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingSalesOrderId); - break; - case "SpecialOfferProduct": - toReturn.Add(Relations.SpecialOfferProductEntityUsingProductIdSpecialOfferId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SalesOrderHeader": - SetupSyncSalesOrderHeader(relatedEntity); - break; - case "SpecialOfferProduct": - SetupSyncSpecialOfferProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SalesOrderHeader": - DesetupSyncSalesOrderHeader(false, true); - break; - case "SpecialOfferProduct": - DesetupSyncSpecialOfferProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_salesOrderHeader!=null) - { - toReturn.Add(_salesOrderHeader); - } - if(_specialOfferProduct!=null) - { - toReturn.Add(_specialOfferProduct); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderHeader", (!this.MarkedForDeletion?_salesOrderHeader:null)); - info.AddValue("_specialOfferProduct", (!this.MarkedForDeletion?_specialOfferProduct:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesOrderDetailRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeader() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.SalesOrderId, null, ComparisonOperator.Equal, this.SalesOrderId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SpecialOfferProduct' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSpecialOfferProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SpecialOfferProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SpecialOfferProductFields.SpecialOfferId, null, ComparisonOperator.Equal, this.SpecialOfferId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderDetailEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SalesOrderHeader", _salesOrderHeader); - toReturn.Add("SpecialOfferProduct", _specialOfferProduct); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CarrierTrackingNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LineTotal", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OrderQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesOrderDetailId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesOrderId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SpecialOfferId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("UnitPrice", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("UnitPriceDiscount", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _salesOrderHeader - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesOrderHeader(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesOrderHeader, new PropertyChangedEventHandler(OnSalesOrderHeaderPropertyChanged), "SalesOrderHeader", "SalesOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderDetailRelations.SalesOrderHeaderEntityUsingSalesOrderIdStatic, true, new int[] { (int)SalesOrderDetailFieldIndex.SalesOrderId }); - } - - /// setups the sync logic for member _salesOrderHeader - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesOrderHeader(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesOrderHeader, new PropertyChangedEventHandler( OnSalesOrderHeaderPropertyChanged ), "SalesOrderHeader", "SalesOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderDetailRelations.SalesOrderHeaderEntityUsingSalesOrderIdStatic, true, new string[] { }, new int[] { (int)SalesOrderDetailFieldIndex.SalesOrderId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesOrderHeaderPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _specialOfferProduct - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSpecialOfferProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _specialOfferProduct, new PropertyChangedEventHandler(OnSpecialOfferProductPropertyChanged), "SpecialOfferProduct", "SalesOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderDetailRelations.SpecialOfferProductEntityUsingProductIdSpecialOfferIdStatic, true, new int[] { (int)SalesOrderDetailFieldIndex.ProductId, (int)SalesOrderDetailFieldIndex.SpecialOfferId }); - } - - /// setups the sync logic for member _specialOfferProduct - /// Instance to set as the related entity of type entityType - private void SetupSyncSpecialOfferProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _specialOfferProduct, new PropertyChangedEventHandler( OnSpecialOfferProductPropertyChanged ), "SpecialOfferProduct", "SalesOrderDetails", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderDetailRelations.SpecialOfferProductEntityUsingProductIdSpecialOfferIdStatic, true, new string[] { }, new int[] { (int)SalesOrderDetailFieldIndex.ProductId, (int)SalesOrderDetailFieldIndex.SpecialOfferId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSpecialOfferProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesOrderDetailEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesOrderDetailRelations Relations - { - get { return new SalesOrderDetailRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeader - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeader")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeader", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOfferProduct' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSpecialOfferProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferProductEntityFactory))), (IEntityRelation)GetRelationsForField("SpecialOfferProduct")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity, 0, null, null, null, null, "SpecialOfferProduct", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CarrierTrackingNumber property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."CarrierTrackingNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String CarrierTrackingNumber - { - get { return (System.String)GetValue((int)SalesOrderDetailFieldIndex.CarrierTrackingNumber, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.CarrierTrackingNumber, value); } - } - - /// The LineTotal property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."LineTotal"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 38, 6, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal LineTotal - { - get { return (System.Decimal)GetValue((int)SalesOrderDetailFieldIndex.LineTotal, true); } - - } - - /// The ModifiedDate property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesOrderDetailFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.ModifiedDate, value); } - } - - /// The OrderQty property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."OrderQty"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 OrderQty - { - get { return (System.Int16)GetValue((int)SalesOrderDetailFieldIndex.OrderQty, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.OrderQty, value); } - } - - /// The ProductId property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.ProductId, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.ProductId, value); } - } - - /// The Rowguid property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SalesOrderDetailFieldIndex.Rowguid, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.Rowguid, value); } - } - - /// The SalesOrderDetailId property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."SalesOrderDetailID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 SalesOrderDetailId - { - get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.SalesOrderDetailId, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.SalesOrderDetailId, value); } - } - - /// The SalesOrderId property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."SalesOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 SalesOrderId - { - get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.SalesOrderId, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.SalesOrderId, value); } - } - - /// The SpecialOfferId property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."SpecialOfferID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 SpecialOfferId - { - get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.SpecialOfferId, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.SpecialOfferId, value); } - } - - /// The UnitPrice property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."UnitPrice"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal UnitPrice - { - get { return (System.Decimal)GetValue((int)SalesOrderDetailFieldIndex.UnitPrice, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.UnitPrice, value); } - } - - /// The UnitPriceDiscount property of the Entity SalesOrderDetail

- /// Mapped on table field: "SalesOrderDetail"."UnitPriceDiscount"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal UnitPriceDiscount - { - get { return (System.Decimal)GetValue((int)SalesOrderDetailFieldIndex.UnitPriceDiscount, true); } - set { SetValue((int)SalesOrderDetailFieldIndex.UnitPriceDiscount, value); } - } - - /// Gets / sets related entity of type 'SalesOrderHeaderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesOrderHeaderEntity SalesOrderHeader - { - get { return _salesOrderHeader; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesOrderHeader(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderDetails", "SalesOrderHeader", _salesOrderHeader, true); - } - } - } - - /// Gets / sets related entity of type 'SpecialOfferProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SpecialOfferProductEntity SpecialOfferProduct - { - get { return _specialOfferProduct; } - set - { - if(this.IsDeserializing) - { - SetupSyncSpecialOfferProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderDetails", "SpecialOfferProduct", _specialOfferProduct, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs deleted file mode 100644 index 015577a7..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs +++ /dev/null @@ -1,1523 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesOrderHeader'.

- [Serializable] - public partial class SalesOrderHeaderEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _salesOrderDetails; - private EntityCollection _salesOrderHeaderSalesReasons; - private AddressEntity _address; - private AddressEntity _address_; - private CreditCardEntity _creditCard; - private CurrencyRateEntity _currencyRate; - private CustomerEntity _customer; - private SalesPersonEntity _salesPerson; - private SalesTerritoryEntity _salesTerritory; - private ShipMethodEntity _shipMethod; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Address - public static readonly string Address = "Address"; - /// Member name Address_ - public static readonly string Address_ = "Address_"; - /// Member name CreditCard - public static readonly string CreditCard = "CreditCard"; - /// Member name CurrencyRate - public static readonly string CurrencyRate = "CurrencyRate"; - /// Member name Customer - public static readonly string Customer = "Customer"; - /// Member name SalesPerson - public static readonly string SalesPerson = "SalesPerson"; - /// Member name SalesTerritory - public static readonly string SalesTerritory = "SalesTerritory"; - /// Member name ShipMethod - public static readonly string ShipMethod = "ShipMethod"; - /// Member name SalesOrderDetails - public static readonly string SalesOrderDetails = "SalesOrderDetails"; - /// Member name SalesOrderHeaderSalesReasons - public static readonly string SalesOrderHeaderSalesReasons = "SalesOrderHeaderSalesReasons"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesOrderHeaderEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesOrderHeaderEntity():base("SalesOrderHeaderEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesOrderHeaderEntity(IEntityFields2 fields):base("SalesOrderHeaderEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesOrderHeaderEntity - public SalesOrderHeaderEntity(IValidator validator):base("SalesOrderHeaderEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesOrderHeader which data should be fetched into this SalesOrderHeader object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesOrderHeaderEntity(System.Int32 salesOrderId):base("SalesOrderHeaderEntity") - { - InitClassEmpty(null, null); - this.SalesOrderId = salesOrderId; - } - - /// CTor - /// PK value for SalesOrderHeader which data should be fetched into this SalesOrderHeader object - /// The custom validator object for this SalesOrderHeaderEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesOrderHeaderEntity(System.Int32 salesOrderId, IValidator validator):base("SalesOrderHeaderEntity") - { - InitClassEmpty(validator, null); - this.SalesOrderId = salesOrderId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesOrderHeaderEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderDetails = (EntityCollection)info.GetValue("_salesOrderDetails", typeof(EntityCollection)); - _salesOrderHeaderSalesReasons = (EntityCollection)info.GetValue("_salesOrderHeaderSalesReasons", typeof(EntityCollection)); - _address = (AddressEntity)info.GetValue("_address", typeof(AddressEntity)); - if(_address!=null) - { - _address.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _address_ = (AddressEntity)info.GetValue("_address_", typeof(AddressEntity)); - if(_address_!=null) - { - _address_.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _creditCard = (CreditCardEntity)info.GetValue("_creditCard", typeof(CreditCardEntity)); - if(_creditCard!=null) - { - _creditCard.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _currencyRate = (CurrencyRateEntity)info.GetValue("_currencyRate", typeof(CurrencyRateEntity)); - if(_currencyRate!=null) - { - _currencyRate.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _customer = (CustomerEntity)info.GetValue("_customer", typeof(CustomerEntity)); - if(_customer!=null) - { - _customer.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _salesPerson = (SalesPersonEntity)info.GetValue("_salesPerson", typeof(SalesPersonEntity)); - if(_salesPerson!=null) - { - _salesPerson.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _salesTerritory = (SalesTerritoryEntity)info.GetValue("_salesTerritory", typeof(SalesTerritoryEntity)); - if(_salesTerritory!=null) - { - _salesTerritory.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _shipMethod = (ShipMethodEntity)info.GetValue("_shipMethod", typeof(ShipMethodEntity)); - if(_shipMethod!=null) - { - _shipMethod.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesOrderHeaderFieldIndex)fieldIndex) - { - case SalesOrderHeaderFieldIndex.BillToAddressId: - DesetupSyncAddress(true, false); - break; - case SalesOrderHeaderFieldIndex.CreditCardId: - DesetupSyncCreditCard(true, false); - break; - case SalesOrderHeaderFieldIndex.CurrencyRateId: - DesetupSyncCurrencyRate(true, false); - break; - case SalesOrderHeaderFieldIndex.CustomerId: - DesetupSyncCustomer(true, false); - break; - case SalesOrderHeaderFieldIndex.SalesPersonId: - DesetupSyncSalesPerson(true, false); - break; - case SalesOrderHeaderFieldIndex.ShipMethodId: - DesetupSyncShipMethod(true, false); - break; - case SalesOrderHeaderFieldIndex.ShipToAddressId: - DesetupSyncAddress_(true, false); - break; - case SalesOrderHeaderFieldIndex.TerritoryId: - DesetupSyncSalesTerritory(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Address": - this.Address = (AddressEntity)entity; - break; - case "Address_": - this.Address_ = (AddressEntity)entity; - break; - case "CreditCard": - this.CreditCard = (CreditCardEntity)entity; - break; - case "CurrencyRate": - this.CurrencyRate = (CurrencyRateEntity)entity; - break; - case "Customer": - this.Customer = (CustomerEntity)entity; - break; - case "SalesPerson": - this.SalesPerson = (SalesPersonEntity)entity; - break; - case "SalesTerritory": - this.SalesTerritory = (SalesTerritoryEntity)entity; - break; - case "ShipMethod": - this.ShipMethod = (ShipMethodEntity)entity; - break; - case "SalesOrderDetails": - this.SalesOrderDetails.Add((SalesOrderDetailEntity)entity); - break; - case "SalesOrderHeaderSalesReasons": - this.SalesOrderHeaderSalesReasons.Add((SalesOrderHeaderSalesReasonEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Address": - toReturn.Add(Relations.AddressEntityUsingBillToAddressId); - break; - case "Address_": - toReturn.Add(Relations.AddressEntityUsingShipToAddressId); - break; - case "CreditCard": - toReturn.Add(Relations.CreditCardEntityUsingCreditCardId); - break; - case "CurrencyRate": - toReturn.Add(Relations.CurrencyRateEntityUsingCurrencyRateId); - break; - case "Customer": - toReturn.Add(Relations.CustomerEntityUsingCustomerId); - break; - case "SalesPerson": - toReturn.Add(Relations.SalesPersonEntityUsingSalesPersonId); - break; - case "SalesTerritory": - toReturn.Add(Relations.SalesTerritoryEntityUsingTerritoryId); - break; - case "ShipMethod": - toReturn.Add(Relations.ShipMethodEntityUsingShipMethodId); - break; - case "SalesOrderDetails": - toReturn.Add(Relations.SalesOrderDetailEntityUsingSalesOrderId); - break; - case "SalesOrderHeaderSalesReasons": - toReturn.Add(Relations.SalesOrderHeaderSalesReasonEntityUsingSalesOrderId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Address": - SetupSyncAddress(relatedEntity); - break; - case "Address_": - SetupSyncAddress_(relatedEntity); - break; - case "CreditCard": - SetupSyncCreditCard(relatedEntity); - break; - case "CurrencyRate": - SetupSyncCurrencyRate(relatedEntity); - break; - case "Customer": - SetupSyncCustomer(relatedEntity); - break; - case "SalesPerson": - SetupSyncSalesPerson(relatedEntity); - break; - case "SalesTerritory": - SetupSyncSalesTerritory(relatedEntity); - break; - case "ShipMethod": - SetupSyncShipMethod(relatedEntity); - break; - case "SalesOrderDetails": - this.SalesOrderDetails.Add((SalesOrderDetailEntity)relatedEntity); - break; - case "SalesOrderHeaderSalesReasons": - this.SalesOrderHeaderSalesReasons.Add((SalesOrderHeaderSalesReasonEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Address": - DesetupSyncAddress(false, true); - break; - case "Address_": - DesetupSyncAddress_(false, true); - break; - case "CreditCard": - DesetupSyncCreditCard(false, true); - break; - case "CurrencyRate": - DesetupSyncCurrencyRate(false, true); - break; - case "Customer": - DesetupSyncCustomer(false, true); - break; - case "SalesPerson": - DesetupSyncSalesPerson(false, true); - break; - case "SalesTerritory": - DesetupSyncSalesTerritory(false, true); - break; - case "ShipMethod": - DesetupSyncShipMethod(false, true); - break; - case "SalesOrderDetails": - this.PerformRelatedEntityRemoval(this.SalesOrderDetails, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesOrderHeaderSalesReasons": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaderSalesReasons, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_address!=null) - { - toReturn.Add(_address); - } - if(_address_!=null) - { - toReturn.Add(_address_); - } - if(_creditCard!=null) - { - toReturn.Add(_creditCard); - } - if(_currencyRate!=null) - { - toReturn.Add(_currencyRate); - } - if(_customer!=null) - { - toReturn.Add(_customer); - } - if(_salesPerson!=null) - { - toReturn.Add(_salesPerson); - } - if(_salesTerritory!=null) - { - toReturn.Add(_salesTerritory); - } - if(_shipMethod!=null) - { - toReturn.Add(_shipMethod); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderDetails); - toReturn.Add(this.SalesOrderHeaderSalesReasons); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderDetails", ((_salesOrderDetails!=null) && (_salesOrderDetails.Count>0) && !this.MarkedForDeletion)?_salesOrderDetails:null); - info.AddValue("_salesOrderHeaderSalesReasons", ((_salesOrderHeaderSalesReasons!=null) && (_salesOrderHeaderSalesReasons.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaderSalesReasons:null); - info.AddValue("_address", (!this.MarkedForDeletion?_address:null)); - info.AddValue("_address_", (!this.MarkedForDeletion?_address_:null)); - info.AddValue("_creditCard", (!this.MarkedForDeletion?_creditCard:null)); - info.AddValue("_currencyRate", (!this.MarkedForDeletion?_currencyRate:null)); - info.AddValue("_customer", (!this.MarkedForDeletion?_customer:null)); - info.AddValue("_salesPerson", (!this.MarkedForDeletion?_salesPerson:null)); - info.AddValue("_salesTerritory", (!this.MarkedForDeletion?_salesTerritory:null)); - info.AddValue("_shipMethod", (!this.MarkedForDeletion?_shipMethod:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesOrderHeaderRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderDetail' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderDetails() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderDetailFields.SalesOrderId, null, ComparisonOperator.Equal, this.SalesOrderId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeaderSalesReason' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaderSalesReasons() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderSalesReasonFields.SalesOrderId, null, ComparisonOperator.Equal, this.SalesOrderId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Address' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoAddress() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(AddressFields.AddressId, null, ComparisonOperator.Equal, this.BillToAddressId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Address' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoAddress_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(AddressFields.AddressId, null, ComparisonOperator.Equal, this.ShipToAddressId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CreditCard' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCreditCard() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CreditCardFields.CreditCardId, null, ComparisonOperator.Equal, this.CreditCardId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CurrencyRate' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCurrencyRate() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CurrencyRateFields.CurrencyRateId, null, ComparisonOperator.Equal, this.CurrencyRateId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Customer' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCustomer() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CustomerFields.CustomerId, null, ComparisonOperator.Equal, this.CustomerId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesPersonFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ShipMethod' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoShipMethod() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ShipMethodFields.ShipMethodId, null, ComparisonOperator.Equal, this.ShipMethodId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._salesOrderDetails); - collectionsQueue.Enqueue(this._salesOrderHeaderSalesReasons); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._salesOrderDetails = (EntityCollection) collectionsQueue.Dequeue(); - this._salesOrderHeaderSalesReasons = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._salesOrderDetails != null); - toReturn |=(this._salesOrderHeaderSalesReasons != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderDetailEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderSalesReasonEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Address", _address); - toReturn.Add("Address_", _address_); - toReturn.Add("CreditCard", _creditCard); - toReturn.Add("CurrencyRate", _currencyRate); - toReturn.Add("Customer", _customer); - toReturn.Add("SalesPerson", _salesPerson); - toReturn.Add("SalesTerritory", _salesTerritory); - toReturn.Add("ShipMethod", _shipMethod); - toReturn.Add("SalesOrderDetails", _salesOrderDetails); - toReturn.Add("SalesOrderHeaderSalesReasons", _salesOrderHeaderSalesReasons); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AccountNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("BillToAddressId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Comment", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CreditCardApprovalCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CreditCardId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CurrencyRateId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CustomerId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DueDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Freight", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OnlineOrderFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OrderDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PurchaseOrderNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("RevisionNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesOrderId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesOrderNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesPersonId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipMethodId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipToAddressId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Status", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SubTotal", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TaxAmt", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TerritoryId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TotalDue", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _address - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncAddress(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _address, new PropertyChangedEventHandler(OnAddressPropertyChanged), "Address", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.AddressEntityUsingBillToAddressIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.BillToAddressId }); - } - - /// setups the sync logic for member _address - /// Instance to set as the related entity of type entityType - private void SetupSyncAddress(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _address, new PropertyChangedEventHandler( OnAddressPropertyChanged ), "Address", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.AddressEntityUsingBillToAddressIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.BillToAddressId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnAddressPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _address_ - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncAddress_(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _address_, new PropertyChangedEventHandler(OnAddress_PropertyChanged), "Address_", "SalesOrderHeaders_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.AddressEntityUsingShipToAddressIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.ShipToAddressId }); - } - - /// setups the sync logic for member _address_ - /// Instance to set as the related entity of type entityType - private void SetupSyncAddress_(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _address_, new PropertyChangedEventHandler( OnAddress_PropertyChanged ), "Address_", "SalesOrderHeaders_", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.AddressEntityUsingShipToAddressIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.ShipToAddressId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnAddress_PropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _creditCard - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCreditCard(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _creditCard, new PropertyChangedEventHandler(OnCreditCardPropertyChanged), "CreditCard", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.CreditCardEntityUsingCreditCardIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.CreditCardId }); - } - - /// setups the sync logic for member _creditCard - /// Instance to set as the related entity of type entityType - private void SetupSyncCreditCard(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _creditCard, new PropertyChangedEventHandler( OnCreditCardPropertyChanged ), "CreditCard", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.CreditCardEntityUsingCreditCardIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.CreditCardId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCreditCardPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _currencyRate - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCurrencyRate(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _currencyRate, new PropertyChangedEventHandler(OnCurrencyRatePropertyChanged), "CurrencyRate", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.CurrencyRateEntityUsingCurrencyRateIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.CurrencyRateId }); - } - - /// setups the sync logic for member _currencyRate - /// Instance to set as the related entity of type entityType - private void SetupSyncCurrencyRate(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _currencyRate, new PropertyChangedEventHandler( OnCurrencyRatePropertyChanged ), "CurrencyRate", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.CurrencyRateEntityUsingCurrencyRateIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.CurrencyRateId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCurrencyRatePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _customer - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCustomer(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _customer, new PropertyChangedEventHandler(OnCustomerPropertyChanged), "Customer", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.CustomerEntityUsingCustomerIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.CustomerId }); - } - - /// setups the sync logic for member _customer - /// Instance to set as the related entity of type entityType - private void SetupSyncCustomer(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _customer, new PropertyChangedEventHandler( OnCustomerPropertyChanged ), "Customer", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.CustomerEntityUsingCustomerIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.CustomerId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCustomerPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _salesPerson - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesPerson, new PropertyChangedEventHandler(OnSalesPersonPropertyChanged), "SalesPerson", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.SalesPersonId }); - } - - /// setups the sync logic for member _salesPerson - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesPerson, new PropertyChangedEventHandler( OnSalesPersonPropertyChanged ), "SalesPerson", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.SalesPersonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _salesTerritory - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesTerritory(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesTerritory, new PropertyChangedEventHandler(OnSalesTerritoryPropertyChanged), "SalesTerritory", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.TerritoryId }); - } - - /// setups the sync logic for member _salesTerritory - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesTerritory(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesTerritory, new PropertyChangedEventHandler( OnSalesTerritoryPropertyChanged ), "SalesTerritory", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.TerritoryId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesTerritoryPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _shipMethod - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncShipMethod(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _shipMethod, new PropertyChangedEventHandler(OnShipMethodPropertyChanged), "ShipMethod", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.ShipMethodEntityUsingShipMethodIdStatic, true, new int[] { (int)SalesOrderHeaderFieldIndex.ShipMethodId }); - } - - /// setups the sync logic for member _shipMethod - /// Instance to set as the related entity of type entityType - private void SetupSyncShipMethod(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _shipMethod, new PropertyChangedEventHandler( OnShipMethodPropertyChanged ), "ShipMethod", "SalesOrderHeaders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderRelations.ShipMethodEntityUsingShipMethodIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderFieldIndex.ShipMethodId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnShipMethodPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesOrderHeaderEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesOrderHeaderRelations Relations - { - get { return new SalesOrderHeaderRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderDetail' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderDetails - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderDetailEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderDetails")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity, 0, null, null, null, null, "SalesOrderDetails", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeaderSalesReason' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaderSalesReasons - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderSalesReasonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaderSalesReasons")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity, 0, null, null, null, null, "SalesOrderHeaderSalesReasons", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathAddress - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(AddressEntityFactory))), (IEntityRelation)GetRelationsForField("Address")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, 0, null, null, null, null, "Address", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathAddress_ - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(AddressEntityFactory))), (IEntityRelation)GetRelationsForField("Address_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, 0, null, null, null, null, "Address_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CreditCard' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCreditCard - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CreditCardEntityFactory))), (IEntityRelation)GetRelationsForField("CreditCard")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity, 0, null, null, null, null, "CreditCard", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CurrencyRate' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCurrencyRate - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CurrencyRateEntityFactory))), (IEntityRelation)GetRelationsForField("CurrencyRate")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity, 0, null, null, null, null, "CurrencyRate", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCustomer - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory))), (IEntityRelation)GetRelationsForField("Customer")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, 0, null, null, null, null, "Customer", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesPerson")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, 0, null, null, null, null, "SalesPerson", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritory - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritory")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, 0, null, null, null, null, "SalesTerritory", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ShipMethod' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathShipMethod - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ShipMethodEntityFactory))), (IEntityRelation)GetRelationsForField("ShipMethod")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity, 0, null, null, null, null, "ShipMethod", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AccountNumber property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."AccountNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String AccountNumber - { - get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.AccountNumber, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.AccountNumber, value); } - } - - /// The BillToAddressId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."BillToAddressID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 BillToAddressId - { - get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.BillToAddressId, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.BillToAddressId, value); } - } - - /// The Comment property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."Comment"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 128
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Comment - { - get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.Comment, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.Comment, value); } - } - - /// The CreditCardApprovalCode property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."CreditCardApprovalCode"
- /// Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 15
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String CreditCardApprovalCode - { - get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.CreditCardApprovalCode, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.CreditCardApprovalCode, value); } - } - - /// The CreditCardId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."CreditCardID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable CreditCardId - { - get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.CreditCardId, false); } - set { SetValue((int)SalesOrderHeaderFieldIndex.CreditCardId, value); } - } - - /// The CurrencyRateId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."CurrencyRateID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable CurrencyRateId - { - get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.CurrencyRateId, false); } - set { SetValue((int)SalesOrderHeaderFieldIndex.CurrencyRateId, value); } - } - - /// The CustomerId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."CustomerID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 CustomerId - { - get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.CustomerId, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.CustomerId, value); } - } - - /// The DueDate property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."DueDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime DueDate - { - get { return (System.DateTime)GetValue((int)SalesOrderHeaderFieldIndex.DueDate, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.DueDate, value); } - } - - /// The Freight property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."Freight"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal Freight - { - get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.Freight, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.Freight, value); } - } - - /// The ModifiedDate property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesOrderHeaderFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.ModifiedDate, value); } - } - - /// The OnlineOrderFlag property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."OnlineOrderFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean OnlineOrderFlag - { - get { return (System.Boolean)GetValue((int)SalesOrderHeaderFieldIndex.OnlineOrderFlag, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.OnlineOrderFlag, value); } - } - - /// The OrderDate property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."OrderDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime OrderDate - { - get { return (System.DateTime)GetValue((int)SalesOrderHeaderFieldIndex.OrderDate, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.OrderDate, value); } - } - - /// The PurchaseOrderNumber property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."PurchaseOrderNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String PurchaseOrderNumber - { - get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.PurchaseOrderNumber, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.PurchaseOrderNumber, value); } - } - - /// The RevisionNumber property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."RevisionNumber"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte RevisionNumber - { - get { return (System.Byte)GetValue((int)SalesOrderHeaderFieldIndex.RevisionNumber, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.RevisionNumber, value); } - } - - /// The Rowguid property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SalesOrderHeaderFieldIndex.Rowguid, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.Rowguid, value); } - } - - /// The SalesOrderId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."SalesOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 SalesOrderId - { - get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.SalesOrderId, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.SalesOrderId, value); } - } - - /// The SalesOrderNumber property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."SalesOrderNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String SalesOrderNumber - { - get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.SalesOrderNumber, true); } - - } - - /// The SalesPersonId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."SalesPersonID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable SalesPersonId - { - get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.SalesPersonId, false); } - set { SetValue((int)SalesOrderHeaderFieldIndex.SalesPersonId, value); } - } - - /// The ShipDate property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."ShipDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ShipDate - { - get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.ShipDate, false); } - set { SetValue((int)SalesOrderHeaderFieldIndex.ShipDate, value); } - } - - /// The ShipMethodId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."ShipMethodID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ShipMethodId - { - get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.ShipMethodId, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.ShipMethodId, value); } - } - - /// The ShipToAddressId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."ShipToAddressID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ShipToAddressId - { - get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.ShipToAddressId, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.ShipToAddressId, value); } - } - - /// The Status property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."Status"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte Status - { - get { return (System.Byte)GetValue((int)SalesOrderHeaderFieldIndex.Status, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.Status, value); } - } - - /// The SubTotal property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."SubTotal"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal SubTotal - { - get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.SubTotal, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.SubTotal, value); } - } - - /// The TaxAmt property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."TaxAmt"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal TaxAmt - { - get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.TaxAmt, true); } - set { SetValue((int)SalesOrderHeaderFieldIndex.TaxAmt, value); } - } - - /// The TerritoryId property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."TerritoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable TerritoryId - { - get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.TerritoryId, false); } - set { SetValue((int)SalesOrderHeaderFieldIndex.TerritoryId, value); } - } - - /// The TotalDue property of the Entity SalesOrderHeader

- /// Mapped on table field: "SalesOrderHeader"."TotalDue"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal TotalDue - { - get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.TotalDue, true); } - - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderDetailEntity))] - public virtual EntityCollection SalesOrderDetails - { - get { return GetOrCreateEntityCollection("SalesOrderHeader", true, false, ref _salesOrderDetails); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderSalesReasonEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderSalesReasonEntity))] - public virtual EntityCollection SalesOrderHeaderSalesReasons - { - get { return GetOrCreateEntityCollection("SalesOrderHeader", true, false, ref _salesOrderHeaderSalesReasons); } - } - - /// Gets / sets related entity of type 'AddressEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual AddressEntity Address - { - get { return _address; } - set - { - if(this.IsDeserializing) - { - SetupSyncAddress(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders", "Address", _address, true); - } - } - } - - /// Gets / sets related entity of type 'AddressEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual AddressEntity Address_ - { - get { return _address_; } - set - { - if(this.IsDeserializing) - { - SetupSyncAddress_(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders_", "Address_", _address_, true); - } - } - } - - /// Gets / sets related entity of type 'CreditCardEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CreditCardEntity CreditCard - { - get { return _creditCard; } - set - { - if(this.IsDeserializing) - { - SetupSyncCreditCard(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders", "CreditCard", _creditCard, true); - } - } - } - - /// Gets / sets related entity of type 'CurrencyRateEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CurrencyRateEntity CurrencyRate - { - get { return _currencyRate; } - set - { - if(this.IsDeserializing) - { - SetupSyncCurrencyRate(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders", "CurrencyRate", _currencyRate, true); - } - } - } - - /// Gets / sets related entity of type 'CustomerEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CustomerEntity Customer - { - get { return _customer; } - set - { - if(this.IsDeserializing) - { - SetupSyncCustomer(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders", "Customer", _customer, true); - } - } - } - - /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesPersonEntity SalesPerson - { - get { return _salesPerson; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders", "SalesPerson", _salesPerson, true); - } - } - } - - /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesTerritoryEntity SalesTerritory - { - get { return _salesTerritory; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesTerritory(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders", "SalesTerritory", _salesTerritory, true); - } - } - } - - /// Gets / sets related entity of type 'ShipMethodEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ShipMethodEntity ShipMethod - { - get { return _shipMethod; } - set - { - if(this.IsDeserializing) - { - SetupSyncShipMethod(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaders", "ShipMethod", _shipMethod, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs deleted file mode 100644 index 05db55d7..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs +++ /dev/null @@ -1,619 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesOrderHeaderSalesReason'.

- [Serializable] - public partial class SalesOrderHeaderSalesReasonEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private SalesOrderHeaderEntity _salesOrderHeader; - private SalesReasonEntity _salesReason; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SalesOrderHeader - public static readonly string SalesOrderHeader = "SalesOrderHeader"; - /// Member name SalesReason - public static readonly string SalesReason = "SalesReason"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesOrderHeaderSalesReasonEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesOrderHeaderSalesReasonEntity():base("SalesOrderHeaderSalesReasonEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesOrderHeaderSalesReasonEntity(IEntityFields2 fields):base("SalesOrderHeaderSalesReasonEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesOrderHeaderSalesReasonEntity - public SalesOrderHeaderSalesReasonEntity(IValidator validator):base("SalesOrderHeaderSalesReasonEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object - /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesOrderHeaderSalesReasonEntity(System.Int32 salesOrderId, System.Int32 salesReasonId):base("SalesOrderHeaderSalesReasonEntity") - { - InitClassEmpty(null, null); - this.SalesOrderId = salesOrderId; - this.SalesReasonId = salesReasonId; - } - - /// CTor - /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object - /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object - /// The custom validator object for this SalesOrderHeaderSalesReasonEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesOrderHeaderSalesReasonEntity(System.Int32 salesOrderId, System.Int32 salesReasonId, IValidator validator):base("SalesOrderHeaderSalesReasonEntity") - { - InitClassEmpty(validator, null); - this.SalesOrderId = salesOrderId; - this.SalesReasonId = salesReasonId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesOrderHeaderSalesReasonEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderHeader = (SalesOrderHeaderEntity)info.GetValue("_salesOrderHeader", typeof(SalesOrderHeaderEntity)); - if(_salesOrderHeader!=null) - { - _salesOrderHeader.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _salesReason = (SalesReasonEntity)info.GetValue("_salesReason", typeof(SalesReasonEntity)); - if(_salesReason!=null) - { - _salesReason.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesOrderHeaderSalesReasonFieldIndex)fieldIndex) - { - case SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId: - DesetupSyncSalesOrderHeader(true, false); - break; - case SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId: - DesetupSyncSalesReason(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SalesOrderHeader": - this.SalesOrderHeader = (SalesOrderHeaderEntity)entity; - break; - case "SalesReason": - this.SalesReason = (SalesReasonEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SalesOrderHeader": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingSalesOrderId); - break; - case "SalesReason": - toReturn.Add(Relations.SalesReasonEntityUsingSalesReasonId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SalesOrderHeader": - SetupSyncSalesOrderHeader(relatedEntity); - break; - case "SalesReason": - SetupSyncSalesReason(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SalesOrderHeader": - DesetupSyncSalesOrderHeader(false, true); - break; - case "SalesReason": - DesetupSyncSalesReason(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_salesOrderHeader!=null) - { - toReturn.Add(_salesOrderHeader); - } - if(_salesReason!=null) - { - toReturn.Add(_salesReason); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderHeader", (!this.MarkedForDeletion?_salesOrderHeader:null)); - info.AddValue("_salesReason", (!this.MarkedForDeletion?_salesReason:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesOrderHeaderSalesReasonRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeader() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.SalesOrderId, null, ComparisonOperator.Equal, this.SalesOrderId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesReason' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesReason() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesReasonFields.SalesReasonId, null, ComparisonOperator.Equal, this.SalesReasonId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderSalesReasonEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SalesOrderHeader", _salesOrderHeader); - toReturn.Add("SalesReason", _salesReason); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesOrderId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesReasonId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _salesOrderHeader - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesOrderHeader(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesOrderHeader, new PropertyChangedEventHandler(OnSalesOrderHeaderPropertyChanged), "SalesOrderHeader", "SalesOrderHeaderSalesReasons", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderSalesReasonRelations.SalesOrderHeaderEntityUsingSalesOrderIdStatic, true, new int[] { (int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId }); - } - - /// setups the sync logic for member _salesOrderHeader - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesOrderHeader(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesOrderHeader, new PropertyChangedEventHandler( OnSalesOrderHeaderPropertyChanged ), "SalesOrderHeader", "SalesOrderHeaderSalesReasons", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderSalesReasonRelations.SalesOrderHeaderEntityUsingSalesOrderIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesOrderHeaderPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _salesReason - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesReason(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesReason, new PropertyChangedEventHandler(OnSalesReasonPropertyChanged), "SalesReason", "SalesOrderHeaderSalesReasons", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderSalesReasonRelations.SalesReasonEntityUsingSalesReasonIdStatic, true, new int[] { (int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId }); - } - - /// setups the sync logic for member _salesReason - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesReason(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesReason, new PropertyChangedEventHandler( OnSalesReasonPropertyChanged ), "SalesReason", "SalesOrderHeaderSalesReasons", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesOrderHeaderSalesReasonRelations.SalesReasonEntityUsingSalesReasonIdStatic, true, new string[] { }, new int[] { (int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesReasonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesOrderHeaderSalesReasonEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesOrderHeaderSalesReasonRelations Relations - { - get { return new SalesOrderHeaderSalesReasonRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeader - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeader")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeader", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesReason' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesReason - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesReasonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesReason")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesReasonEntity, 0, null, null, null, null, "SalesReason", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity SalesOrderHeaderSalesReason

- /// Mapped on table field: "SalesOrderHeaderSalesReason"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesOrderHeaderSalesReasonFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesOrderHeaderSalesReasonFieldIndex.ModifiedDate, value); } - } - - /// The SalesOrderId property of the Entity SalesOrderHeaderSalesReason

- /// Mapped on table field: "SalesOrderHeaderSalesReason"."SalesOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 SalesOrderId - { - get { return (System.Int32)GetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId, true); } - set { SetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId, value); } - } - - /// The SalesReasonId property of the Entity SalesOrderHeaderSalesReason

- /// Mapped on table field: "SalesOrderHeaderSalesReason"."SalesReasonID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 SalesReasonId - { - get { return (System.Int32)GetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId, true); } - set { SetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId, value); } - } - - /// Gets / sets related entity of type 'SalesOrderHeaderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesOrderHeaderEntity SalesOrderHeader - { - get { return _salesOrderHeader; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesOrderHeader(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaderSalesReasons", "SalesOrderHeader", _salesOrderHeader, true); - } - } - } - - /// Gets / sets related entity of type 'SalesReasonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesReasonEntity SalesReason - { - get { return _salesReason; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesReason(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesOrderHeaderSalesReasons", "SalesReason", _salesReason, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs deleted file mode 100644 index d094c910..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs +++ /dev/null @@ -1,892 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesPerson'.

- [Serializable] - public partial class SalesPersonEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _salesOrderHeaders; - private EntityCollection _salesPersonQuotaHistories; - private EntityCollection _salesTerritoryHistories; - private EntityCollection _stores; - private SalesTerritoryEntity _salesTerritory; - private EmployeeEntity _employee; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SalesTerritory - public static readonly string SalesTerritory = "SalesTerritory"; - /// Member name SalesOrderHeaders - public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; - /// Member name SalesPersonQuotaHistories - public static readonly string SalesPersonQuotaHistories = "SalesPersonQuotaHistories"; - /// Member name SalesTerritoryHistories - public static readonly string SalesTerritoryHistories = "SalesTerritoryHistories"; - /// Member name Stores - public static readonly string Stores = "Stores"; - /// Member name Employee - public static readonly string Employee = "Employee"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesPersonEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesPersonEntity():base("SalesPersonEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesPersonEntity(IEntityFields2 fields):base("SalesPersonEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesPersonEntity - public SalesPersonEntity(IValidator validator):base("SalesPersonEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesPerson which data should be fetched into this SalesPerson object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesPersonEntity(System.Int32 salesPersonId):base("SalesPersonEntity") - { - InitClassEmpty(null, null); - this.SalesPersonId = salesPersonId; - } - - /// CTor - /// PK value for SalesPerson which data should be fetched into this SalesPerson object - /// The custom validator object for this SalesPersonEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesPersonEntity(System.Int32 salesPersonId, IValidator validator):base("SalesPersonEntity") - { - InitClassEmpty(validator, null); - this.SalesPersonId = salesPersonId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesPersonEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderHeaders = (EntityCollection)info.GetValue("_salesOrderHeaders", typeof(EntityCollection)); - _salesPersonQuotaHistories = (EntityCollection)info.GetValue("_salesPersonQuotaHistories", typeof(EntityCollection)); - _salesTerritoryHistories = (EntityCollection)info.GetValue("_salesTerritoryHistories", typeof(EntityCollection)); - _stores = (EntityCollection)info.GetValue("_stores", typeof(EntityCollection)); - _salesTerritory = (SalesTerritoryEntity)info.GetValue("_salesTerritory", typeof(SalesTerritoryEntity)); - if(_salesTerritory!=null) - { - _salesTerritory.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); - if(_employee!=null) - { - _employee.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesPersonFieldIndex)fieldIndex) - { - case SalesPersonFieldIndex.SalesPersonId: - DesetupSyncEmployee(true, false); - break; - case SalesPersonFieldIndex.TerritoryId: - DesetupSyncSalesTerritory(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SalesTerritory": - this.SalesTerritory = (SalesTerritoryEntity)entity; - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)entity); - break; - case "SalesPersonQuotaHistories": - this.SalesPersonQuotaHistories.Add((SalesPersonQuotaHistoryEntity)entity); - break; - case "SalesTerritoryHistories": - this.SalesTerritoryHistories.Add((SalesTerritoryHistoryEntity)entity); - break; - case "Stores": - this.Stores.Add((StoreEntity)entity); - break; - case "Employee": - this.Employee = (EmployeeEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SalesTerritory": - toReturn.Add(Relations.SalesTerritoryEntityUsingTerritoryId); - break; - case "SalesOrderHeaders": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingSalesPersonId); - break; - case "SalesPersonQuotaHistories": - toReturn.Add(Relations.SalesPersonQuotaHistoryEntityUsingSalesPersonId); - break; - case "SalesTerritoryHistories": - toReturn.Add(Relations.SalesTerritoryHistoryEntityUsingSalesPersonId); - break; - case "Stores": - toReturn.Add(Relations.StoreEntityUsingSalesPersonId); - break; - case "Employee": - toReturn.Add(Relations.EmployeeEntityUsingSalesPersonId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SalesTerritory": - SetupSyncSalesTerritory(relatedEntity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)relatedEntity); - break; - case "SalesPersonQuotaHistories": - this.SalesPersonQuotaHistories.Add((SalesPersonQuotaHistoryEntity)relatedEntity); - break; - case "SalesTerritoryHistories": - this.SalesTerritoryHistories.Add((SalesTerritoryHistoryEntity)relatedEntity); - break; - case "Stores": - this.Stores.Add((StoreEntity)relatedEntity); - break; - case "Employee": - SetupSyncEmployee(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SalesTerritory": - DesetupSyncSalesTerritory(false, true); - break; - case "SalesOrderHeaders": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesPersonQuotaHistories": - this.PerformRelatedEntityRemoval(this.SalesPersonQuotaHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesTerritoryHistories": - this.PerformRelatedEntityRemoval(this.SalesTerritoryHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "Stores": - this.PerformRelatedEntityRemoval(this.Stores, relatedEntity, signalRelatedEntityManyToOne); - break; - case "Employee": - DesetupSyncEmployee(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - - - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_salesTerritory!=null) - { - toReturn.Add(_salesTerritory); - } - if(_employee!=null) - { - toReturn.Add(_employee); - } - - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaders); - toReturn.Add(this.SalesPersonQuotaHistories); - toReturn.Add(this.SalesTerritoryHistories); - toReturn.Add(this.Stores); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderHeaders", ((_salesOrderHeaders!=null) && (_salesOrderHeaders.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders:null); - info.AddValue("_salesPersonQuotaHistories", ((_salesPersonQuotaHistories!=null) && (_salesPersonQuotaHistories.Count>0) && !this.MarkedForDeletion)?_salesPersonQuotaHistories:null); - info.AddValue("_salesTerritoryHistories", ((_salesTerritoryHistories!=null) && (_salesTerritoryHistories.Count>0) && !this.MarkedForDeletion)?_salesTerritoryHistories:null); - info.AddValue("_stores", ((_stores!=null) && (_stores.Count>0) && !this.MarkedForDeletion)?_stores:null); - info.AddValue("_salesTerritory", (!this.MarkedForDeletion?_salesTerritory:null)); - info.AddValue("_employee", (!this.MarkedForDeletion?_employee:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesPersonRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesPersonQuotaHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesPersonQuotaHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesPersonQuotaHistoryFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTerritoryHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritoryHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryHistoryFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Store' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoStores() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(StoreFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployee() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeFields.EmployeeId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._salesOrderHeaders); - collectionsQueue.Enqueue(this._salesPersonQuotaHistories); - collectionsQueue.Enqueue(this._salesTerritoryHistories); - collectionsQueue.Enqueue(this._stores); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._salesOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - this._salesPersonQuotaHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._salesTerritoryHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._stores = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._salesOrderHeaders != null); - toReturn |=(this._salesPersonQuotaHistories != null); - toReturn |=(this._salesTerritoryHistories != null); - toReturn |=(this._stores != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonQuotaHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StoreEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SalesTerritory", _salesTerritory); - toReturn.Add("SalesOrderHeaders", _salesOrderHeaders); - toReturn.Add("SalesPersonQuotaHistories", _salesPersonQuotaHistories); - toReturn.Add("SalesTerritoryHistories", _salesTerritoryHistories); - toReturn.Add("Stores", _stores); - toReturn.Add("Employee", _employee); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Bonus", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CommissionPct", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesLastYear", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesPersonId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesQuota", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesYtd", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TerritoryId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _salesTerritory - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesTerritory(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesTerritory, new PropertyChangedEventHandler(OnSalesTerritoryPropertyChanged), "SalesTerritory", "SalesPeople", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesPersonRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new int[] { (int)SalesPersonFieldIndex.TerritoryId }); - } - - /// setups the sync logic for member _salesTerritory - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesTerritory(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesTerritory, new PropertyChangedEventHandler( OnSalesTerritoryPropertyChanged ), "SalesTerritory", "SalesPeople", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesPersonRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new string[] { }, new int[] { (int)SalesPersonFieldIndex.TerritoryId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesTerritoryPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _employee - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncEmployee(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _employee, new PropertyChangedEventHandler(OnEmployeePropertyChanged), "Employee", "SalesPerson", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesPersonRelations.EmployeeEntityUsingSalesPersonIdStatic, true, new int[] { (int)SalesPersonFieldIndex.SalesPersonId }); - } - - /// setups the sync logic for member _employee - /// Instance to set as the related entity of type entityType - private void SetupSyncEmployee(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _employee, new PropertyChangedEventHandler( OnEmployeePropertyChanged ), "Employee", "SalesPerson", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesPersonRelations.EmployeeEntityUsingSalesPersonIdStatic, true, new string[] { }, new int[] { (int)SalesPersonFieldIndex.SalesPersonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnEmployeePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesPersonEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesPersonRelations Relations - { - get { return new SalesPersonRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPersonQuotaHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesPersonQuotaHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonQuotaHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesPersonQuotaHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonQuotaHistoryEntity, 0, null, null, null, null, "SalesPersonQuotaHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritoryHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritoryHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritoryHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity, 0, null, null, null, null, "SalesTerritoryHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Store' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathStores - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StoreEntityFactory))), (IEntityRelation)GetRelationsForField("Stores")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity, 0, null, null, null, null, "Stores", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritory - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritory")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, 0, null, null, null, null, "SalesTerritory", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployee - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeEntityFactory))), (IEntityRelation)GetRelationsForField("Employee")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, 0, null, null, null, null, "Employee", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Bonus property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."Bonus"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal Bonus - { - get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.Bonus, true); } - set { SetValue((int)SalesPersonFieldIndex.Bonus, value); } - } - - /// The CommissionPct property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."CommissionPct"
- /// Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal CommissionPct - { - get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.CommissionPct, true); } - set { SetValue((int)SalesPersonFieldIndex.CommissionPct, value); } - } - - /// The ModifiedDate property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesPersonFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesPersonFieldIndex.ModifiedDate, value); } - } - - /// The Rowguid property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SalesPersonFieldIndex.Rowguid, true); } - set { SetValue((int)SalesPersonFieldIndex.Rowguid, value); } - } - - /// The SalesLastYear property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."SalesLastYear"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal SalesLastYear - { - get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.SalesLastYear, true); } - set { SetValue((int)SalesPersonFieldIndex.SalesLastYear, value); } - } - - /// The SalesPersonId property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 SalesPersonId - { - get { return (System.Int32)GetValue((int)SalesPersonFieldIndex.SalesPersonId, true); } - set { SetValue((int)SalesPersonFieldIndex.SalesPersonId, value); } - } - - /// The SalesQuota property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."SalesQuota"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable SalesQuota - { - get { return (Nullable)GetValue((int)SalesPersonFieldIndex.SalesQuota, false); } - set { SetValue((int)SalesPersonFieldIndex.SalesQuota, value); } - } - - /// The SalesYtd property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."SalesYTD"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal SalesYtd - { - get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.SalesYtd, true); } - set { SetValue((int)SalesPersonFieldIndex.SalesYtd, value); } - } - - /// The TerritoryId property of the Entity SalesPerson

- /// Mapped on table field: "SalesPerson"."TerritoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable TerritoryId - { - get { return (Nullable)GetValue((int)SalesPersonFieldIndex.TerritoryId, false); } - set { SetValue((int)SalesPersonFieldIndex.TerritoryId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders - { - get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _salesOrderHeaders); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesPersonQuotaHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesPersonQuotaHistoryEntity))] - public virtual EntityCollection SalesPersonQuotaHistories - { - get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _salesPersonQuotaHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesTerritoryHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesTerritoryHistoryEntity))] - public virtual EntityCollection SalesTerritoryHistories - { - get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _salesTerritoryHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'StoreEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(StoreEntity))] - public virtual EntityCollection Stores - { - get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _stores); } - } - - /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesTerritoryEntity SalesTerritory - { - get { return _salesTerritory; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesTerritory(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesPeople", "SalesTerritory", _salesTerritory, true); - } - } - } - - /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual EmployeeEntity Employee - { - get { return _employee; } - set - { - if(this.IsDeserializing) - { - SetupSyncEmployee(value); - CallSetRelatedEntityDuringDeserialization(value, "SalesPerson"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_employee !=null); - DesetupSyncEmployee(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("Employee"); - } - } - else - { - if(_employee!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "SalesPerson"); - SetupSyncEmployee(value); - } - } - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs deleted file mode 100644 index c3c308a9..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs +++ /dev/null @@ -1,553 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesPersonQuotaHistory'.

- [Serializable] - public partial class SalesPersonQuotaHistoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private SalesPersonEntity _salesPerson; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SalesPerson - public static readonly string SalesPerson = "SalesPerson"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesPersonQuotaHistoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesPersonQuotaHistoryEntity():base("SalesPersonQuotaHistoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesPersonQuotaHistoryEntity(IEntityFields2 fields):base("SalesPersonQuotaHistoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesPersonQuotaHistoryEntity - public SalesPersonQuotaHistoryEntity(IValidator validator):base("SalesPersonQuotaHistoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object - /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesPersonQuotaHistoryEntity(System.DateTime quotaDate, System.Int32 salesPersonId):base("SalesPersonQuotaHistoryEntity") - { - InitClassEmpty(null, null); - this.QuotaDate = quotaDate; - this.SalesPersonId = salesPersonId; - } - - /// CTor - /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object - /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object - /// The custom validator object for this SalesPersonQuotaHistoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesPersonQuotaHistoryEntity(System.DateTime quotaDate, System.Int32 salesPersonId, IValidator validator):base("SalesPersonQuotaHistoryEntity") - { - InitClassEmpty(validator, null); - this.QuotaDate = quotaDate; - this.SalesPersonId = salesPersonId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesPersonQuotaHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesPerson = (SalesPersonEntity)info.GetValue("_salesPerson", typeof(SalesPersonEntity)); - if(_salesPerson!=null) - { - _salesPerson.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesPersonQuotaHistoryFieldIndex)fieldIndex) - { - case SalesPersonQuotaHistoryFieldIndex.SalesPersonId: - DesetupSyncSalesPerson(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SalesPerson": - this.SalesPerson = (SalesPersonEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SalesPerson": - toReturn.Add(Relations.SalesPersonEntityUsingSalesPersonId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SalesPerson": - SetupSyncSalesPerson(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SalesPerson": - DesetupSyncSalesPerson(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_salesPerson!=null) - { - toReturn.Add(_salesPerson); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesPerson", (!this.MarkedForDeletion?_salesPerson:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesPersonQuotaHistoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesPersonFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonQuotaHistoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SalesPerson", _salesPerson); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("QuotaDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesPersonId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesQuota", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _salesPerson - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesPerson, new PropertyChangedEventHandler(OnSalesPersonPropertyChanged), "SalesPerson", "SalesPersonQuotaHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesPersonQuotaHistoryRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new int[] { (int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId }); - } - - /// setups the sync logic for member _salesPerson - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesPerson, new PropertyChangedEventHandler( OnSalesPersonPropertyChanged ), "SalesPerson", "SalesPersonQuotaHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesPersonQuotaHistoryRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new string[] { }, new int[] { (int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesPersonQuotaHistoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesPersonQuotaHistoryRelations Relations - { - get { return new SalesPersonQuotaHistoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesPerson")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonQuotaHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, 0, null, null, null, null, "SalesPerson", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity SalesPersonQuotaHistory

- /// Mapped on table field: "SalesPersonQuotaHistory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesPersonQuotaHistoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.ModifiedDate, value); } - } - - /// The QuotaDate property of the Entity SalesPersonQuotaHistory

- /// Mapped on table field: "SalesPersonQuotaHistory"."QuotaDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.DateTime QuotaDate - { - get { return (System.DateTime)GetValue((int)SalesPersonQuotaHistoryFieldIndex.QuotaDate, true); } - set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.QuotaDate, value); } - } - - /// The Rowguid property of the Entity SalesPersonQuotaHistory

- /// Mapped on table field: "SalesPersonQuotaHistory"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SalesPersonQuotaHistoryFieldIndex.Rowguid, true); } - set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.Rowguid, value); } - } - - /// The SalesPersonId property of the Entity SalesPersonQuotaHistory

- /// Mapped on table field: "SalesPersonQuotaHistory"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 SalesPersonId - { - get { return (System.Int32)GetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId, true); } - set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId, value); } - } - - /// The SalesQuota property of the Entity SalesPersonQuotaHistory

- /// Mapped on table field: "SalesPersonQuotaHistory"."SalesQuota"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal SalesQuota - { - get { return (System.Decimal)GetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesQuota, true); } - set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesQuota, value); } - } - - /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesPersonEntity SalesPerson - { - get { return _salesPerson; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesPersonQuotaHistories", "SalesPerson", _salesPerson, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonQuotaHistoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs deleted file mode 100644 index ab3b04cd..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs +++ /dev/null @@ -1,481 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesReason'.

- [Serializable] - public partial class SalesReasonEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _salesOrderHeaderSalesReasons; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SalesOrderHeaderSalesReasons - public static readonly string SalesOrderHeaderSalesReasons = "SalesOrderHeaderSalesReasons"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesReasonEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesReasonEntity():base("SalesReasonEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesReasonEntity(IEntityFields2 fields):base("SalesReasonEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesReasonEntity - public SalesReasonEntity(IValidator validator):base("SalesReasonEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesReason which data should be fetched into this SalesReason object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesReasonEntity(System.Int32 salesReasonId):base("SalesReasonEntity") - { - InitClassEmpty(null, null); - this.SalesReasonId = salesReasonId; - } - - /// CTor - /// PK value for SalesReason which data should be fetched into this SalesReason object - /// The custom validator object for this SalesReasonEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesReasonEntity(System.Int32 salesReasonId, IValidator validator):base("SalesReasonEntity") - { - InitClassEmpty(validator, null); - this.SalesReasonId = salesReasonId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesReasonEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderHeaderSalesReasons = (EntityCollection)info.GetValue("_salesOrderHeaderSalesReasons", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SalesOrderHeaderSalesReasons": - this.SalesOrderHeaderSalesReasons.Add((SalesOrderHeaderSalesReasonEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SalesOrderHeaderSalesReasons": - toReturn.Add(Relations.SalesOrderHeaderSalesReasonEntityUsingSalesReasonId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SalesOrderHeaderSalesReasons": - this.SalesOrderHeaderSalesReasons.Add((SalesOrderHeaderSalesReasonEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SalesOrderHeaderSalesReasons": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaderSalesReasons, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaderSalesReasons); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderHeaderSalesReasons", ((_salesOrderHeaderSalesReasons!=null) && (_salesOrderHeaderSalesReasons.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaderSalesReasons:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesReasonRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeaderSalesReason' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaderSalesReasons() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderSalesReasonFields.SalesReasonId, null, ComparisonOperator.Equal, this.SalesReasonId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesReasonEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._salesOrderHeaderSalesReasons); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._salesOrderHeaderSalesReasons = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._salesOrderHeaderSalesReasons != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderSalesReasonEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SalesOrderHeaderSalesReasons", _salesOrderHeaderSalesReasons); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReasonType", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesReasonId", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesReasonEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesReasonRelations Relations - { - get { return new SalesReasonRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeaderSalesReason' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaderSalesReasons - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderSalesReasonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaderSalesReasons")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesReasonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity, 0, null, null, null, null, "SalesOrderHeaderSalesReasons", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity SalesReason

- /// Mapped on table field: "SalesReason"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesReasonFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesReasonFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity SalesReason

- /// Mapped on table field: "SalesReason"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)SalesReasonFieldIndex.Name, true); } - set { SetValue((int)SalesReasonFieldIndex.Name, value); } - } - - /// The ReasonType property of the Entity SalesReason

- /// Mapped on table field: "SalesReason"."ReasonType"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String ReasonType - { - get { return (System.String)GetValue((int)SalesReasonFieldIndex.ReasonType, true); } - set { SetValue((int)SalesReasonFieldIndex.ReasonType, value); } - } - - /// The SalesReasonId property of the Entity SalesReason

- /// Mapped on table field: "SalesReason"."SalesReasonID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 SalesReasonId - { - get { return (System.Int32)GetValue((int)SalesReasonFieldIndex.SalesReasonId, true); } - set { SetValue((int)SalesReasonFieldIndex.SalesReasonId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderSalesReasonEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderSalesReasonEntity))] - public virtual EntityCollection SalesOrderHeaderSalesReasons - { - get { return GetOrCreateEntityCollection("SalesReason", true, false, ref _salesOrderHeaderSalesReasons); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesReasonEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs deleted file mode 100644 index 7bcfb90d..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs +++ /dev/null @@ -1,573 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesTaxRate'.

- [Serializable] - public partial class SalesTaxRateEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private StateProvinceEntity _stateProvince; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name StateProvince - public static readonly string StateProvince = "StateProvince"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesTaxRateEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesTaxRateEntity():base("SalesTaxRateEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesTaxRateEntity(IEntityFields2 fields):base("SalesTaxRateEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesTaxRateEntity - public SalesTaxRateEntity(IValidator validator):base("SalesTaxRateEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesTaxRate which data should be fetched into this SalesTaxRate object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesTaxRateEntity(System.Int32 salesTaxRateId):base("SalesTaxRateEntity") - { - InitClassEmpty(null, null); - this.SalesTaxRateId = salesTaxRateId; - } - - /// CTor - /// PK value for SalesTaxRate which data should be fetched into this SalesTaxRate object - /// The custom validator object for this SalesTaxRateEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesTaxRateEntity(System.Int32 salesTaxRateId, IValidator validator):base("SalesTaxRateEntity") - { - InitClassEmpty(validator, null); - this.SalesTaxRateId = salesTaxRateId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesTaxRateEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _stateProvince = (StateProvinceEntity)info.GetValue("_stateProvince", typeof(StateProvinceEntity)); - if(_stateProvince!=null) - { - _stateProvince.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesTaxRateFieldIndex)fieldIndex) - { - case SalesTaxRateFieldIndex.StateProvinceId: - DesetupSyncStateProvince(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "StateProvince": - this.StateProvince = (StateProvinceEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "StateProvince": - toReturn.Add(Relations.StateProvinceEntityUsingStateProvinceId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "StateProvince": - SetupSyncStateProvince(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "StateProvince": - DesetupSyncStateProvince(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_stateProvince!=null) - { - toReturn.Add(_stateProvince); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_stateProvince", (!this.MarkedForDeletion?_stateProvince:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesTaxRateRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'StateProvince' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoStateProvince() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(StateProvinceFields.StateProvinceId, null, ComparisonOperator.Equal, this.StateProvinceId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesTaxRateEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("StateProvince", _stateProvince); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesTaxRateId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StateProvinceId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TaxRate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TaxType", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _stateProvince - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncStateProvince(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _stateProvince, new PropertyChangedEventHandler(OnStateProvincePropertyChanged), "StateProvince", "SalesTaxRates", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTaxRateRelations.StateProvinceEntityUsingStateProvinceIdStatic, true, new int[] { (int)SalesTaxRateFieldIndex.StateProvinceId }); - } - - /// setups the sync logic for member _stateProvince - /// Instance to set as the related entity of type entityType - private void SetupSyncStateProvince(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _stateProvince, new PropertyChangedEventHandler( OnStateProvincePropertyChanged ), "StateProvince", "SalesTaxRates", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTaxRateRelations.StateProvinceEntityUsingStateProvinceIdStatic, true, new string[] { }, new int[] { (int)SalesTaxRateFieldIndex.StateProvinceId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnStateProvincePropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesTaxRateEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesTaxRateRelations Relations - { - get { return new SalesTaxRateRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathStateProvince - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StateProvinceEntityFactory))), (IEntityRelation)GetRelationsForField("StateProvince")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTaxRateEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, 0, null, null, null, null, "StateProvince", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity SalesTaxRate

- /// Mapped on table field: "SalesTaxRate"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesTaxRateFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesTaxRateFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity SalesTaxRate

- /// Mapped on table field: "SalesTaxRate"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)SalesTaxRateFieldIndex.Name, true); } - set { SetValue((int)SalesTaxRateFieldIndex.Name, value); } - } - - /// The Rowguid property of the Entity SalesTaxRate

- /// Mapped on table field: "SalesTaxRate"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SalesTaxRateFieldIndex.Rowguid, true); } - set { SetValue((int)SalesTaxRateFieldIndex.Rowguid, value); } - } - - /// The SalesTaxRateId property of the Entity SalesTaxRate

- /// Mapped on table field: "SalesTaxRate"."SalesTaxRateID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 SalesTaxRateId - { - get { return (System.Int32)GetValue((int)SalesTaxRateFieldIndex.SalesTaxRateId, true); } - set { SetValue((int)SalesTaxRateFieldIndex.SalesTaxRateId, value); } - } - - /// The StateProvinceId property of the Entity SalesTaxRate

- /// Mapped on table field: "SalesTaxRate"."StateProvinceID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 StateProvinceId - { - get { return (System.Int32)GetValue((int)SalesTaxRateFieldIndex.StateProvinceId, true); } - set { SetValue((int)SalesTaxRateFieldIndex.StateProvinceId, value); } - } - - /// The TaxRate property of the Entity SalesTaxRate

- /// Mapped on table field: "SalesTaxRate"."TaxRate"
- /// Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal TaxRate - { - get { return (System.Decimal)GetValue((int)SalesTaxRateFieldIndex.TaxRate, true); } - set { SetValue((int)SalesTaxRateFieldIndex.TaxRate, value); } - } - - /// The TaxType property of the Entity SalesTaxRate

- /// Mapped on table field: "SalesTaxRate"."TaxType"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte TaxType - { - get { return (System.Byte)GetValue((int)SalesTaxRateFieldIndex.TaxType, true); } - set { SetValue((int)SalesTaxRateFieldIndex.TaxType, value); } - } - - /// Gets / sets related entity of type 'StateProvinceEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual StateProvinceEntity StateProvince - { - get { return _stateProvince; } - set - { - if(this.IsDeserializing) - { - SetupSyncStateProvince(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesTaxRates", "StateProvince", _stateProvince, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTaxRateEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs deleted file mode 100644 index efa662ef..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs +++ /dev/null @@ -1,839 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesTerritory'.

- [Serializable] - public partial class SalesTerritoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _customers; - private EntityCollection _salesOrderHeaders; - private EntityCollection _salesPeople; - private EntityCollection _salesTerritoryHistories; - private EntityCollection _stateProvinces; - private CountryRegionEntity _countryRegion; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name CountryRegion - public static readonly string CountryRegion = "CountryRegion"; - /// Member name Customers - public static readonly string Customers = "Customers"; - /// Member name SalesOrderHeaders - public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; - /// Member name SalesPeople - public static readonly string SalesPeople = "SalesPeople"; - /// Member name SalesTerritoryHistories - public static readonly string SalesTerritoryHistories = "SalesTerritoryHistories"; - /// Member name StateProvinces - public static readonly string StateProvinces = "StateProvinces"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesTerritoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesTerritoryEntity():base("SalesTerritoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesTerritoryEntity(IEntityFields2 fields):base("SalesTerritoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesTerritoryEntity - public SalesTerritoryEntity(IValidator validator):base("SalesTerritoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesTerritory which data should be fetched into this SalesTerritory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesTerritoryEntity(System.Int32 territoryId):base("SalesTerritoryEntity") - { - InitClassEmpty(null, null); - this.TerritoryId = territoryId; - } - - /// CTor - /// PK value for SalesTerritory which data should be fetched into this SalesTerritory object - /// The custom validator object for this SalesTerritoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesTerritoryEntity(System.Int32 territoryId, IValidator validator):base("SalesTerritoryEntity") - { - InitClassEmpty(validator, null); - this.TerritoryId = territoryId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesTerritoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _customers = (EntityCollection)info.GetValue("_customers", typeof(EntityCollection)); - _salesOrderHeaders = (EntityCollection)info.GetValue("_salesOrderHeaders", typeof(EntityCollection)); - _salesPeople = (EntityCollection)info.GetValue("_salesPeople", typeof(EntityCollection)); - _salesTerritoryHistories = (EntityCollection)info.GetValue("_salesTerritoryHistories", typeof(EntityCollection)); - _stateProvinces = (EntityCollection)info.GetValue("_stateProvinces", typeof(EntityCollection)); - _countryRegion = (CountryRegionEntity)info.GetValue("_countryRegion", typeof(CountryRegionEntity)); - if(_countryRegion!=null) - { - _countryRegion.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesTerritoryFieldIndex)fieldIndex) - { - case SalesTerritoryFieldIndex.CountryRegionCode: - DesetupSyncCountryRegion(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "CountryRegion": - this.CountryRegion = (CountryRegionEntity)entity; - break; - case "Customers": - this.Customers.Add((CustomerEntity)entity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)entity); - break; - case "SalesPeople": - this.SalesPeople.Add((SalesPersonEntity)entity); - break; - case "SalesTerritoryHistories": - this.SalesTerritoryHistories.Add((SalesTerritoryHistoryEntity)entity); - break; - case "StateProvinces": - this.StateProvinces.Add((StateProvinceEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "CountryRegion": - toReturn.Add(Relations.CountryRegionEntityUsingCountryRegionCode); - break; - case "Customers": - toReturn.Add(Relations.CustomerEntityUsingTerritoryId); - break; - case "SalesOrderHeaders": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingTerritoryId); - break; - case "SalesPeople": - toReturn.Add(Relations.SalesPersonEntityUsingTerritoryId); - break; - case "SalesTerritoryHistories": - toReturn.Add(Relations.SalesTerritoryHistoryEntityUsingTerritoryId); - break; - case "StateProvinces": - toReturn.Add(Relations.StateProvinceEntityUsingTerritoryId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "CountryRegion": - SetupSyncCountryRegion(relatedEntity); - break; - case "Customers": - this.Customers.Add((CustomerEntity)relatedEntity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)relatedEntity); - break; - case "SalesPeople": - this.SalesPeople.Add((SalesPersonEntity)relatedEntity); - break; - case "SalesTerritoryHistories": - this.SalesTerritoryHistories.Add((SalesTerritoryHistoryEntity)relatedEntity); - break; - case "StateProvinces": - this.StateProvinces.Add((StateProvinceEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "CountryRegion": - DesetupSyncCountryRegion(false, true); - break; - case "Customers": - this.PerformRelatedEntityRemoval(this.Customers, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesOrderHeaders": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesPeople": - this.PerformRelatedEntityRemoval(this.SalesPeople, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesTerritoryHistories": - this.PerformRelatedEntityRemoval(this.SalesTerritoryHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - case "StateProvinces": - this.PerformRelatedEntityRemoval(this.StateProvinces, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_countryRegion!=null) - { - toReturn.Add(_countryRegion); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.Customers); - toReturn.Add(this.SalesOrderHeaders); - toReturn.Add(this.SalesPeople); - toReturn.Add(this.SalesTerritoryHistories); - toReturn.Add(this.StateProvinces); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_customers", ((_customers!=null) && (_customers.Count>0) && !this.MarkedForDeletion)?_customers:null); - info.AddValue("_salesOrderHeaders", ((_salesOrderHeaders!=null) && (_salesOrderHeaders.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders:null); - info.AddValue("_salesPeople", ((_salesPeople!=null) && (_salesPeople.Count>0) && !this.MarkedForDeletion)?_salesPeople:null); - info.AddValue("_salesTerritoryHistories", ((_salesTerritoryHistories!=null) && (_salesTerritoryHistories.Count>0) && !this.MarkedForDeletion)?_salesTerritoryHistories:null); - info.AddValue("_stateProvinces", ((_stateProvinces!=null) && (_stateProvinces.Count>0) && !this.MarkedForDeletion)?_stateProvinces:null); - info.AddValue("_countryRegion", (!this.MarkedForDeletion?_countryRegion:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesTerritoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Customer' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCustomers() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CustomerFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesPerson' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesPeople() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesPersonFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTerritoryHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritoryHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryHistoryFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'StateProvince' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoStateProvinces() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(StateProvinceFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CountryRegion' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCountryRegion() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CountryRegionFields.CountryRegionCode, null, ComparisonOperator.Equal, this.CountryRegionCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._customers); - collectionsQueue.Enqueue(this._salesOrderHeaders); - collectionsQueue.Enqueue(this._salesPeople); - collectionsQueue.Enqueue(this._salesTerritoryHistories); - collectionsQueue.Enqueue(this._stateProvinces); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._customers = (EntityCollection) collectionsQueue.Dequeue(); - this._salesOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - this._salesPeople = (EntityCollection) collectionsQueue.Dequeue(); - this._salesTerritoryHistories = (EntityCollection) collectionsQueue.Dequeue(); - this._stateProvinces = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._customers != null); - toReturn |=(this._salesOrderHeaders != null); - toReturn |=(this._salesPeople != null); - toReturn |=(this._salesTerritoryHistories != null); - toReturn |=(this._stateProvinces != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryHistoryEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StateProvinceEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("CountryRegion", _countryRegion); - toReturn.Add("Customers", _customers); - toReturn.Add("SalesOrderHeaders", _salesOrderHeaders); - toReturn.Add("SalesPeople", _salesPeople); - toReturn.Add("SalesTerritoryHistories", _salesTerritoryHistories); - toReturn.Add("StateProvinces", _stateProvinces); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CostLastYear", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CostYtd", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CountryRegionCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Group", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesLastYear", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesYtd", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TerritoryId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _countryRegion - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCountryRegion(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _countryRegion, new PropertyChangedEventHandler(OnCountryRegionPropertyChanged), "CountryRegion", "SalesTerritories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTerritoryRelations.CountryRegionEntityUsingCountryRegionCodeStatic, true, new int[] { (int)SalesTerritoryFieldIndex.CountryRegionCode }); - } - - /// setups the sync logic for member _countryRegion - /// Instance to set as the related entity of type entityType - private void SetupSyncCountryRegion(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _countryRegion, new PropertyChangedEventHandler( OnCountryRegionPropertyChanged ), "CountryRegion", "SalesTerritories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTerritoryRelations.CountryRegionEntityUsingCountryRegionCodeStatic, true, new string[] { }, new int[] { (int)SalesTerritoryFieldIndex.CountryRegionCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCountryRegionPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesTerritoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesTerritoryRelations Relations - { - get { return new SalesTerritoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCustomers - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory))), (IEntityRelation)GetRelationsForField("Customers")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, 0, null, null, null, null, "Customers", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesPeople - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesPeople")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, 0, null, null, null, null, "SalesPeople", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritoryHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritoryHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritoryHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity, 0, null, null, null, null, "SalesTerritoryHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathStateProvinces - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(StateProvinceEntityFactory))), (IEntityRelation)GetRelationsForField("StateProvinces")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, 0, null, null, null, null, "StateProvinces", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegion' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCountryRegion - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionEntityFactory))), (IEntityRelation)GetRelationsForField("CountryRegion")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity, 0, null, null, null, null, "CountryRegion", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CostLastYear property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."CostLastYear"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal CostLastYear - { - get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.CostLastYear, true); } - set { SetValue((int)SalesTerritoryFieldIndex.CostLastYear, value); } - } - - /// The CostYtd property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."CostYTD"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal CostYtd - { - get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.CostYtd, true); } - set { SetValue((int)SalesTerritoryFieldIndex.CostYtd, value); } - } - - /// The CountryRegionCode property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."CountryRegionCode"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String CountryRegionCode - { - get { return (System.String)GetValue((int)SalesTerritoryFieldIndex.CountryRegionCode, true); } - set { SetValue((int)SalesTerritoryFieldIndex.CountryRegionCode, value); } - } - - /// The Group property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."Group"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Group - { - get { return (System.String)GetValue((int)SalesTerritoryFieldIndex.Group, true); } - set { SetValue((int)SalesTerritoryFieldIndex.Group, value); } - } - - /// The ModifiedDate property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesTerritoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesTerritoryFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)SalesTerritoryFieldIndex.Name, true); } - set { SetValue((int)SalesTerritoryFieldIndex.Name, value); } - } - - /// The Rowguid property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SalesTerritoryFieldIndex.Rowguid, true); } - set { SetValue((int)SalesTerritoryFieldIndex.Rowguid, value); } - } - - /// The SalesLastYear property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."SalesLastYear"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal SalesLastYear - { - get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.SalesLastYear, true); } - set { SetValue((int)SalesTerritoryFieldIndex.SalesLastYear, value); } - } - - /// The SalesYtd property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."SalesYTD"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal SalesYtd - { - get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.SalesYtd, true); } - set { SetValue((int)SalesTerritoryFieldIndex.SalesYtd, value); } - } - - /// The TerritoryId property of the Entity SalesTerritory

- /// Mapped on table field: "SalesTerritory"."TerritoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 TerritoryId - { - get { return (System.Int32)GetValue((int)SalesTerritoryFieldIndex.TerritoryId, true); } - set { SetValue((int)SalesTerritoryFieldIndex.TerritoryId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'CustomerEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(CustomerEntity))] - public virtual EntityCollection Customers - { - get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _customers); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders - { - get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _salesOrderHeaders); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesPersonEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesPersonEntity))] - public virtual EntityCollection SalesPeople - { - get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _salesPeople); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesTerritoryHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesTerritoryHistoryEntity))] - public virtual EntityCollection SalesTerritoryHistories - { - get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _salesTerritoryHistories); } - } - - /// Gets the EntityCollection with the related entities of type 'StateProvinceEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(StateProvinceEntity))] - public virtual EntityCollection StateProvinces - { - get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _stateProvinces); } - } - - /// Gets / sets related entity of type 'CountryRegionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CountryRegionEntity CountryRegion - { - get { return _countryRegion; } - set - { - if(this.IsDeserializing) - { - SetupSyncCountryRegion(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesTerritories", "CountryRegion", _countryRegion, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs deleted file mode 100644 index 6973a284..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs +++ /dev/null @@ -1,659 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SalesTerritoryHistory'.

- [Serializable] - public partial class SalesTerritoryHistoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private SalesPersonEntity _salesPerson; - private SalesTerritoryEntity _salesTerritory; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SalesPerson - public static readonly string SalesPerson = "SalesPerson"; - /// Member name SalesTerritory - public static readonly string SalesTerritory = "SalesTerritory"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SalesTerritoryHistoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SalesTerritoryHistoryEntity():base("SalesTerritoryHistoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SalesTerritoryHistoryEntity(IEntityFields2 fields):base("SalesTerritoryHistoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SalesTerritoryHistoryEntity - public SalesTerritoryHistoryEntity(IValidator validator):base("SalesTerritoryHistoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object - /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object - /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesTerritoryHistoryEntity(System.Int32 salesPersonId, System.DateTime startDate, System.Int32 territoryId):base("SalesTerritoryHistoryEntity") - { - InitClassEmpty(null, null); - this.SalesPersonId = salesPersonId; - this.StartDate = startDate; - this.TerritoryId = territoryId; - } - - /// CTor - /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object - /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object - /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object - /// The custom validator object for this SalesTerritoryHistoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SalesTerritoryHistoryEntity(System.Int32 salesPersonId, System.DateTime startDate, System.Int32 territoryId, IValidator validator):base("SalesTerritoryHistoryEntity") - { - InitClassEmpty(validator, null); - this.SalesPersonId = salesPersonId; - this.StartDate = startDate; - this.TerritoryId = territoryId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SalesTerritoryHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesPerson = (SalesPersonEntity)info.GetValue("_salesPerson", typeof(SalesPersonEntity)); - if(_salesPerson!=null) - { - _salesPerson.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _salesTerritory = (SalesTerritoryEntity)info.GetValue("_salesTerritory", typeof(SalesTerritoryEntity)); - if(_salesTerritory!=null) - { - _salesTerritory.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SalesTerritoryHistoryFieldIndex)fieldIndex) - { - case SalesTerritoryHistoryFieldIndex.SalesPersonId: - DesetupSyncSalesPerson(true, false); - break; - case SalesTerritoryHistoryFieldIndex.TerritoryId: - DesetupSyncSalesTerritory(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SalesPerson": - this.SalesPerson = (SalesPersonEntity)entity; - break; - case "SalesTerritory": - this.SalesTerritory = (SalesTerritoryEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SalesPerson": - toReturn.Add(Relations.SalesPersonEntityUsingSalesPersonId); - break; - case "SalesTerritory": - toReturn.Add(Relations.SalesTerritoryEntityUsingTerritoryId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SalesPerson": - SetupSyncSalesPerson(relatedEntity); - break; - case "SalesTerritory": - SetupSyncSalesTerritory(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SalesPerson": - DesetupSyncSalesPerson(false, true); - break; - case "SalesTerritory": - DesetupSyncSalesTerritory(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_salesPerson!=null) - { - toReturn.Add(_salesPerson); - } - if(_salesTerritory!=null) - { - toReturn.Add(_salesTerritory); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesPerson", (!this.MarkedForDeletion?_salesPerson:null)); - info.AddValue("_salesTerritory", (!this.MarkedForDeletion?_salesTerritory:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SalesTerritoryHistoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesPersonFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryHistoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SalesPerson", _salesPerson); - toReturn.Add("SalesTerritory", _salesTerritory); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesPersonId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TerritoryId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _salesPerson - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesPerson, new PropertyChangedEventHandler(OnSalesPersonPropertyChanged), "SalesPerson", "SalesTerritoryHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTerritoryHistoryRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new int[] { (int)SalesTerritoryHistoryFieldIndex.SalesPersonId }); - } - - /// setups the sync logic for member _salesPerson - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesPerson, new PropertyChangedEventHandler( OnSalesPersonPropertyChanged ), "SalesPerson", "SalesTerritoryHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTerritoryHistoryRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new string[] { }, new int[] { (int)SalesTerritoryHistoryFieldIndex.SalesPersonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _salesTerritory - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesTerritory(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesTerritory, new PropertyChangedEventHandler(OnSalesTerritoryPropertyChanged), "SalesTerritory", "SalesTerritoryHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTerritoryHistoryRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new int[] { (int)SalesTerritoryHistoryFieldIndex.TerritoryId }); - } - - /// setups the sync logic for member _salesTerritory - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesTerritory(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesTerritory, new PropertyChangedEventHandler( OnSalesTerritoryPropertyChanged ), "SalesTerritory", "SalesTerritoryHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSalesTerritoryHistoryRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new string[] { }, new int[] { (int)SalesTerritoryHistoryFieldIndex.TerritoryId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesTerritoryPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SalesTerritoryHistoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SalesTerritoryHistoryRelations Relations - { - get { return new SalesTerritoryHistoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesPerson")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, 0, null, null, null, null, "SalesPerson", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritory - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritory")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, 0, null, null, null, null, "SalesTerritory", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The EndDate property of the Entity SalesTerritoryHistory

- /// Mapped on table field: "SalesTerritoryHistory"."EndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable EndDate - { - get { return (Nullable)GetValue((int)SalesTerritoryHistoryFieldIndex.EndDate, false); } - set { SetValue((int)SalesTerritoryHistoryFieldIndex.EndDate, value); } - } - - /// The ModifiedDate property of the Entity SalesTerritoryHistory

- /// Mapped on table field: "SalesTerritoryHistory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SalesTerritoryHistoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)SalesTerritoryHistoryFieldIndex.ModifiedDate, value); } - } - - /// The Rowguid property of the Entity SalesTerritoryHistory

- /// Mapped on table field: "SalesTerritoryHistory"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SalesTerritoryHistoryFieldIndex.Rowguid, true); } - set { SetValue((int)SalesTerritoryHistoryFieldIndex.Rowguid, value); } - } - - /// The SalesPersonId property of the Entity SalesTerritoryHistory

- /// Mapped on table field: "SalesTerritoryHistory"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 SalesPersonId - { - get { return (System.Int32)GetValue((int)SalesTerritoryHistoryFieldIndex.SalesPersonId, true); } - set { SetValue((int)SalesTerritoryHistoryFieldIndex.SalesPersonId, value); } - } - - /// The StartDate property of the Entity SalesTerritoryHistory

- /// Mapped on table field: "SalesTerritoryHistory"."StartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.DateTime StartDate - { - get { return (System.DateTime)GetValue((int)SalesTerritoryHistoryFieldIndex.StartDate, true); } - set { SetValue((int)SalesTerritoryHistoryFieldIndex.StartDate, value); } - } - - /// The TerritoryId property of the Entity SalesTerritoryHistory

- /// Mapped on table field: "SalesTerritoryHistory"."TerritoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 TerritoryId - { - get { return (System.Int32)GetValue((int)SalesTerritoryHistoryFieldIndex.TerritoryId, true); } - set { SetValue((int)SalesTerritoryHistoryFieldIndex.TerritoryId, value); } - } - - /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesPersonEntity SalesPerson - { - get { return _salesPerson; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesTerritoryHistories", "SalesPerson", _salesPerson, true); - } - } - } - - /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesTerritoryEntity SalesTerritory - { - get { return _salesTerritory; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesTerritory(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SalesTerritoryHistories", "SalesTerritory", _salesTerritory, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs deleted file mode 100644 index 02bff317..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs +++ /dev/null @@ -1,469 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ScrapReason'.

- [Serializable] - public partial class ScrapReasonEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _workOrders; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name WorkOrders - public static readonly string WorkOrders = "WorkOrders"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ScrapReasonEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ScrapReasonEntity():base("ScrapReasonEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ScrapReasonEntity(IEntityFields2 fields):base("ScrapReasonEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ScrapReasonEntity - public ScrapReasonEntity(IValidator validator):base("ScrapReasonEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ScrapReason which data should be fetched into this ScrapReason object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ScrapReasonEntity(System.Int16 scrapReasonId):base("ScrapReasonEntity") - { - InitClassEmpty(null, null); - this.ScrapReasonId = scrapReasonId; - } - - /// CTor - /// PK value for ScrapReason which data should be fetched into this ScrapReason object - /// The custom validator object for this ScrapReasonEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ScrapReasonEntity(System.Int16 scrapReasonId, IValidator validator):base("ScrapReasonEntity") - { - InitClassEmpty(validator, null); - this.ScrapReasonId = scrapReasonId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ScrapReasonEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _workOrders = (EntityCollection)info.GetValue("_workOrders", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "WorkOrders": - this.WorkOrders.Add((WorkOrderEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "WorkOrders": - toReturn.Add(Relations.WorkOrderEntityUsingScrapReasonId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "WorkOrders": - this.WorkOrders.Add((WorkOrderEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "WorkOrders": - this.PerformRelatedEntityRemoval(this.WorkOrders, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.WorkOrders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_workOrders", ((_workOrders!=null) && (_workOrders.Count>0) && !this.MarkedForDeletion)?_workOrders:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ScrapReasonRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrder' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoWorkOrders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(WorkOrderFields.ScrapReasonId, null, ComparisonOperator.Equal, this.ScrapReasonId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ScrapReasonEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._workOrders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._workOrders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._workOrders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("WorkOrders", _workOrders); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ScrapReasonId", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ScrapReasonEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ScrapReasonRelations Relations - { - get { return new ScrapReasonRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrder' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathWorkOrders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderEntityFactory))), (IEntityRelation)GetRelationsForField("WorkOrders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ScrapReasonEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity, 0, null, null, null, null, "WorkOrders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity ScrapReason

- /// Mapped on table field: "ScrapReason"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ScrapReasonFieldIndex.ModifiedDate, true); } - set { SetValue((int)ScrapReasonFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity ScrapReason

- /// Mapped on table field: "ScrapReason"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ScrapReasonFieldIndex.Name, true); } - set { SetValue((int)ScrapReasonFieldIndex.Name, value); } - } - - /// The ScrapReasonId property of the Entity ScrapReason

- /// Mapped on table field: "ScrapReason"."ScrapReasonID"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int16 ScrapReasonId - { - get { return (System.Int16)GetValue((int)ScrapReasonFieldIndex.ScrapReasonId, true); } - set { SetValue((int)ScrapReasonFieldIndex.ScrapReasonId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'WorkOrderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(WorkOrderEntity))] - public virtual EntityCollection WorkOrders - { - get { return GetOrCreateEntityCollection("ScrapReason", true, false, ref _workOrders); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ScrapReasonEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ShiftEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ShiftEntity.cs deleted file mode 100644 index 9bd64316..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ShiftEntity.cs +++ /dev/null @@ -1,493 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Shift'.

- [Serializable] - public partial class ShiftEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _employeeDepartmentHistories; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name EmployeeDepartmentHistories - public static readonly string EmployeeDepartmentHistories = "EmployeeDepartmentHistories"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ShiftEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ShiftEntity():base("ShiftEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ShiftEntity(IEntityFields2 fields):base("ShiftEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ShiftEntity - public ShiftEntity(IValidator validator):base("ShiftEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Shift which data should be fetched into this Shift object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ShiftEntity(System.Byte shiftId):base("ShiftEntity") - { - InitClassEmpty(null, null); - this.ShiftId = shiftId; - } - - /// CTor - /// PK value for Shift which data should be fetched into this Shift object - /// The custom validator object for this ShiftEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ShiftEntity(System.Byte shiftId, IValidator validator):base("ShiftEntity") - { - InitClassEmpty(validator, null); - this.ShiftId = shiftId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ShiftEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _employeeDepartmentHistories = (EntityCollection)info.GetValue("_employeeDepartmentHistories", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "EmployeeDepartmentHistories": - this.EmployeeDepartmentHistories.Add((EmployeeDepartmentHistoryEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "EmployeeDepartmentHistories": - toReturn.Add(Relations.EmployeeDepartmentHistoryEntityUsingShiftId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "EmployeeDepartmentHistories": - this.EmployeeDepartmentHistories.Add((EmployeeDepartmentHistoryEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "EmployeeDepartmentHistories": - this.PerformRelatedEntityRemoval(this.EmployeeDepartmentHistories, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.EmployeeDepartmentHistories); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_employeeDepartmentHistories", ((_employeeDepartmentHistories!=null) && (_employeeDepartmentHistories.Count>0) && !this.MarkedForDeletion)?_employeeDepartmentHistories:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ShiftRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeeDepartmentHistory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoEmployeeDepartmentHistories() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(EmployeeDepartmentHistoryFields.ShiftId, null, ComparisonOperator.Equal, this.ShiftId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ShiftEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._employeeDepartmentHistories); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._employeeDepartmentHistories = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._employeeDepartmentHistories != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeDepartmentHistoryEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("EmployeeDepartmentHistories", _employeeDepartmentHistories); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndTime", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShiftId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartTime", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ShiftEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ShiftRelations Relations - { - get { return new ShiftRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeeDepartmentHistory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathEmployeeDepartmentHistories - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(EmployeeDepartmentHistoryEntityFactory))), (IEntityRelation)GetRelationsForField("EmployeeDepartmentHistories")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShiftEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity, 0, null, null, null, null, "EmployeeDepartmentHistories", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The EndTime property of the Entity Shift

- /// Mapped on table field: "Shift"."EndTime"
- /// Table field type characteristics (type, precision, scale, length): Time, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.TimeSpan EndTime - { - get { return (System.TimeSpan)GetValue((int)ShiftFieldIndex.EndTime, true); } - set { SetValue((int)ShiftFieldIndex.EndTime, value); } - } - - /// The ModifiedDate property of the Entity Shift

- /// Mapped on table field: "Shift"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ShiftFieldIndex.ModifiedDate, true); } - set { SetValue((int)ShiftFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Shift

- /// Mapped on table field: "Shift"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ShiftFieldIndex.Name, true); } - set { SetValue((int)ShiftFieldIndex.Name, value); } - } - - /// The ShiftId property of the Entity Shift

- /// Mapped on table field: "Shift"."ShiftID"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Byte ShiftId - { - get { return (System.Byte)GetValue((int)ShiftFieldIndex.ShiftId, true); } - set { SetValue((int)ShiftFieldIndex.ShiftId, value); } - } - - /// The StartTime property of the Entity Shift

- /// Mapped on table field: "Shift"."StartTime"
- /// Table field type characteristics (type, precision, scale, length): Time, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.TimeSpan StartTime - { - get { return (System.TimeSpan)GetValue((int)ShiftFieldIndex.StartTime, true); } - set { SetValue((int)ShiftFieldIndex.StartTime, value); } - } - - /// Gets the EntityCollection with the related entities of type 'EmployeeDepartmentHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(EmployeeDepartmentHistoryEntity))] - public virtual EntityCollection EmployeeDepartmentHistories - { - get { return GetOrCreateEntityCollection("Shift", true, false, ref _employeeDepartmentHistories); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShiftEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs deleted file mode 100644 index 447d9d27..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs +++ /dev/null @@ -1,551 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ShipMethod'.

- [Serializable] - public partial class ShipMethodEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _purchaseOrderHeaders; - private EntityCollection _salesOrderHeaders; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name PurchaseOrderHeaders - public static readonly string PurchaseOrderHeaders = "PurchaseOrderHeaders"; - /// Member name SalesOrderHeaders - public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ShipMethodEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ShipMethodEntity():base("ShipMethodEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ShipMethodEntity(IEntityFields2 fields):base("ShipMethodEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ShipMethodEntity - public ShipMethodEntity(IValidator validator):base("ShipMethodEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ShipMethod which data should be fetched into this ShipMethod object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ShipMethodEntity(System.Int32 shipMethodId):base("ShipMethodEntity") - { - InitClassEmpty(null, null); - this.ShipMethodId = shipMethodId; - } - - /// CTor - /// PK value for ShipMethod which data should be fetched into this ShipMethod object - /// The custom validator object for this ShipMethodEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ShipMethodEntity(System.Int32 shipMethodId, IValidator validator):base("ShipMethodEntity") - { - InitClassEmpty(validator, null); - this.ShipMethodId = shipMethodId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ShipMethodEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _purchaseOrderHeaders = (EntityCollection)info.GetValue("_purchaseOrderHeaders", typeof(EntityCollection)); - _salesOrderHeaders = (EntityCollection)info.GetValue("_salesOrderHeaders", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "PurchaseOrderHeaders": - this.PurchaseOrderHeaders.Add((PurchaseOrderHeaderEntity)entity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "PurchaseOrderHeaders": - toReturn.Add(Relations.PurchaseOrderHeaderEntityUsingShipMethodId); - break; - case "SalesOrderHeaders": - toReturn.Add(Relations.SalesOrderHeaderEntityUsingShipMethodId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "PurchaseOrderHeaders": - this.PurchaseOrderHeaders.Add((PurchaseOrderHeaderEntity)relatedEntity); - break; - case "SalesOrderHeaders": - this.SalesOrderHeaders.Add((SalesOrderHeaderEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "PurchaseOrderHeaders": - this.PerformRelatedEntityRemoval(this.PurchaseOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesOrderHeaders": - this.PerformRelatedEntityRemoval(this.SalesOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.PurchaseOrderHeaders); - toReturn.Add(this.SalesOrderHeaders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_purchaseOrderHeaders", ((_purchaseOrderHeaders!=null) && (_purchaseOrderHeaders.Count>0) && !this.MarkedForDeletion)?_purchaseOrderHeaders:null); - info.AddValue("_salesOrderHeaders", ((_salesOrderHeaders!=null) && (_salesOrderHeaders.Count>0) && !this.MarkedForDeletion)?_salesOrderHeaders:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ShipMethodRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PurchaseOrderHeaderFields.ShipMethodId, null, ComparisonOperator.Equal, this.ShipMethodId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderHeaderFields.ShipMethodId, null, ComparisonOperator.Equal, this.ShipMethodId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ShipMethodEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._purchaseOrderHeaders); - collectionsQueue.Enqueue(this._salesOrderHeaders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._purchaseOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - this._salesOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._purchaseOrderHeaders != null); - toReturn |=(this._salesOrderHeaders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("PurchaseOrderHeaders", _purchaseOrderHeaders); - toReturn.Add("SalesOrderHeaders", _salesOrderHeaders); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipBase", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipMethodId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShipRate", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ShipMethodEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ShipMethodRelations Relations - { - get { return new ShipMethodRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("PurchaseOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, 0, null, null, null, null, "PurchaseOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, 0, null, null, null, null, "SalesOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity ShipMethod

- /// Mapped on table field: "ShipMethod"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ShipMethodFieldIndex.ModifiedDate, true); } - set { SetValue((int)ShipMethodFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity ShipMethod

- /// Mapped on table field: "ShipMethod"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)ShipMethodFieldIndex.Name, true); } - set { SetValue((int)ShipMethodFieldIndex.Name, value); } - } - - /// The Rowguid property of the Entity ShipMethod

- /// Mapped on table field: "ShipMethod"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)ShipMethodFieldIndex.Rowguid, true); } - set { SetValue((int)ShipMethodFieldIndex.Rowguid, value); } - } - - /// The ShipBase property of the Entity ShipMethod

- /// Mapped on table field: "ShipMethod"."ShipBase"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal ShipBase - { - get { return (System.Decimal)GetValue((int)ShipMethodFieldIndex.ShipBase, true); } - set { SetValue((int)ShipMethodFieldIndex.ShipBase, value); } - } - - /// The ShipMethodId property of the Entity ShipMethod

- /// Mapped on table field: "ShipMethod"."ShipMethodID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ShipMethodId - { - get { return (System.Int32)GetValue((int)ShipMethodFieldIndex.ShipMethodId, true); } - set { SetValue((int)ShipMethodFieldIndex.ShipMethodId, value); } - } - - /// The ShipRate property of the Entity ShipMethod

- /// Mapped on table field: "ShipMethod"."ShipRate"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal ShipRate - { - get { return (System.Decimal)GetValue((int)ShipMethodFieldIndex.ShipRate, true); } - set { SetValue((int)ShipMethodFieldIndex.ShipRate, value); } - } - - /// Gets the EntityCollection with the related entities of type 'PurchaseOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(PurchaseOrderHeaderEntity))] - public virtual EntityCollection PurchaseOrderHeaders - { - get { return GetOrCreateEntityCollection("ShipMethod", true, false, ref _purchaseOrderHeaders); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] - public virtual EntityCollection SalesOrderHeaders - { - get { return GetOrCreateEntityCollection("ShipMethod", true, false, ref _salesOrderHeaders); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs deleted file mode 100644 index a2b8789c..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs +++ /dev/null @@ -1,561 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'ShoppingCartItem'.

- [Serializable] - public partial class ShoppingCartItemEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static ShoppingCartItemEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public ShoppingCartItemEntity():base("ShoppingCartItemEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public ShoppingCartItemEntity(IEntityFields2 fields):base("ShoppingCartItemEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this ShoppingCartItemEntity - public ShoppingCartItemEntity(IValidator validator):base("ShoppingCartItemEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for ShoppingCartItem which data should be fetched into this ShoppingCartItem object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ShoppingCartItemEntity(System.Int32 shoppingCartItemId):base("ShoppingCartItemEntity") - { - InitClassEmpty(null, null); - this.ShoppingCartItemId = shoppingCartItemId; - } - - /// CTor - /// PK value for ShoppingCartItem which data should be fetched into this ShoppingCartItem object - /// The custom validator object for this ShoppingCartItemEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public ShoppingCartItemEntity(System.Int32 shoppingCartItemId, IValidator validator):base("ShoppingCartItemEntity") - { - InitClassEmpty(validator, null); - this.ShoppingCartItemId = shoppingCartItemId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected ShoppingCartItemEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((ShoppingCartItemFieldIndex)fieldIndex) - { - case ShoppingCartItemFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new ShoppingCartItemRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(ShoppingCartItemEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DateCreated", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Quantity", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShoppingCartId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ShoppingCartItemId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "ShoppingCartItems", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticShoppingCartItemRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)ShoppingCartItemFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "ShoppingCartItems", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticShoppingCartItemRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)ShoppingCartItemFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this ShoppingCartItemEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static ShoppingCartItemRelations Relations - { - get { return new ShoppingCartItemRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShoppingCartItemEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The DateCreated property of the Entity ShoppingCartItem

- /// Mapped on table field: "ShoppingCartItem"."DateCreated"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime DateCreated - { - get { return (System.DateTime)GetValue((int)ShoppingCartItemFieldIndex.DateCreated, true); } - set { SetValue((int)ShoppingCartItemFieldIndex.DateCreated, value); } - } - - /// The ModifiedDate property of the Entity ShoppingCartItem

- /// Mapped on table field: "ShoppingCartItem"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)ShoppingCartItemFieldIndex.ModifiedDate, true); } - set { SetValue((int)ShoppingCartItemFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity ShoppingCartItem

- /// Mapped on table field: "ShoppingCartItem"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)ShoppingCartItemFieldIndex.ProductId, true); } - set { SetValue((int)ShoppingCartItemFieldIndex.ProductId, value); } - } - - /// The Quantity property of the Entity ShoppingCartItem

- /// Mapped on table field: "ShoppingCartItem"."Quantity"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 Quantity - { - get { return (System.Int32)GetValue((int)ShoppingCartItemFieldIndex.Quantity, true); } - set { SetValue((int)ShoppingCartItemFieldIndex.Quantity, value); } - } - - /// The ShoppingCartId property of the Entity ShoppingCartItem

- /// Mapped on table field: "ShoppingCartItem"."ShoppingCartID"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String ShoppingCartId - { - get { return (System.String)GetValue((int)ShoppingCartItemFieldIndex.ShoppingCartId, true); } - set { SetValue((int)ShoppingCartItemFieldIndex.ShoppingCartId, value); } - } - - /// The ShoppingCartItemId property of the Entity ShoppingCartItem

- /// Mapped on table field: "ShoppingCartItem"."ShoppingCartItemID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 ShoppingCartItemId - { - get { return (System.Int32)GetValue((int)ShoppingCartItemFieldIndex.ShoppingCartItemId, true); } - set { SetValue((int)ShoppingCartItemFieldIndex.ShoppingCartItemId, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "ShoppingCartItems", "Product", _product, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.ShoppingCartItemEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs deleted file mode 100644 index adcc3e89..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs +++ /dev/null @@ -1,565 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SpecialOffer'.

- [Serializable] - public partial class SpecialOfferEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _specialOfferProducts; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SpecialOfferProducts - public static readonly string SpecialOfferProducts = "SpecialOfferProducts"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SpecialOfferEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SpecialOfferEntity():base("SpecialOfferEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SpecialOfferEntity(IEntityFields2 fields):base("SpecialOfferEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SpecialOfferEntity - public SpecialOfferEntity(IValidator validator):base("SpecialOfferEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SpecialOffer which data should be fetched into this SpecialOffer object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SpecialOfferEntity(System.Int32 specialOfferId):base("SpecialOfferEntity") - { - InitClassEmpty(null, null); - this.SpecialOfferId = specialOfferId; - } - - /// CTor - /// PK value for SpecialOffer which data should be fetched into this SpecialOffer object - /// The custom validator object for this SpecialOfferEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SpecialOfferEntity(System.Int32 specialOfferId, IValidator validator):base("SpecialOfferEntity") - { - InitClassEmpty(validator, null); - this.SpecialOfferId = specialOfferId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SpecialOfferEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _specialOfferProducts = (EntityCollection)info.GetValue("_specialOfferProducts", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SpecialOfferProducts": - this.SpecialOfferProducts.Add((SpecialOfferProductEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SpecialOfferProducts": - toReturn.Add(Relations.SpecialOfferProductEntityUsingSpecialOfferId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SpecialOfferProducts": - this.SpecialOfferProducts.Add((SpecialOfferProductEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SpecialOfferProducts": - this.PerformRelatedEntityRemoval(this.SpecialOfferProducts, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.SpecialOfferProducts); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_specialOfferProducts", ((_specialOfferProducts!=null) && (_specialOfferProducts.Count>0) && !this.MarkedForDeletion)?_specialOfferProducts:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SpecialOfferRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SpecialOfferProduct' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSpecialOfferProducts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SpecialOfferProductFields.SpecialOfferId, null, ComparisonOperator.Equal, this.SpecialOfferId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._specialOfferProducts); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._specialOfferProducts = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._specialOfferProducts != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferProductEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SpecialOfferProducts", _specialOfferProducts); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Category", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Description", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DiscountPct", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("MaxQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("MinQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SpecialOfferId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Type", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SpecialOfferEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SpecialOfferRelations Relations - { - get { return new SpecialOfferRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOfferProduct' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSpecialOfferProducts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferProductEntityFactory))), (IEntityRelation)GetRelationsForField("SpecialOfferProducts")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity, 0, null, null, null, null, "SpecialOfferProducts", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The Category property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."Category"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Category - { - get { return (System.String)GetValue((int)SpecialOfferFieldIndex.Category, true); } - set { SetValue((int)SpecialOfferFieldIndex.Category, value); } - } - - /// The Description property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."Description"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 255
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Description - { - get { return (System.String)GetValue((int)SpecialOfferFieldIndex.Description, true); } - set { SetValue((int)SpecialOfferFieldIndex.Description, value); } - } - - /// The DiscountPct property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."DiscountPct"
- /// Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal DiscountPct - { - get { return (System.Decimal)GetValue((int)SpecialOfferFieldIndex.DiscountPct, true); } - set { SetValue((int)SpecialOfferFieldIndex.DiscountPct, value); } - } - - /// The EndDate property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."EndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime EndDate - { - get { return (System.DateTime)GetValue((int)SpecialOfferFieldIndex.EndDate, true); } - set { SetValue((int)SpecialOfferFieldIndex.EndDate, value); } - } - - /// The MaxQty property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."MaxQty"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable MaxQty - { - get { return (Nullable)GetValue((int)SpecialOfferFieldIndex.MaxQty, false); } - set { SetValue((int)SpecialOfferFieldIndex.MaxQty, value); } - } - - /// The MinQty property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."MinQty"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 MinQty - { - get { return (System.Int32)GetValue((int)SpecialOfferFieldIndex.MinQty, true); } - set { SetValue((int)SpecialOfferFieldIndex.MinQty, value); } - } - - /// The ModifiedDate property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SpecialOfferFieldIndex.ModifiedDate, true); } - set { SetValue((int)SpecialOfferFieldIndex.ModifiedDate, value); } - } - - /// The Rowguid property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SpecialOfferFieldIndex.Rowguid, true); } - set { SetValue((int)SpecialOfferFieldIndex.Rowguid, value); } - } - - /// The SpecialOfferId property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."SpecialOfferID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 SpecialOfferId - { - get { return (System.Int32)GetValue((int)SpecialOfferFieldIndex.SpecialOfferId, true); } - set { SetValue((int)SpecialOfferFieldIndex.SpecialOfferId, value); } - } - - /// The StartDate property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."StartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime StartDate - { - get { return (System.DateTime)GetValue((int)SpecialOfferFieldIndex.StartDate, true); } - set { SetValue((int)SpecialOfferFieldIndex.StartDate, value); } - } - - /// The Type property of the Entity SpecialOffer

- /// Mapped on table field: "SpecialOffer"."Type"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Type - { - get { return (System.String)GetValue((int)SpecialOfferFieldIndex.Type, true); } - set { SetValue((int)SpecialOfferFieldIndex.Type, value); } - } - - /// Gets the EntityCollection with the related entities of type 'SpecialOfferProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SpecialOfferProductEntity))] - public virtual EntityCollection SpecialOfferProducts - { - get { return GetOrCreateEntityCollection("SpecialOffer", true, false, ref _specialOfferProducts); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs deleted file mode 100644 index 9b05a1ca..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs +++ /dev/null @@ -1,678 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'SpecialOfferProduct'.

- [Serializable] - public partial class SpecialOfferProductEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _salesOrderDetails; - private ProductEntity _product; - private SpecialOfferEntity _specialOffer; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - /// Member name SpecialOffer - public static readonly string SpecialOffer = "SpecialOffer"; - /// Member name SalesOrderDetails - public static readonly string SalesOrderDetails = "SalesOrderDetails"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static SpecialOfferProductEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public SpecialOfferProductEntity():base("SpecialOfferProductEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public SpecialOfferProductEntity(IEntityFields2 fields):base("SpecialOfferProductEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this SpecialOfferProductEntity - public SpecialOfferProductEntity(IValidator validator):base("SpecialOfferProductEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object - /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SpecialOfferProductEntity(System.Int32 productId, System.Int32 specialOfferId):base("SpecialOfferProductEntity") - { - InitClassEmpty(null, null); - this.ProductId = productId; - this.SpecialOfferId = specialOfferId; - } - - /// CTor - /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object - /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object - /// The custom validator object for this SpecialOfferProductEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public SpecialOfferProductEntity(System.Int32 productId, System.Int32 specialOfferId, IValidator validator):base("SpecialOfferProductEntity") - { - InitClassEmpty(validator, null); - this.ProductId = productId; - this.SpecialOfferId = specialOfferId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected SpecialOfferProductEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _salesOrderDetails = (EntityCollection)info.GetValue("_salesOrderDetails", typeof(EntityCollection)); - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _specialOffer = (SpecialOfferEntity)info.GetValue("_specialOffer", typeof(SpecialOfferEntity)); - if(_specialOffer!=null) - { - _specialOffer.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((SpecialOfferProductFieldIndex)fieldIndex) - { - case SpecialOfferProductFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - case SpecialOfferProductFieldIndex.SpecialOfferId: - DesetupSyncSpecialOffer(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - case "SpecialOffer": - this.SpecialOffer = (SpecialOfferEntity)entity; - break; - case "SalesOrderDetails": - this.SalesOrderDetails.Add((SalesOrderDetailEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - case "SpecialOffer": - toReturn.Add(Relations.SpecialOfferEntityUsingSpecialOfferId); - break; - case "SalesOrderDetails": - toReturn.Add(Relations.SalesOrderDetailEntityUsingProductIdSpecialOfferId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - case "SpecialOffer": - SetupSyncSpecialOffer(relatedEntity); - break; - case "SalesOrderDetails": - this.SalesOrderDetails.Add((SalesOrderDetailEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - case "SpecialOffer": - DesetupSyncSpecialOffer(false, true); - break; - case "SalesOrderDetails": - this.PerformRelatedEntityRemoval(this.SalesOrderDetails, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - if(_specialOffer!=null) - { - toReturn.Add(_specialOffer); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderDetails); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_salesOrderDetails", ((_salesOrderDetails!=null) && (_salesOrderDetails.Count>0) && !this.MarkedForDeletion)?_salesOrderDetails:null); - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - info.AddValue("_specialOffer", (!this.MarkedForDeletion?_specialOffer:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new SpecialOfferProductRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderDetail' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesOrderDetails() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderDetailFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesOrderDetailFields.SpecialOfferId, null, ComparisonOperator.Equal, this.SpecialOfferId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SpecialOffer' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSpecialOffer() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SpecialOfferFields.SpecialOfferId, null, ComparisonOperator.Equal, this.SpecialOfferId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferProductEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._salesOrderDetails); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._salesOrderDetails = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._salesOrderDetails != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderDetailEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - toReturn.Add("SpecialOffer", _specialOffer); - toReturn.Add("SalesOrderDetails", _salesOrderDetails); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SpecialOfferId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "SpecialOfferProducts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSpecialOfferProductRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)SpecialOfferProductFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "SpecialOfferProducts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSpecialOfferProductRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)SpecialOfferProductFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _specialOffer - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSpecialOffer(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _specialOffer, new PropertyChangedEventHandler(OnSpecialOfferPropertyChanged), "SpecialOffer", "SpecialOfferProducts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSpecialOfferProductRelations.SpecialOfferEntityUsingSpecialOfferIdStatic, true, new int[] { (int)SpecialOfferProductFieldIndex.SpecialOfferId }); - } - - /// setups the sync logic for member _specialOffer - /// Instance to set as the related entity of type entityType - private void SetupSyncSpecialOffer(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _specialOffer, new PropertyChangedEventHandler( OnSpecialOfferPropertyChanged ), "SpecialOffer", "SpecialOfferProducts", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticSpecialOfferProductRelations.SpecialOfferEntityUsingSpecialOfferIdStatic, true, new string[] { }, new int[] { (int)SpecialOfferProductFieldIndex.SpecialOfferId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSpecialOfferPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this SpecialOfferProductEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static SpecialOfferProductRelations Relations - { - get { return new SpecialOfferProductRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderDetail' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesOrderDetails - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesOrderDetailEntityFactory))), (IEntityRelation)GetRelationsForField("SalesOrderDetails")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity, 0, null, null, null, null, "SalesOrderDetails", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOffer' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSpecialOffer - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SpecialOfferEntityFactory))), (IEntityRelation)GetRelationsForField("SpecialOffer")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferEntity, 0, null, null, null, null, "SpecialOffer", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity SpecialOfferProduct

- /// Mapped on table field: "SpecialOfferProduct"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)SpecialOfferProductFieldIndex.ModifiedDate, true); } - set { SetValue((int)SpecialOfferProductFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity SpecialOfferProduct

- /// Mapped on table field: "SpecialOfferProduct"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)SpecialOfferProductFieldIndex.ProductId, true); } - set { SetValue((int)SpecialOfferProductFieldIndex.ProductId, value); } - } - - /// The Rowguid property of the Entity SpecialOfferProduct

- /// Mapped on table field: "SpecialOfferProduct"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)SpecialOfferProductFieldIndex.Rowguid, true); } - set { SetValue((int)SpecialOfferProductFieldIndex.Rowguid, value); } - } - - /// The SpecialOfferId property of the Entity SpecialOfferProduct

- /// Mapped on table field: "SpecialOfferProduct"."SpecialOfferID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 SpecialOfferId - { - get { return (System.Int32)GetValue((int)SpecialOfferProductFieldIndex.SpecialOfferId, true); } - set { SetValue((int)SpecialOfferProductFieldIndex.SpecialOfferId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesOrderDetailEntity))] - public virtual EntityCollection SalesOrderDetails - { - get { return GetOrCreateEntityCollection("SpecialOfferProduct", true, false, ref _salesOrderDetails); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SpecialOfferProducts", "Product", _product, true); - } - } - } - - /// Gets / sets related entity of type 'SpecialOfferEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SpecialOfferEntity SpecialOffer - { - get { return _specialOffer; } - set - { - if(this.IsDeserializing) - { - SetupSyncSpecialOffer(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "SpecialOfferProducts", "SpecialOffer", _specialOffer, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs deleted file mode 100644 index 2354078d..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs +++ /dev/null @@ -1,767 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'StateProvince'.

- [Serializable] - public partial class StateProvinceEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _addresses; - private EntityCollection _salesTaxRates; - private CountryRegionEntity _countryRegion; - private SalesTerritoryEntity _salesTerritory; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name CountryRegion - public static readonly string CountryRegion = "CountryRegion"; - /// Member name SalesTerritory - public static readonly string SalesTerritory = "SalesTerritory"; - /// Member name Addresses - public static readonly string Addresses = "Addresses"; - /// Member name SalesTaxRates - public static readonly string SalesTaxRates = "SalesTaxRates"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static StateProvinceEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public StateProvinceEntity():base("StateProvinceEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public StateProvinceEntity(IEntityFields2 fields):base("StateProvinceEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this StateProvinceEntity - public StateProvinceEntity(IValidator validator):base("StateProvinceEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for StateProvince which data should be fetched into this StateProvince object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public StateProvinceEntity(System.Int32 stateProvinceId):base("StateProvinceEntity") - { - InitClassEmpty(null, null); - this.StateProvinceId = stateProvinceId; - } - - /// CTor - /// PK value for StateProvince which data should be fetched into this StateProvince object - /// The custom validator object for this StateProvinceEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public StateProvinceEntity(System.Int32 stateProvinceId, IValidator validator):base("StateProvinceEntity") - { - InitClassEmpty(validator, null); - this.StateProvinceId = stateProvinceId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected StateProvinceEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _addresses = (EntityCollection)info.GetValue("_addresses", typeof(EntityCollection)); - _salesTaxRates = (EntityCollection)info.GetValue("_salesTaxRates", typeof(EntityCollection)); - _countryRegion = (CountryRegionEntity)info.GetValue("_countryRegion", typeof(CountryRegionEntity)); - if(_countryRegion!=null) - { - _countryRegion.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _salesTerritory = (SalesTerritoryEntity)info.GetValue("_salesTerritory", typeof(SalesTerritoryEntity)); - if(_salesTerritory!=null) - { - _salesTerritory.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((StateProvinceFieldIndex)fieldIndex) - { - case StateProvinceFieldIndex.CountryRegionCode: - DesetupSyncCountryRegion(true, false); - break; - case StateProvinceFieldIndex.TerritoryId: - DesetupSyncSalesTerritory(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "CountryRegion": - this.CountryRegion = (CountryRegionEntity)entity; - break; - case "SalesTerritory": - this.SalesTerritory = (SalesTerritoryEntity)entity; - break; - case "Addresses": - this.Addresses.Add((AddressEntity)entity); - break; - case "SalesTaxRates": - this.SalesTaxRates.Add((SalesTaxRateEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "CountryRegion": - toReturn.Add(Relations.CountryRegionEntityUsingCountryRegionCode); - break; - case "SalesTerritory": - toReturn.Add(Relations.SalesTerritoryEntityUsingTerritoryId); - break; - case "Addresses": - toReturn.Add(Relations.AddressEntityUsingStateProvinceId); - break; - case "SalesTaxRates": - toReturn.Add(Relations.SalesTaxRateEntityUsingStateProvinceId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "CountryRegion": - SetupSyncCountryRegion(relatedEntity); - break; - case "SalesTerritory": - SetupSyncSalesTerritory(relatedEntity); - break; - case "Addresses": - this.Addresses.Add((AddressEntity)relatedEntity); - break; - case "SalesTaxRates": - this.SalesTaxRates.Add((SalesTaxRateEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "CountryRegion": - DesetupSyncCountryRegion(false, true); - break; - case "SalesTerritory": - DesetupSyncSalesTerritory(false, true); - break; - case "Addresses": - this.PerformRelatedEntityRemoval(this.Addresses, relatedEntity, signalRelatedEntityManyToOne); - break; - case "SalesTaxRates": - this.PerformRelatedEntityRemoval(this.SalesTaxRates, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_countryRegion!=null) - { - toReturn.Add(_countryRegion); - } - if(_salesTerritory!=null) - { - toReturn.Add(_salesTerritory); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.Addresses); - toReturn.Add(this.SalesTaxRates); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_addresses", ((_addresses!=null) && (_addresses.Count>0) && !this.MarkedForDeletion)?_addresses:null); - info.AddValue("_salesTaxRates", ((_salesTaxRates!=null) && (_salesTaxRates.Count>0) && !this.MarkedForDeletion)?_salesTaxRates:null); - info.AddValue("_countryRegion", (!this.MarkedForDeletion?_countryRegion:null)); - info.AddValue("_salesTerritory", (!this.MarkedForDeletion?_salesTerritory:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new StateProvinceRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Address' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoAddresses() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(AddressFields.StateProvinceId, null, ComparisonOperator.Equal, this.StateProvinceId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTaxRate' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTaxRates() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTaxRateFields.StateProvinceId, null, ComparisonOperator.Equal, this.StateProvinceId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CountryRegion' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCountryRegion() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CountryRegionFields.CountryRegionCode, null, ComparisonOperator.Equal, this.CountryRegionCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesTerritoryFields.TerritoryId, null, ComparisonOperator.Equal, this.TerritoryId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(StateProvinceEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._addresses); - collectionsQueue.Enqueue(this._salesTaxRates); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._addresses = (EntityCollection) collectionsQueue.Dequeue(); - this._salesTaxRates = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._addresses != null); - toReturn |=(this._salesTaxRates != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(AddressEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTaxRateEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("CountryRegion", _countryRegion); - toReturn.Add("SalesTerritory", _salesTerritory); - toReturn.Add("Addresses", _addresses); - toReturn.Add("SalesTaxRates", _salesTaxRates); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CountryRegionCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("IsOnlyStateProvinceFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StateProvinceCode", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StateProvinceId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TerritoryId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _countryRegion - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncCountryRegion(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _countryRegion, new PropertyChangedEventHandler(OnCountryRegionPropertyChanged), "CountryRegion", "StateProvinces", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStateProvinceRelations.CountryRegionEntityUsingCountryRegionCodeStatic, true, new int[] { (int)StateProvinceFieldIndex.CountryRegionCode }); - } - - /// setups the sync logic for member _countryRegion - /// Instance to set as the related entity of type entityType - private void SetupSyncCountryRegion(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _countryRegion, new PropertyChangedEventHandler( OnCountryRegionPropertyChanged ), "CountryRegion", "StateProvinces", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStateProvinceRelations.CountryRegionEntityUsingCountryRegionCodeStatic, true, new string[] { }, new int[] { (int)StateProvinceFieldIndex.CountryRegionCode }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnCountryRegionPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _salesTerritory - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesTerritory(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesTerritory, new PropertyChangedEventHandler(OnSalesTerritoryPropertyChanged), "SalesTerritory", "StateProvinces", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStateProvinceRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new int[] { (int)StateProvinceFieldIndex.TerritoryId }); - } - - /// setups the sync logic for member _salesTerritory - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesTerritory(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesTerritory, new PropertyChangedEventHandler( OnSalesTerritoryPropertyChanged ), "SalesTerritory", "StateProvinces", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStateProvinceRelations.SalesTerritoryEntityUsingTerritoryIdStatic, true, new string[] { }, new int[] { (int)StateProvinceFieldIndex.TerritoryId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesTerritoryPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this StateProvinceEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static StateProvinceRelations Relations - { - get { return new StateProvinceRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathAddresses - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(AddressEntityFactory))), (IEntityRelation)GetRelationsForField("Addresses")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, 0, null, null, null, null, "Addresses", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTaxRate' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTaxRates - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTaxRateEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTaxRates")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTaxRateEntity, 0, null, null, null, null, "SalesTaxRates", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegion' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCountryRegion - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CountryRegionEntityFactory))), (IEntityRelation)GetRelationsForField("CountryRegion")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity, 0, null, null, null, null, "CountryRegion", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesTerritory - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesTerritoryEntityFactory))), (IEntityRelation)GetRelationsForField("SalesTerritory")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, 0, null, null, null, null, "SalesTerritory", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CountryRegionCode property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."CountryRegionCode"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String CountryRegionCode - { - get { return (System.String)GetValue((int)StateProvinceFieldIndex.CountryRegionCode, true); } - set { SetValue((int)StateProvinceFieldIndex.CountryRegionCode, value); } - } - - /// The IsOnlyStateProvinceFlag property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."IsOnlyStateProvinceFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean IsOnlyStateProvinceFlag - { - get { return (System.Boolean)GetValue((int)StateProvinceFieldIndex.IsOnlyStateProvinceFlag, true); } - set { SetValue((int)StateProvinceFieldIndex.IsOnlyStateProvinceFlag, value); } - } - - /// The ModifiedDate property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)StateProvinceFieldIndex.ModifiedDate, true); } - set { SetValue((int)StateProvinceFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)StateProvinceFieldIndex.Name, true); } - set { SetValue((int)StateProvinceFieldIndex.Name, value); } - } - - /// The Rowguid property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)StateProvinceFieldIndex.Rowguid, true); } - set { SetValue((int)StateProvinceFieldIndex.Rowguid, value); } - } - - /// The StateProvinceCode property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."StateProvinceCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String StateProvinceCode - { - get { return (System.String)GetValue((int)StateProvinceFieldIndex.StateProvinceCode, true); } - set { SetValue((int)StateProvinceFieldIndex.StateProvinceCode, value); } - } - - /// The StateProvinceId property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."StateProvinceID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 StateProvinceId - { - get { return (System.Int32)GetValue((int)StateProvinceFieldIndex.StateProvinceId, true); } - set { SetValue((int)StateProvinceFieldIndex.StateProvinceId, value); } - } - - /// The TerritoryId property of the Entity StateProvince

- /// Mapped on table field: "StateProvince"."TerritoryID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 TerritoryId - { - get { return (System.Int32)GetValue((int)StateProvinceFieldIndex.TerritoryId, true); } - set { SetValue((int)StateProvinceFieldIndex.TerritoryId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'AddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(AddressEntity))] - public virtual EntityCollection Addresses - { - get { return GetOrCreateEntityCollection("StateProvince", true, false, ref _addresses); } - } - - /// Gets the EntityCollection with the related entities of type 'SalesTaxRateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(SalesTaxRateEntity))] - public virtual EntityCollection SalesTaxRates - { - get { return GetOrCreateEntityCollection("StateProvince", true, false, ref _salesTaxRates); } - } - - /// Gets / sets related entity of type 'CountryRegionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual CountryRegionEntity CountryRegion - { - get { return _countryRegion; } - set - { - if(this.IsDeserializing) - { - SetupSyncCountryRegion(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "StateProvinces", "CountryRegion", _countryRegion, true); - } - } - } - - /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesTerritoryEntity SalesTerritory - { - get { return _salesTerritory; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesTerritory(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "StateProvinces", "SalesTerritory", _salesTerritory, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/StoreEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/StoreEntity.cs deleted file mode 100644 index 26a74216..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/StoreEntity.cs +++ /dev/null @@ -1,718 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Store'.

- [Serializable] - public partial class StoreEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _customers; - private SalesPersonEntity _salesPerson; - private BusinessEntityEntity _businessEntity; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name SalesPerson - public static readonly string SalesPerson = "SalesPerson"; - /// Member name Customers - public static readonly string Customers = "Customers"; - /// Member name BusinessEntity - public static readonly string BusinessEntity = "BusinessEntity"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static StoreEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public StoreEntity():base("StoreEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public StoreEntity(IEntityFields2 fields):base("StoreEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this StoreEntity - public StoreEntity(IValidator validator):base("StoreEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Store which data should be fetched into this Store object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public StoreEntity(System.Int32 customerId):base("StoreEntity") - { - InitClassEmpty(null, null); - this.CustomerId = customerId; - } - - /// CTor - /// PK value for Store which data should be fetched into this Store object - /// The custom validator object for this StoreEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public StoreEntity(System.Int32 customerId, IValidator validator):base("StoreEntity") - { - InitClassEmpty(validator, null); - this.CustomerId = customerId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected StoreEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _customers = (EntityCollection)info.GetValue("_customers", typeof(EntityCollection)); - _salesPerson = (SalesPersonEntity)info.GetValue("_salesPerson", typeof(SalesPersonEntity)); - if(_salesPerson!=null) - { - _salesPerson.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _businessEntity = (BusinessEntityEntity)info.GetValue("_businessEntity", typeof(BusinessEntityEntity)); - if(_businessEntity!=null) - { - _businessEntity.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((StoreFieldIndex)fieldIndex) - { - case StoreFieldIndex.CustomerId: - DesetupSyncBusinessEntity(true, false); - break; - case StoreFieldIndex.SalesPersonId: - DesetupSyncSalesPerson(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "SalesPerson": - this.SalesPerson = (SalesPersonEntity)entity; - break; - case "Customers": - this.Customers.Add((CustomerEntity)entity); - break; - case "BusinessEntity": - this.BusinessEntity = (BusinessEntityEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "SalesPerson": - toReturn.Add(Relations.SalesPersonEntityUsingSalesPersonId); - break; - case "Customers": - toReturn.Add(Relations.CustomerEntityUsingStoreId); - break; - case "BusinessEntity": - toReturn.Add(Relations.BusinessEntityEntityUsingCustomerId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "SalesPerson": - SetupSyncSalesPerson(relatedEntity); - break; - case "Customers": - this.Customers.Add((CustomerEntity)relatedEntity); - break; - case "BusinessEntity": - SetupSyncBusinessEntity(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "SalesPerson": - DesetupSyncSalesPerson(false, true); - break; - case "Customers": - this.PerformRelatedEntityRemoval(this.Customers, relatedEntity, signalRelatedEntityManyToOne); - break; - case "BusinessEntity": - DesetupSyncBusinessEntity(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - - - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_salesPerson!=null) - { - toReturn.Add(_salesPerson); - } - if(_businessEntity!=null) - { - toReturn.Add(_businessEntity); - } - - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.Customers); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_customers", ((_customers!=null) && (_customers.Count>0) && !this.MarkedForDeletion)?_customers:null); - info.AddValue("_salesPerson", (!this.MarkedForDeletion?_salesPerson:null)); - info.AddValue("_businessEntity", (!this.MarkedForDeletion?_businessEntity:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new StoreRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Customer' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoCustomers() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(CustomerFields.StoreId, null, ComparisonOperator.Equal, this.CustomerId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(SalesPersonFields.SalesPersonId, null, ComparisonOperator.Equal, this.SalesPersonId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityFields.BusinessEntityId, null, ComparisonOperator.Equal, this.CustomerId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(StoreEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._customers); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._customers = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._customers != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("SalesPerson", _salesPerson); - toReturn.Add("Customers", _customers); - toReturn.Add("BusinessEntity", _businessEntity); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CustomerId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Demographics", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Rowguid", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("SalesPersonId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _salesPerson - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncSalesPerson(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _salesPerson, new PropertyChangedEventHandler(OnSalesPersonPropertyChanged), "SalesPerson", "Stores", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStoreRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new int[] { (int)StoreFieldIndex.SalesPersonId }); - } - - /// setups the sync logic for member _salesPerson - /// Instance to set as the related entity of type entityType - private void SetupSyncSalesPerson(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _salesPerson, new PropertyChangedEventHandler( OnSalesPersonPropertyChanged ), "SalesPerson", "Stores", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStoreRelations.SalesPersonEntityUsingSalesPersonIdStatic, true, new string[] { }, new int[] { (int)StoreFieldIndex.SalesPersonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnSalesPersonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _businessEntity - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncBusinessEntity(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _businessEntity, new PropertyChangedEventHandler(OnBusinessEntityPropertyChanged), "BusinessEntity", "Store", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStoreRelations.BusinessEntityEntityUsingCustomerIdStatic, true, new int[] { (int)StoreFieldIndex.CustomerId }); - } - - /// setups the sync logic for member _businessEntity - /// Instance to set as the related entity of type entityType - private void SetupSyncBusinessEntity(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _businessEntity, new PropertyChangedEventHandler( OnBusinessEntityPropertyChanged ), "BusinessEntity", "Store", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticStoreRelations.BusinessEntityEntityUsingCustomerIdStatic, true, new string[] { }, new int[] { (int)StoreFieldIndex.CustomerId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnBusinessEntityPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this StoreEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static StoreRelations Relations - { - get { return new StoreRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathCustomers - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(CustomerEntityFactory))), (IEntityRelation)GetRelationsForField("Customers")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, 0, null, null, null, null, "Customers", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathSalesPerson - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(SalesPersonEntityFactory))), (IEntityRelation)GetRelationsForField("SalesPerson")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, 0, null, null, null, null, "SalesPerson", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntity - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntity")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, 0, null, null, null, null, "BusinessEntity", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The CustomerId property of the Entity Store

- /// Mapped on table field: "Store"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 CustomerId - { - get { return (System.Int32)GetValue((int)StoreFieldIndex.CustomerId, true); } - set { SetValue((int)StoreFieldIndex.CustomerId, value); } - } - - /// The Demographics property of the Entity Store

- /// Mapped on table field: "Store"."Demographics"
- /// Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String Demographics - { - get { return (System.String)GetValue((int)StoreFieldIndex.Demographics, true); } - set { SetValue((int)StoreFieldIndex.Demographics, value); } - } - - /// The ModifiedDate property of the Entity Store

- /// Mapped on table field: "Store"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)StoreFieldIndex.ModifiedDate, true); } - set { SetValue((int)StoreFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Store

- /// Mapped on table field: "Store"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)StoreFieldIndex.Name, true); } - set { SetValue((int)StoreFieldIndex.Name, value); } - } - - /// The Rowguid property of the Entity Store

- /// Mapped on table field: "Store"."rowguid"
- /// Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Guid Rowguid - { - get { return (System.Guid)GetValue((int)StoreFieldIndex.Rowguid, true); } - set { SetValue((int)StoreFieldIndex.Rowguid, value); } - } - - /// The SalesPersonId property of the Entity Store

- /// Mapped on table field: "Store"."SalesPersonID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable SalesPersonId - { - get { return (Nullable)GetValue((int)StoreFieldIndex.SalesPersonId, false); } - set { SetValue((int)StoreFieldIndex.SalesPersonId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'CustomerEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(CustomerEntity))] - public virtual EntityCollection Customers - { - get { return GetOrCreateEntityCollection("Store", true, false, ref _customers); } - } - - /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual SalesPersonEntity SalesPerson - { - get { return _salesPerson; } - set - { - if(this.IsDeserializing) - { - SetupSyncSalesPerson(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "Stores", "SalesPerson", _salesPerson, true); - } - } - } - - /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual BusinessEntityEntity BusinessEntity - { - get { return _businessEntity; } - set - { - if(this.IsDeserializing) - { - SetupSyncBusinessEntity(value); - CallSetRelatedEntityDuringDeserialization(value, "Store"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_businessEntity !=null); - DesetupSyncBusinessEntity(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("BusinessEntity"); - } - } - else - { - if(_businessEntity!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Store"); - SetupSyncBusinessEntity(value); - } - } - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs deleted file mode 100644 index cd061452..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs +++ /dev/null @@ -1,495 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'TransactionHistoryArchive'.

- [Serializable] - public partial class TransactionHistoryArchiveEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static TransactionHistoryArchiveEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public TransactionHistoryArchiveEntity():base("TransactionHistoryArchiveEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public TransactionHistoryArchiveEntity(IEntityFields2 fields):base("TransactionHistoryArchiveEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this TransactionHistoryArchiveEntity - public TransactionHistoryArchiveEntity(IValidator validator):base("TransactionHistoryArchiveEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for TransactionHistoryArchive which data should be fetched into this TransactionHistoryArchive object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public TransactionHistoryArchiveEntity(System.Int32 transactionId):base("TransactionHistoryArchiveEntity") - { - InitClassEmpty(null, null); - this.TransactionId = transactionId; - } - - /// CTor - /// PK value for TransactionHistoryArchive which data should be fetched into this TransactionHistoryArchive object - /// The custom validator object for this TransactionHistoryArchiveEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public TransactionHistoryArchiveEntity(System.Int32 transactionId, IValidator validator):base("TransactionHistoryArchiveEntity") - { - InitClassEmpty(validator, null); - this.TransactionId = transactionId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected TransactionHistoryArchiveEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new TransactionHistoryArchiveRelations().GetAllRelations(); - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(TransactionHistoryArchiveEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ActualCost", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Quantity", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReferenceOrderId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReferenceOrderLineId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TransactionDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TransactionId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TransactionType", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this TransactionHistoryArchiveEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static TransactionHistoryArchiveRelations Relations - { - get { return new TransactionHistoryArchiveRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ActualCost property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."ActualCost"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal ActualCost - { - get { return (System.Decimal)GetValue((int)TransactionHistoryArchiveFieldIndex.ActualCost, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.ActualCost, value); } - } - - /// The ModifiedDate property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)TransactionHistoryArchiveFieldIndex.ModifiedDate, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.ProductId, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.ProductId, value); } - } - - /// The Quantity property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."Quantity"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 Quantity - { - get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.Quantity, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.Quantity, value); } - } - - /// The ReferenceOrderId property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."ReferenceOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ReferenceOrderId - { - get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderId, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderId, value); } - } - - /// The ReferenceOrderLineId property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."ReferenceOrderLineID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ReferenceOrderLineId - { - get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderLineId, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderLineId, value); } - } - - /// The TransactionDate property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."TransactionDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime TransactionDate - { - get { return (System.DateTime)GetValue((int)TransactionHistoryArchiveFieldIndex.TransactionDate, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.TransactionDate, value); } - } - - /// The TransactionId property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."TransactionID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 TransactionId - { - get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.TransactionId, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.TransactionId, value); } - } - - /// The TransactionType property of the Entity TransactionHistoryArchive

- /// Mapped on table field: "TransactionHistoryArchive"."TransactionType"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String TransactionType - { - get { return (System.String)GetValue((int)TransactionHistoryArchiveFieldIndex.TransactionType, true); } - set { SetValue((int)TransactionHistoryArchiveFieldIndex.TransactionType, value); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryArchiveEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs deleted file mode 100644 index 89ccc251..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs +++ /dev/null @@ -1,597 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'TransactionHistory'.

- [Serializable] - public partial class TransactionHistoryEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private ProductEntity _product; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static TransactionHistoryEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public TransactionHistoryEntity():base("TransactionHistoryEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public TransactionHistoryEntity(IEntityFields2 fields):base("TransactionHistoryEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this TransactionHistoryEntity - public TransactionHistoryEntity(IValidator validator):base("TransactionHistoryEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for TransactionHistory which data should be fetched into this TransactionHistory object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public TransactionHistoryEntity(System.Int32 transactionId):base("TransactionHistoryEntity") - { - InitClassEmpty(null, null); - this.TransactionId = transactionId; - } - - /// CTor - /// PK value for TransactionHistory which data should be fetched into this TransactionHistory object - /// The custom validator object for this TransactionHistoryEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public TransactionHistoryEntity(System.Int32 transactionId, IValidator validator):base("TransactionHistoryEntity") - { - InitClassEmpty(validator, null); - this.TransactionId = transactionId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected TransactionHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((TransactionHistoryFieldIndex)fieldIndex) - { - case TransactionHistoryFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new TransactionHistoryRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(TransactionHistoryEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ActualCost", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Quantity", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReferenceOrderId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ReferenceOrderLineId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TransactionDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TransactionId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("TransactionType", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "TransactionHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticTransactionHistoryRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)TransactionHistoryFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "TransactionHistories", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticTransactionHistoryRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)TransactionHistoryFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this TransactionHistoryEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static TransactionHistoryRelations Relations - { - get { return new TransactionHistoryRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ActualCost property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."ActualCost"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal ActualCost - { - get { return (System.Decimal)GetValue((int)TransactionHistoryFieldIndex.ActualCost, true); } - set { SetValue((int)TransactionHistoryFieldIndex.ActualCost, value); } - } - - /// The ModifiedDate property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)TransactionHistoryFieldIndex.ModifiedDate, true); } - set { SetValue((int)TransactionHistoryFieldIndex.ModifiedDate, value); } - } - - /// The ProductId property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.ProductId, true); } - set { SetValue((int)TransactionHistoryFieldIndex.ProductId, value); } - } - - /// The Quantity property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."Quantity"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 Quantity - { - get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.Quantity, true); } - set { SetValue((int)TransactionHistoryFieldIndex.Quantity, value); } - } - - /// The ReferenceOrderId property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."ReferenceOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ReferenceOrderId - { - get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.ReferenceOrderId, true); } - set { SetValue((int)TransactionHistoryFieldIndex.ReferenceOrderId, value); } - } - - /// The ReferenceOrderLineId property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."ReferenceOrderLineID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ReferenceOrderLineId - { - get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.ReferenceOrderLineId, true); } - set { SetValue((int)TransactionHistoryFieldIndex.ReferenceOrderLineId, value); } - } - - /// The TransactionDate property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."TransactionDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime TransactionDate - { - get { return (System.DateTime)GetValue((int)TransactionHistoryFieldIndex.TransactionDate, true); } - set { SetValue((int)TransactionHistoryFieldIndex.TransactionDate, value); } - } - - /// The TransactionId property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."TransactionID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 TransactionId - { - get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.TransactionId, true); } - set { SetValue((int)TransactionHistoryFieldIndex.TransactionId, value); } - } - - /// The TransactionType property of the Entity TransactionHistory

- /// Mapped on table field: "TransactionHistory"."TransactionType"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String TransactionType - { - get { return (System.String)GetValue((int)TransactionHistoryFieldIndex.TransactionType, true); } - set { SetValue((int)TransactionHistoryFieldIndex.TransactionType, value); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "TransactionHistories", "Product", _product, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs deleted file mode 100644 index 69b32bf7..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs +++ /dev/null @@ -1,607 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'UnitMeasure'.

- [Serializable] - public partial class UnitMeasureEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _billOfMaterials; - private EntityCollection _products; - private EntityCollection _products_; - private EntityCollection _productVendors; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name BillOfMaterials - public static readonly string BillOfMaterials = "BillOfMaterials"; - /// Member name Products - public static readonly string Products = "Products"; - /// Member name Products_ - public static readonly string Products_ = "Products_"; - /// Member name ProductVendors - public static readonly string ProductVendors = "ProductVendors"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static UnitMeasureEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public UnitMeasureEntity():base("UnitMeasureEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public UnitMeasureEntity(IEntityFields2 fields):base("UnitMeasureEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this UnitMeasureEntity - public UnitMeasureEntity(IValidator validator):base("UnitMeasureEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for UnitMeasure which data should be fetched into this UnitMeasure object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public UnitMeasureEntity(System.String unitMeasureCode):base("UnitMeasureEntity") - { - InitClassEmpty(null, null); - this.UnitMeasureCode = unitMeasureCode; - } - - /// CTor - /// PK value for UnitMeasure which data should be fetched into this UnitMeasure object - /// The custom validator object for this UnitMeasureEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public UnitMeasureEntity(System.String unitMeasureCode, IValidator validator):base("UnitMeasureEntity") - { - InitClassEmpty(validator, null); - this.UnitMeasureCode = unitMeasureCode; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected UnitMeasureEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _billOfMaterials = (EntityCollection)info.GetValue("_billOfMaterials", typeof(EntityCollection)); - _products = (EntityCollection)info.GetValue("_products", typeof(EntityCollection)); - _products_ = (EntityCollection)info.GetValue("_products_", typeof(EntityCollection)); - _productVendors = (EntityCollection)info.GetValue("_productVendors", typeof(EntityCollection)); - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "BillOfMaterials": - this.BillOfMaterials.Add((BillOfMaterialEntity)entity); - break; - case "Products": - this.Products.Add((ProductEntity)entity); - break; - case "Products_": - this.Products_.Add((ProductEntity)entity); - break; - case "ProductVendors": - this.ProductVendors.Add((ProductVendorEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - 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; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "BillOfMaterials": - this.BillOfMaterials.Add((BillOfMaterialEntity)relatedEntity); - break; - case "Products": - this.Products.Add((ProductEntity)relatedEntity); - break; - case "Products_": - this.Products_.Add((ProductEntity)relatedEntity); - break; - case "ProductVendors": - this.ProductVendors.Add((ProductVendorEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "BillOfMaterials": - this.PerformRelatedEntityRemoval(this.BillOfMaterials, relatedEntity, signalRelatedEntityManyToOne); - break; - case "Products": - this.PerformRelatedEntityRemoval(this.Products, relatedEntity, signalRelatedEntityManyToOne); - break; - case "Products_": - this.PerformRelatedEntityRemoval(this.Products_, relatedEntity, signalRelatedEntityManyToOne); - break; - case "ProductVendors": - this.PerformRelatedEntityRemoval(this.ProductVendors, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.BillOfMaterials); - toReturn.Add(this.Products); - toReturn.Add(this.Products_); - toReturn.Add(this.ProductVendors); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_billOfMaterials", ((_billOfMaterials!=null) && (_billOfMaterials.Count>0) && !this.MarkedForDeletion)?_billOfMaterials:null); - info.AddValue("_products", ((_products!=null) && (_products.Count>0) && !this.MarkedForDeletion)?_products:null); - info.AddValue("_products_", ((_products_!=null) && (_products_.Count>0) && !this.MarkedForDeletion)?_products_:null); - info.AddValue("_productVendors", ((_productVendors!=null) && (_productVendors.Count>0) && !this.MarkedForDeletion)?_productVendors:null); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new UnitMeasureRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BillOfMaterial' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBillOfMaterials() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BillOfMaterialFields.UnitMeasureCode, null, ComparisonOperator.Equal, this.UnitMeasureCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProducts() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.SizeUnitMeasureCode, null, ComparisonOperator.Equal, this.UnitMeasureCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProducts_() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.WeightUnitMeasureCode, null, ComparisonOperator.Equal, this.UnitMeasureCode)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductVendor' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductVendors() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductVendorFields.UnitMeasureCode, null, ComparisonOperator.Equal, this.UnitMeasureCode)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(UnitMeasureEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._billOfMaterials); - collectionsQueue.Enqueue(this._products); - collectionsQueue.Enqueue(this._products_); - collectionsQueue.Enqueue(this._productVendors); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._billOfMaterials = (EntityCollection) collectionsQueue.Dequeue(); - this._products = (EntityCollection) collectionsQueue.Dequeue(); - this._products_ = (EntityCollection) collectionsQueue.Dequeue(); - this._productVendors = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._billOfMaterials != null); - toReturn |=(this._products != null); - toReturn |=(this._products_ != null); - toReturn |=(this._productVendors != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BillOfMaterialEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductVendorEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("BillOfMaterials", _billOfMaterials); - toReturn.Add("Products", _products); - toReturn.Add("Products_", _products_); - toReturn.Add("ProductVendors", _productVendors); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("UnitMeasureCode", fieldHashtable); - } - #endregion - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this UnitMeasureEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static UnitMeasureRelations Relations - { - get { return new UnitMeasureRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BillOfMaterial' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBillOfMaterials - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BillOfMaterialEntityFactory))), (IEntityRelation)GetRelationsForField("BillOfMaterials")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity, 0, null, null, null, null, "BillOfMaterials", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProducts - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Products")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Products", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProducts_ - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Products_")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Products_", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductVendor' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductVendors - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductVendorEntityFactory))), (IEntityRelation)GetRelationsForField("ProductVendors")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity, 0, null, null, null, null, "ProductVendors", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ModifiedDate property of the Entity UnitMeasure

- /// Mapped on table field: "UnitMeasure"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)UnitMeasureFieldIndex.ModifiedDate, true); } - set { SetValue((int)UnitMeasureFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity UnitMeasure

- /// Mapped on table field: "UnitMeasure"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)UnitMeasureFieldIndex.Name, true); } - set { SetValue((int)UnitMeasureFieldIndex.Name, value); } - } - - /// The UnitMeasureCode property of the Entity UnitMeasure

- /// Mapped on table field: "UnitMeasure"."UnitMeasureCode"
- /// Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.String UnitMeasureCode - { - get { return (System.String)GetValue((int)UnitMeasureFieldIndex.UnitMeasureCode, true); } - set { SetValue((int)UnitMeasureFieldIndex.UnitMeasureCode, value); } - } - - /// Gets the EntityCollection with the related entities of type 'BillOfMaterialEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(BillOfMaterialEntity))] - public virtual EntityCollection BillOfMaterials - { - get { return GetOrCreateEntityCollection("UnitMeasure", true, false, ref _billOfMaterials); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductEntity))] - public virtual EntityCollection Products - { - get { return GetOrCreateEntityCollection("UnitMeasure", true, false, ref _products); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductEntity))] - public virtual EntityCollection Products_ - { - get { return GetOrCreateEntityCollection("UnitMeasure_", true, false, ref _products_); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductVendorEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductVendorEntity))] - public virtual EntityCollection ProductVendors - { - get { return GetOrCreateEntityCollection("UnitMeasure", true, false, ref _productVendors); } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/VendorEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/VendorEntity.cs deleted file mode 100644 index a1317746..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/VendorEntity.cs +++ /dev/null @@ -1,698 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'Vendor'.

- [Serializable] - public partial class VendorEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _productVendors; - private EntityCollection _purchaseOrderHeaders; - private BusinessEntityEntity _businessEntity; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name ProductVendors - public static readonly string ProductVendors = "ProductVendors"; - /// Member name PurchaseOrderHeaders - public static readonly string PurchaseOrderHeaders = "PurchaseOrderHeaders"; - /// Member name BusinessEntity - public static readonly string BusinessEntity = "BusinessEntity"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static VendorEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public VendorEntity():base("VendorEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public VendorEntity(IEntityFields2 fields):base("VendorEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this VendorEntity - public VendorEntity(IValidator validator):base("VendorEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for Vendor which data should be fetched into this Vendor object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public VendorEntity(System.Int32 vendorId):base("VendorEntity") - { - InitClassEmpty(null, null); - this.VendorId = vendorId; - } - - /// CTor - /// PK value for Vendor which data should be fetched into this Vendor object - /// The custom validator object for this VendorEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public VendorEntity(System.Int32 vendorId, IValidator validator):base("VendorEntity") - { - InitClassEmpty(validator, null); - this.VendorId = vendorId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected VendorEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _productVendors = (EntityCollection)info.GetValue("_productVendors", typeof(EntityCollection)); - _purchaseOrderHeaders = (EntityCollection)info.GetValue("_purchaseOrderHeaders", typeof(EntityCollection)); - _businessEntity = (BusinessEntityEntity)info.GetValue("_businessEntity", typeof(BusinessEntityEntity)); - if(_businessEntity!=null) - { - _businessEntity.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((VendorFieldIndex)fieldIndex) - { - case VendorFieldIndex.VendorId: - DesetupSyncBusinessEntity(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "ProductVendors": - this.ProductVendors.Add((ProductVendorEntity)entity); - break; - case "PurchaseOrderHeaders": - this.PurchaseOrderHeaders.Add((PurchaseOrderHeaderEntity)entity); - break; - case "BusinessEntity": - this.BusinessEntity = (BusinessEntityEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "ProductVendors": - toReturn.Add(Relations.ProductVendorEntityUsingVendorId); - break; - case "PurchaseOrderHeaders": - toReturn.Add(Relations.PurchaseOrderHeaderEntityUsingVendorId); - break; - case "BusinessEntity": - toReturn.Add(Relations.BusinessEntityEntityUsingVendorId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "ProductVendors": - this.ProductVendors.Add((ProductVendorEntity)relatedEntity); - break; - case "PurchaseOrderHeaders": - this.PurchaseOrderHeaders.Add((PurchaseOrderHeaderEntity)relatedEntity); - break; - case "BusinessEntity": - SetupSyncBusinessEntity(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "ProductVendors": - this.PerformRelatedEntityRemoval(this.ProductVendors, relatedEntity, signalRelatedEntityManyToOne); - break; - case "PurchaseOrderHeaders": - this.PerformRelatedEntityRemoval(this.PurchaseOrderHeaders, relatedEntity, signalRelatedEntityManyToOne); - break; - case "BusinessEntity": - DesetupSyncBusinessEntity(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - - - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_businessEntity!=null) - { - toReturn.Add(_businessEntity); - } - - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.ProductVendors); - toReturn.Add(this.PurchaseOrderHeaders); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_productVendors", ((_productVendors!=null) && (_productVendors.Count>0) && !this.MarkedForDeletion)?_productVendors:null); - info.AddValue("_purchaseOrderHeaders", ((_purchaseOrderHeaders!=null) && (_purchaseOrderHeaders.Count>0) && !this.MarkedForDeletion)?_purchaseOrderHeaders:null); - info.AddValue("_businessEntity", (!this.MarkedForDeletion?_businessEntity:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new VendorRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductVendor' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProductVendors() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductVendorFields.VendorId, null, ComparisonOperator.Equal, this.VendorId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderHeader' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeaders() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(PurchaseOrderHeaderFields.VendorId, null, ComparisonOperator.Equal, this.VendorId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BusinessEntityFields.BusinessEntityId, null, ComparisonOperator.Equal, this.VendorId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(VendorEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._productVendors); - collectionsQueue.Enqueue(this._purchaseOrderHeaders); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._productVendors = (EntityCollection) collectionsQueue.Dequeue(); - this._purchaseOrderHeaders = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._productVendors != null); - toReturn |=(this._purchaseOrderHeaders != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductVendorEntityFactory))) : null); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("ProductVendors", _productVendors); - toReturn.Add("PurchaseOrderHeaders", _purchaseOrderHeaders); - toReturn.Add("BusinessEntity", _businessEntity); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("AccountNumber", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ActiveFlag", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("CreditRating", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("Name", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PreferredVendorStatus", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PurchasingWebServiceUrl", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("VendorId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _businessEntity - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncBusinessEntity(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, false, ref _businessEntity, new PropertyChangedEventHandler(OnBusinessEntityPropertyChanged), "BusinessEntity", "Vendor", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticVendorRelations.BusinessEntityEntityUsingVendorIdStatic, true, new int[] { (int)VendorFieldIndex.VendorId }); - } - - /// setups the sync logic for member _businessEntity - /// Instance to set as the related entity of type entityType - private void SetupSyncBusinessEntity(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _businessEntity, new PropertyChangedEventHandler( OnBusinessEntityPropertyChanged ), "BusinessEntity", "Vendor", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticVendorRelations.BusinessEntityEntityUsingVendorIdStatic, true, new string[] { }, new int[] { (int)VendorFieldIndex.VendorId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnBusinessEntityPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this VendorEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static VendorRelations Relations - { - get { return new VendorRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductVendor' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProductVendors - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductVendorEntityFactory))), (IEntityRelation)GetRelationsForField("ProductVendors")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity, 0, null, null, null, null, "ProductVendors", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeaders - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(PurchaseOrderHeaderEntityFactory))), (IEntityRelation)GetRelationsForField("PurchaseOrderHeaders")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, 0, null, null, null, null, "PurchaseOrderHeaders", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathBusinessEntity - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(BusinessEntityEntityFactory))), (IEntityRelation)GetRelationsForField("BusinessEntity")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, 0, null, null, null, null, "BusinessEntity", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The AccountNumber property of the Entity Vendor

- /// Mapped on table field: "Vendor"."AccountNumber"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String AccountNumber - { - get { return (System.String)GetValue((int)VendorFieldIndex.AccountNumber, true); } - set { SetValue((int)VendorFieldIndex.AccountNumber, value); } - } - - /// The ActiveFlag property of the Entity Vendor

- /// Mapped on table field: "Vendor"."ActiveFlag"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean ActiveFlag - { - get { return (System.Boolean)GetValue((int)VendorFieldIndex.ActiveFlag, true); } - set { SetValue((int)VendorFieldIndex.ActiveFlag, value); } - } - - /// The CreditRating property of the Entity Vendor

- /// Mapped on table field: "Vendor"."CreditRating"
- /// Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Byte CreditRating - { - get { return (System.Byte)GetValue((int)VendorFieldIndex.CreditRating, true); } - set { SetValue((int)VendorFieldIndex.CreditRating, value); } - } - - /// The ModifiedDate property of the Entity Vendor

- /// Mapped on table field: "Vendor"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)VendorFieldIndex.ModifiedDate, true); } - set { SetValue((int)VendorFieldIndex.ModifiedDate, value); } - } - - /// The Name property of the Entity Vendor

- /// Mapped on table field: "Vendor"."Name"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.String Name - { - get { return (System.String)GetValue((int)VendorFieldIndex.Name, true); } - set { SetValue((int)VendorFieldIndex.Name, value); } - } - - /// The PreferredVendorStatus property of the Entity Vendor

- /// Mapped on table field: "Vendor"."PreferredVendorStatus"
- /// Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Boolean PreferredVendorStatus - { - get { return (System.Boolean)GetValue((int)VendorFieldIndex.PreferredVendorStatus, true); } - set { SetValue((int)VendorFieldIndex.PreferredVendorStatus, value); } - } - - /// The PurchasingWebServiceUrl property of the Entity Vendor

- /// Mapped on table field: "Vendor"."PurchasingWebServiceURL"
- /// Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 1024
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual System.String PurchasingWebServiceUrl - { - get { return (System.String)GetValue((int)VendorFieldIndex.PurchasingWebServiceUrl, true); } - set { SetValue((int)VendorFieldIndex.PurchasingWebServiceUrl, value); } - } - - /// The VendorId property of the Entity Vendor

- /// Mapped on table field: "Vendor"."BusinessEntityID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 VendorId - { - get { return (System.Int32)GetValue((int)VendorFieldIndex.VendorId, true); } - set { SetValue((int)VendorFieldIndex.VendorId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'ProductVendorEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(ProductVendorEntity))] - public virtual EntityCollection ProductVendors - { - get { return GetOrCreateEntityCollection("Vendor", true, false, ref _productVendors); } - } - - /// Gets the EntityCollection with the related entities of type 'PurchaseOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(PurchaseOrderHeaderEntity))] - public virtual EntityCollection PurchaseOrderHeaders - { - get { return GetOrCreateEntityCollection("Vendor", true, false, ref _purchaseOrderHeaders); } - } - - /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

- ///
- [Browsable(false)] - public virtual BusinessEntityEntity BusinessEntity - { - get { return _businessEntity; } - set - { - if(this.IsDeserializing) - { - SetupSyncBusinessEntity(value); - CallSetRelatedEntityDuringDeserialization(value, "Vendor"); - } - else - { - if(value==null) - { - bool raisePropertyChanged = (_businessEntity !=null); - DesetupSyncBusinessEntity(true, true); - if(raisePropertyChanged) - { - OnPropertyChanged("BusinessEntity"); - } - } - else - { - if(_businessEntity!=value) - { - ((IEntity2)value).SetRelatedEntity(this, "Vendor"); - SetupSyncBusinessEntity(value); - } - } - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs deleted file mode 100644 index 74c624e0..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs +++ /dev/null @@ -1,745 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'WorkOrder'.

- [Serializable] - public partial class WorkOrderEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private EntityCollection _workOrderRoutings; - private ProductEntity _product; - private ScrapReasonEntity _scrapReason; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Product - public static readonly string Product = "Product"; - /// Member name ScrapReason - public static readonly string ScrapReason = "ScrapReason"; - /// Member name WorkOrderRoutings - public static readonly string WorkOrderRoutings = "WorkOrderRoutings"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static WorkOrderEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public WorkOrderEntity():base("WorkOrderEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public WorkOrderEntity(IEntityFields2 fields):base("WorkOrderEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this WorkOrderEntity - public WorkOrderEntity(IValidator validator):base("WorkOrderEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for WorkOrder which data should be fetched into this WorkOrder object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public WorkOrderEntity(System.Int32 workOrderId):base("WorkOrderEntity") - { - InitClassEmpty(null, null); - this.WorkOrderId = workOrderId; - } - - /// CTor - /// PK value for WorkOrder which data should be fetched into this WorkOrder object - /// The custom validator object for this WorkOrderEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public WorkOrderEntity(System.Int32 workOrderId, IValidator validator):base("WorkOrderEntity") - { - InitClassEmpty(validator, null); - this.WorkOrderId = workOrderId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected WorkOrderEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _workOrderRoutings = (EntityCollection)info.GetValue("_workOrderRoutings", typeof(EntityCollection)); - _product = (ProductEntity)info.GetValue("_product", typeof(ProductEntity)); - if(_product!=null) - { - _product.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _scrapReason = (ScrapReasonEntity)info.GetValue("_scrapReason", typeof(ScrapReasonEntity)); - if(_scrapReason!=null) - { - _scrapReason.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((WorkOrderFieldIndex)fieldIndex) - { - case WorkOrderFieldIndex.ProductId: - DesetupSyncProduct(true, false); - break; - case WorkOrderFieldIndex.ScrapReasonId: - DesetupSyncScrapReason(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Product": - this.Product = (ProductEntity)entity; - break; - case "ScrapReason": - this.ScrapReason = (ScrapReasonEntity)entity; - break; - case "WorkOrderRoutings": - this.WorkOrderRoutings.Add((WorkOrderRoutingEntity)entity); - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Product": - toReturn.Add(Relations.ProductEntityUsingProductId); - break; - case "ScrapReason": - toReturn.Add(Relations.ScrapReasonEntityUsingScrapReasonId); - break; - case "WorkOrderRoutings": - toReturn.Add(Relations.WorkOrderRoutingEntityUsingWorkOrderId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Product": - SetupSyncProduct(relatedEntity); - break; - case "ScrapReason": - SetupSyncScrapReason(relatedEntity); - break; - case "WorkOrderRoutings": - this.WorkOrderRoutings.Add((WorkOrderRoutingEntity)relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Product": - DesetupSyncProduct(false, true); - break; - case "ScrapReason": - DesetupSyncScrapReason(false, true); - break; - case "WorkOrderRoutings": - this.PerformRelatedEntityRemoval(this.WorkOrderRoutings, relatedEntity, signalRelatedEntityManyToOne); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_product!=null) - { - toReturn.Add(_product); - } - if(_scrapReason!=null) - { - toReturn.Add(_scrapReason); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - toReturn.Add(this.WorkOrderRoutings); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_workOrderRoutings", ((_workOrderRoutings!=null) && (_workOrderRoutings.Count>0) && !this.MarkedForDeletion)?_workOrderRoutings:null); - info.AddValue("_product", (!this.MarkedForDeletion?_product:null)); - info.AddValue("_scrapReason", (!this.MarkedForDeletion?_scrapReason:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new WorkOrderRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrderRouting' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoWorkOrderRoutings() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(WorkOrderRoutingFields.WorkOrderId, null, ComparisonOperator.Equal, this.WorkOrderId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoProduct() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ProductFields.ProductId, null, ComparisonOperator.Equal, this.ProductId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ScrapReason' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoScrapReason() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(ScrapReasonFields.ScrapReasonId, null, ComparisonOperator.Equal, this.ScrapReasonId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - collectionsQueue.Enqueue(this._workOrderRoutings); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - this._workOrderRoutings = (EntityCollection) collectionsQueue.Dequeue(); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - toReturn |=(this._workOrderRoutings != null); - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderRoutingEntityFactory))) : null); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Product", _product); - toReturn.Add("ScrapReason", _scrapReason); - toReturn.Add("WorkOrderRoutings", _workOrderRoutings); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("DueDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("EndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OrderQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ScrappedQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ScrapReasonId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StartDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("StockedQty", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("WorkOrderId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _product - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncProduct(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _product, new PropertyChangedEventHandler(OnProductPropertyChanged), "Product", "WorkOrders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRelations.ProductEntityUsingProductIdStatic, true, new int[] { (int)WorkOrderFieldIndex.ProductId }); - } - - /// setups the sync logic for member _product - /// Instance to set as the related entity of type entityType - private void SetupSyncProduct(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _product, new PropertyChangedEventHandler( OnProductPropertyChanged ), "Product", "WorkOrders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRelations.ProductEntityUsingProductIdStatic, true, new string[] { }, new int[] { (int)WorkOrderFieldIndex.ProductId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnProductPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _scrapReason - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncScrapReason(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _scrapReason, new PropertyChangedEventHandler(OnScrapReasonPropertyChanged), "ScrapReason", "WorkOrders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRelations.ScrapReasonEntityUsingScrapReasonIdStatic, true, new int[] { (int)WorkOrderFieldIndex.ScrapReasonId }); - } - - /// setups the sync logic for member _scrapReason - /// Instance to set as the related entity of type entityType - private void SetupSyncScrapReason(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _scrapReason, new PropertyChangedEventHandler( OnScrapReasonPropertyChanged ), "ScrapReason", "WorkOrders", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRelations.ScrapReasonEntityUsingScrapReasonIdStatic, true, new string[] { }, new int[] { (int)WorkOrderFieldIndex.ScrapReasonId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnScrapReasonPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this WorkOrderEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static WorkOrderRelations Relations - { - get { return new WorkOrderRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrderRouting' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathWorkOrderRoutings - { - get { return new PrefetchPathElement2( new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderRoutingEntityFactory))), (IEntityRelation)GetRelationsForField("WorkOrderRoutings")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity, 0, null, null, null, null, "WorkOrderRoutings", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathProduct - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ProductEntityFactory))), (IEntityRelation)GetRelationsForField("Product")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, 0, null, null, null, null, "Product", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ScrapReason' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathScrapReason - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(ScrapReasonEntityFactory))), (IEntityRelation)GetRelationsForField("ScrapReason")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.ScrapReasonEntity, 0, null, null, null, null, "ScrapReason", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The DueDate property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."DueDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime DueDate - { - get { return (System.DateTime)GetValue((int)WorkOrderFieldIndex.DueDate, true); } - set { SetValue((int)WorkOrderFieldIndex.DueDate, value); } - } - - /// The EndDate property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."EndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable EndDate - { - get { return (Nullable)GetValue((int)WorkOrderFieldIndex.EndDate, false); } - set { SetValue((int)WorkOrderFieldIndex.EndDate, value); } - } - - /// The ModifiedDate property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)WorkOrderFieldIndex.ModifiedDate, true); } - set { SetValue((int)WorkOrderFieldIndex.ModifiedDate, value); } - } - - /// The OrderQty property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."OrderQty"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 OrderQty - { - get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.OrderQty, true); } - set { SetValue((int)WorkOrderFieldIndex.OrderQty, value); } - } - - /// The ProductId property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.ProductId, true); } - set { SetValue((int)WorkOrderFieldIndex.ProductId, value); } - } - - /// The ScrappedQty property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."ScrappedQty"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 ScrappedQty - { - get { return (System.Int16)GetValue((int)WorkOrderFieldIndex.ScrappedQty, true); } - set { SetValue((int)WorkOrderFieldIndex.ScrappedQty, value); } - } - - /// The ScrapReasonId property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."ScrapReasonID"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ScrapReasonId - { - get { return (Nullable)GetValue((int)WorkOrderFieldIndex.ScrapReasonId, false); } - set { SetValue((int)WorkOrderFieldIndex.ScrapReasonId, value); } - } - - /// The StartDate property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."StartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime StartDate - { - get { return (System.DateTime)GetValue((int)WorkOrderFieldIndex.StartDate, true); } - set { SetValue((int)WorkOrderFieldIndex.StartDate, value); } - } - - /// The StockedQty property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."StockedQty"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int32 StockedQty - { - get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.StockedQty, true); } - - } - - /// The WorkOrderId property of the Entity WorkOrder

- /// Mapped on table field: "WorkOrder"."WorkOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
- public virtual System.Int32 WorkOrderId - { - get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.WorkOrderId, true); } - set { SetValue((int)WorkOrderFieldIndex.WorkOrderId, value); } - } - - /// Gets the EntityCollection with the related entities of type 'WorkOrderRoutingEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

- [TypeContainedAttribute(typeof(WorkOrderRoutingEntity))] - public virtual EntityCollection WorkOrderRoutings - { - get { return GetOrCreateEntityCollection("WorkOrder", true, false, ref _workOrderRoutings); } - } - - /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ProductEntity Product - { - get { return _product; } - set - { - if(this.IsDeserializing) - { - SetupSyncProduct(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "WorkOrders", "Product", _product, true); - } - } - } - - /// Gets / sets related entity of type 'ScrapReasonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual ScrapReasonEntity ScrapReason - { - get { return _scrapReason; } - set - { - if(this.IsDeserializing) - { - SetupSyncScrapReason(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "WorkOrders", "ScrapReason", _scrapReason, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs b/LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs deleted file mode 100644 index fa1e3a5c..00000000 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs +++ /dev/null @@ -1,731 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Xml.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - /// Entity class which represents the entity 'WorkOrderRouting'.

- [Serializable] - public partial class WorkOrderRoutingEntity : CommonEntityBase - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces - // __LLBLGENPRO_USER_CODE_REGION_END - { - #region Class Member Declarations - private LocationEntity _location; - private WorkOrderEntity _workOrder; - - // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Statics - private static Dictionary _customProperties; - private static Dictionary> _fieldsCustomProperties; - - /// All names of fields mapped onto a relation. Usable for in-memory filtering - public static partial class MemberNames - { - /// Member name Location - public static readonly string Location = "Location"; - /// Member name WorkOrder - public static readonly string WorkOrder = "WorkOrder"; - } - #endregion - - /// Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. - static WorkOrderRoutingEntity() - { - SetupCustomPropertyHashtables(); - } - - /// CTor - public WorkOrderRoutingEntity():base("WorkOrderRoutingEntity") - { - InitClassEmpty(null, null); - } - - /// CTor - /// For framework usage. - /// Fields object to set as the fields for this entity. - public WorkOrderRoutingEntity(IEntityFields2 fields):base("WorkOrderRoutingEntity") - { - InitClassEmpty(null, fields); - } - - /// CTor - /// The custom validator object for this WorkOrderRoutingEntity - public WorkOrderRoutingEntity(IValidator validator):base("WorkOrderRoutingEntity") - { - InitClassEmpty(validator, null); - } - - /// CTor - /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object - /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object - /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public WorkOrderRoutingEntity(System.Int16 operationSequence, System.Int32 productId, System.Int32 workOrderId):base("WorkOrderRoutingEntity") - { - InitClassEmpty(null, null); - this.OperationSequence = operationSequence; - this.ProductId = productId; - this.WorkOrderId = workOrderId; - } - - /// CTor - /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object - /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object - /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object - /// The custom validator object for this WorkOrderRoutingEntity - /// The entity is not fetched by this constructor. Use a DataAccessAdapter for that. - public WorkOrderRoutingEntity(System.Int16 operationSequence, System.Int32 productId, System.Int32 workOrderId, IValidator validator):base("WorkOrderRoutingEntity") - { - InitClassEmpty(validator, null); - this.OperationSequence = operationSequence; - this.ProductId = productId; - this.WorkOrderId = workOrderId; - } - - /// Protected CTor for deserialization - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected WorkOrderRoutingEntity(SerializationInfo info, StreamingContext context) : base(info, context) - { - if(SerializationHelper.Optimization != SerializationOptimization.Fast) - { - _location = (LocationEntity)info.GetValue("_location", typeof(LocationEntity)); - if(_location!=null) - { - _location.AfterSave+=new EventHandler(OnEntityAfterSave); - } - _workOrder = (WorkOrderEntity)info.GetValue("_workOrder", typeof(WorkOrderEntity)); - if(_workOrder!=null) - { - _workOrder.AfterSave+=new EventHandler(OnEntityAfterSave); - } - this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); - } - // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor - // __LLBLGENPRO_USER_CODE_REGION_END - } - - - /// Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed. - /// The fieldindex. - protected override void PerformDesyncSetupFKFieldChange(int fieldIndex) - { - switch((WorkOrderRoutingFieldIndex)fieldIndex) - { - case WorkOrderRoutingFieldIndex.LocationId: - DesetupSyncLocation(true, false); - break; - case WorkOrderRoutingFieldIndex.WorkOrderId: - DesetupSyncWorkOrder(true, false); - break; - default: - base.PerformDesyncSetupFKFieldChange(fieldIndex); - break; - } - } - - /// Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection. - /// Name of the property. - /// Entity to set as an related entity - /// Used by prefetch path logic. - protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) - { - switch(propertyName) - { - case "Location": - this.Location = (LocationEntity)entity; - break; - case "WorkOrder": - this.WorkOrder = (WorkOrderEntity)entity; - break; - default: - this.OnSetRelatedEntityProperty(propertyName, entity); - break; - } - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - protected override RelationCollection GetRelationsForFieldOfType(string fieldName) - { - return GetRelationsForField(fieldName); - } - - /// Gets the relation objects which represent the relation the fieldName specified is mapped on. - /// Name of the field mapped onto the relation of which the relation objects have to be obtained. - /// RelationCollection with relation object(s) which represent the relation the field is maped on - internal static RelationCollection GetRelationsForField(string fieldName) - { - RelationCollection toReturn = new RelationCollection(); - switch(fieldName) - { - case "Location": - toReturn.Add(Relations.LocationEntityUsingLocationId); - break; - case "WorkOrder": - toReturn.Add(Relations.WorkOrderEntityUsingWorkOrderId); - break; - default: - break; - } - return toReturn; - } - - /// Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation - /// Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided - /// true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise - protected override bool CheckOneWayRelations(string propertyName) - { - int numberOfOneWayRelations = 0; - switch(propertyName) - { - case null: - return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); - default: - return base.CheckOneWayRelations(propertyName); - } - } - - /// Sets the internal parameter related to the fieldname passed to the instance relatedEntity. - /// Instance to set as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName) - { - switch(fieldName) - { - case "Location": - SetupSyncLocation(relatedEntity); - break; - case "WorkOrder": - SetupSyncWorkOrder(relatedEntity); - break; - default: - break; - } - } - - /// Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() - /// Instance to unset as the related entity of type entityType - /// Name of field mapped onto the relation which resolves in the instance relatedEntity - /// if set to true it will notify the manytoone side, if applicable. - protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne) - { - switch(fieldName) - { - case "Location": - DesetupSyncLocation(false, true); - break; - case "WorkOrder": - DesetupSyncWorkOrder(false, true); - break; - default: - break; - } - } - - /// Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependingRelatedEntities() - { - List toReturn = new List(); - return toReturn; - } - - /// Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These - /// entities will have to be persisted before this entity during a recursive save. - /// Collection with 0 or more IEntity2 objects, referenced by this entity - protected override List GetDependentRelatedEntities() - { - List toReturn = new List(); - if(_location!=null) - { - toReturn.Add(_location); - } - if(_workOrder!=null) - { - toReturn.Add(_workOrder); - } - return toReturn; - } - - /// Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned. - /// Collection with 0 or more IEntityCollection2 objects, referenced by this entity - protected override List GetMemberEntityCollections() - { - List toReturn = new List(); - return toReturn; - } - - /// ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest. - /// - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void GetObjectData(SerializationInfo info, StreamingContext context) - { - if (SerializationHelper.Optimization != SerializationOptimization.Fast) - { - info.AddValue("_location", (!this.MarkedForDeletion?_location:null)); - info.AddValue("_workOrder", (!this.MarkedForDeletion?_workOrder:null)); - } - // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo - // __LLBLGENPRO_USER_CODE_REGION_END - base.GetObjectData(info, context); - } - - - - /// Gets a list of all the EntityRelation objects the type of this instance has. - /// A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded. - protected override List GetAllRelations() - { - return new WorkOrderRoutingRelations().GetAllRelations(); - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Location' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoLocation() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(LocationFields.LocationId, null, ComparisonOperator.Equal, this.LocationId)); - return bucket; - } - - /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'WorkOrder' to this entity. - /// - public virtual IRelationPredicateBucket GetRelationInfoWorkOrder() - { - IRelationPredicateBucket bucket = new RelationPredicateBucket(); - bucket.PredicateExpression.Add(new FieldCompareValuePredicate(WorkOrderFields.WorkOrderId, null, ComparisonOperator.Equal, this.WorkOrderId)); - return bucket; - } - - - /// Creates a new instance of the factory related to this entity - protected override IEntityFactory2 CreateEntityFactory() - { - return EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderRoutingEntityFactory)); - } - - /// Adds the member collections to the collections queue (base first) - /// The collections queue. - protected override void AddToMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.AddToMemberEntityCollectionsQueue(collectionsQueue); - } - - /// Gets the member collections queue from the queue (base first) - /// The collections queue. - protected override void GetFromMemberEntityCollectionsQueue(Queue collectionsQueue) - { - base.GetFromMemberEntityCollectionsQueue(collectionsQueue); - - } - - /// Determines whether the entity has populated member collections - /// true if the entity has populated member collections. - protected override bool HasPopulatedMemberEntityCollections() - { - bool toReturn = false; - return toReturn ? true : base.HasPopulatedMemberEntityCollections(); - } - - /// Creates the member entity collections queue. - /// The collections queue. - /// The required queue. - protected override void CreateMemberEntityCollectionsQueue(Queue collectionsQueue, Queue requiredQueue) - { - base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue); - } - - /// Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element. - /// Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null - protected override Dictionary GetRelatedData() - { - Dictionary toReturn = new Dictionary(); - toReturn.Add("Location", _location); - toReturn.Add("WorkOrder", _workOrder); - return toReturn; - } - - /// Initializes the class members - private void InitClassMembers() - { - PerformDependencyInjection(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers - // __LLBLGENPRO_USER_CODE_REGION_END - OnInitClassMembersComplete(); - } - - - #region Custom Property Hashtable Setup - /// Initializes the hashtables for the entity type and entity field custom properties. - private static void SetupCustomPropertyHashtables() - { - _customProperties = new Dictionary(); - _fieldsCustomProperties = new Dictionary>(); - Dictionary fieldHashtable; - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ActualCost", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ActualEndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ActualResourceHrs", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ActualStartDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("LocationId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("OperationSequence", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("PlannedCost", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ProductId", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ScheduledEndDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("ScheduledStartDate", fieldHashtable); - fieldHashtable = new Dictionary(); - _fieldsCustomProperties.Add("WorkOrderId", fieldHashtable); - } - #endregion - - /// Removes the sync logic for member _location - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncLocation(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _location, new PropertyChangedEventHandler(OnLocationPropertyChanged), "Location", "WorkOrderRoutings", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRoutingRelations.LocationEntityUsingLocationIdStatic, true, new int[] { (int)WorkOrderRoutingFieldIndex.LocationId }); - } - - /// setups the sync logic for member _location - /// Instance to set as the related entity of type entityType - private void SetupSyncLocation(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _location, new PropertyChangedEventHandler( OnLocationPropertyChanged ), "Location", "WorkOrderRoutings", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRoutingRelations.LocationEntityUsingLocationIdStatic, true, new string[] { }, new int[] { (int)WorkOrderRoutingFieldIndex.LocationId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnLocationPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Removes the sync logic for member _workOrder - /// If set to true, it will call the related entity's UnsetRelatedEntity method - /// if set to true it will also reset the FK fields pointing to the related entity - private void DesetupSyncWorkOrder(bool signalRelatedEntity, bool resetFKFields) - { - DesetupSync(signalRelatedEntity, resetFKFields, ref _workOrder, new PropertyChangedEventHandler(OnWorkOrderPropertyChanged), "WorkOrder", "WorkOrderRoutings", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRoutingRelations.WorkOrderEntityUsingWorkOrderIdStatic, true, new int[] { (int)WorkOrderRoutingFieldIndex.WorkOrderId }); - } - - /// setups the sync logic for member _workOrder - /// Instance to set as the related entity of type entityType - private void SetupSyncWorkOrder(IEntityCore relatedEntity) - { - SetupSync(relatedEntity, ref _workOrder, new PropertyChangedEventHandler( OnWorkOrderPropertyChanged ), "WorkOrder", "WorkOrderRoutings", AdventureWorks.Dal.Adapter.v53.RelationClasses.StaticWorkOrderRoutingRelations.WorkOrderEntityUsingWorkOrderIdStatic, true, new string[] { }, new int[] { (int)WorkOrderRoutingFieldIndex.WorkOrderId }); - } - - /// Handles property change events of properties in a related entity. - /// - /// - private void OnWorkOrderPropertyChanged( object sender, PropertyChangedEventArgs e ) - { - switch( e.PropertyName ) - { - default: - break; - } - } - - /// Initializes the class with empty data, as if it is a new Entity. - /// The validator object for this WorkOrderRoutingEntity - /// Fields of this entity - private void InitClassEmpty(IValidator validator, IEntityFields2 fields) - { - OnInitializing(); - this.Fields = fields ?? CreateFields(); - this.Validator = validator; - InitClassMembers(); - - // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty - // __LLBLGENPRO_USER_CODE_REGION_END - - OnInitialized(); - - } - - #region Class Property Declarations - /// The relations object holding all relations of this entity with other entity classes. - public static WorkOrderRoutingRelations Relations - { - get { return new WorkOrderRoutingRelations(); } - } - - /// The custom properties for this entity type. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary CustomProperties - { - get { return _customProperties;} - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Location' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathLocation - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(LocationEntityFactory))), (IEntityRelation)GetRelationsForField("Location")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity, 0, null, null, null, null, "Location", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrder' for this entity. - /// Ready to use IPrefetchPathElement2 implementation. - public static IPrefetchPathElement2 PrefetchPathWorkOrder - { - get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(WorkOrderEntityFactory))), (IEntityRelation)GetRelationsForField("WorkOrder")[0], (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity, (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity, 0, null, null, null, null, "WorkOrder", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); } - } - - - /// The custom properties for the type of this entity instance. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary CustomPropertiesOfType - { - get { return CustomProperties;} - } - - /// The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - public static Dictionary> FieldsCustomProperties - { - get { return _fieldsCustomProperties;} - } - - /// The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. - /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. - [Browsable(false), XmlIgnore] - protected override Dictionary> FieldsCustomPropertiesOfType - { - get { return FieldsCustomProperties;} - } - - /// The ActualCost property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ActualCost"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ActualCost - { - get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualCost, false); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ActualCost, value); } - } - - /// The ActualEndDate property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ActualEndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ActualEndDate - { - get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualEndDate, false); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ActualEndDate, value); } - } - - /// The ActualResourceHrs property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ActualResourceHrs"
- /// Table field type characteristics (type, precision, scale, length): Decimal, 9, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ActualResourceHrs - { - get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualResourceHrs, false); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ActualResourceHrs, value); } - } - - /// The ActualStartDate property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ActualStartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
- public virtual Nullable ActualStartDate - { - get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualStartDate, false); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ActualStartDate, value); } - } - - /// The LocationId property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."LocationID"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Int16 LocationId - { - get { return (System.Int16)GetValue((int)WorkOrderRoutingFieldIndex.LocationId, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.LocationId, value); } - } - - /// The ModifiedDate property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ModifiedDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ModifiedDate - { - get { return (System.DateTime)GetValue((int)WorkOrderRoutingFieldIndex.ModifiedDate, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ModifiedDate, value); } - } - - /// The OperationSequence property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."OperationSequence"
- /// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int16 OperationSequence - { - get { return (System.Int16)GetValue((int)WorkOrderRoutingFieldIndex.OperationSequence, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.OperationSequence, value); } - } - - /// The PlannedCost property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."PlannedCost"
- /// Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.Decimal PlannedCost - { - get { return (System.Decimal)GetValue((int)WorkOrderRoutingFieldIndex.PlannedCost, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.PlannedCost, value); } - } - - /// The ProductId property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ProductID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 ProductId - { - get { return (System.Int32)GetValue((int)WorkOrderRoutingFieldIndex.ProductId, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ProductId, value); } - } - - /// The ScheduledEndDate property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ScheduledEndDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ScheduledEndDate - { - get { return (System.DateTime)GetValue((int)WorkOrderRoutingFieldIndex.ScheduledEndDate, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ScheduledEndDate, value); } - } - - /// The ScheduledStartDate property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."ScheduledStartDate"
- /// Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
- public virtual System.DateTime ScheduledStartDate - { - get { return (System.DateTime)GetValue((int)WorkOrderRoutingFieldIndex.ScheduledStartDate, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.ScheduledStartDate, value); } - } - - /// The WorkOrderId property of the Entity WorkOrderRouting

- /// Mapped on table field: "WorkOrderRouting"."WorkOrderID"
- /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0
- /// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
- public virtual System.Int32 WorkOrderId - { - get { return (System.Int32)GetValue((int)WorkOrderRoutingFieldIndex.WorkOrderId, true); } - set { SetValue((int)WorkOrderRoutingFieldIndex.WorkOrderId, value); } - } - - /// Gets / sets related entity of type 'LocationEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual LocationEntity Location - { - get { return _location; } - set - { - if(this.IsDeserializing) - { - SetupSyncLocation(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "WorkOrderRoutings", "Location", _location, true); - } - } - } - - /// Gets / sets related entity of type 'WorkOrderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

- [Browsable(false)] - public virtual WorkOrderEntity WorkOrder - { - get { return _workOrder; } - set - { - if(this.IsDeserializing) - { - SetupSyncWorkOrder(value); - } - else - { - SetSingleRelatedEntityNavigator(value, "WorkOrderRoutings", "WorkOrder", _workOrder, true); - } - } - } - - /// Gets the type of the hierarchy this entity is in. - protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType - { - get { return InheritanceHierarchyType.None;} - } - - /// Gets or sets a value indicating whether this entity is a subtype - protected override bool LLBLGenProIsSubType - { - get { return false;} - } - - /// Returns the AdventureWorks.Dal.Adapter.v53.EntityType enum value for this entity. - [Browsable(false), XmlIgnore] - protected override int LLBLGenProEntityTypeValue - { - get { return (int)AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity; } - } - - #endregion - - - #region Custom Entity code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFactories.cs b/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFactories.cs deleted file mode 100644 index fc997825..00000000 --- a/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFactories.cs +++ /dev/null @@ -1,1853 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53.EntityClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.FactoryClasses -{ - - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - - /// general base class for the generated factories - [Serializable] - public partial class EntityFactoryBase2 : EntityFactoryCore2 - where TEntity : EntityBase2, IEntity2 - { - private readonly AdventureWorks.Dal.Adapter.v53.EntityType _typeOfEntity; - private readonly bool _isInHierarchy; - - /// CTor - /// Name of the entity. - /// The type of entity. - /// If true, the entity of this factory is in an inheritance hierarchy, false otherwise - public EntityFactoryBase2(string entityName, AdventureWorks.Dal.Adapter.v53.EntityType typeOfEntity, bool isInHierarchy) : base(entityName) - { - _typeOfEntity = typeOfEntity; - _isInHierarchy = isInHierarchy; - } - - /// Creates, using the generated EntityFieldsFactory, the IEntityFields2 object for the entity to create. - /// Empty IEntityFields2 object. - public override IEntityFields2 CreateFields() - { - return EntityFieldsFactory.CreateEntityFieldsObject(_typeOfEntity); - } - - /// Creates a new entity instance using the GeneralEntityFactory in the generated code, using the passed in entitytype value - /// The entity type value of the entity to create an instance for. - /// new IEntity instance - public override IEntity2 CreateEntityFromEntityTypeValue(int entityTypeValue) - { - return GeneralEntityFactory.Create((AdventureWorks.Dal.Adapter.v53.EntityType)entityTypeValue); - } - - /// Creates the relations collection to the entity to join all targets so this entity can be fetched. - /// The object alias to use for the elements in the relations. - /// null if the entity isn't in a hierarchy of type TargetPerEntity, otherwise the relations collection needed to join all targets together to fetch all subtypes of this entity and this entity itself - public override IRelationCollection CreateHierarchyRelations(string objectAlias) - { - return InheritanceInfoProviderSingleton.GetInstance().GetHierarchyRelations(this.ForEntityName, objectAlias); - } - - /// This method retrieves, using the InheritanceInfoprovider, the factory for the entity represented by the values passed in. - /// Field values read from the db, to determine which factory to return, based on the field values passed in. - /// indexes into values where per entity type their own fields start. - /// the factory for the entity which is represented by the values passed in. - public override IEntityFactory2 GetEntityFactory(object[] fieldValues, Dictionary entityFieldStartIndexesPerEntity) - { - IEntityFactory2 toReturn = (IEntityFactory2)InheritanceInfoProviderSingleton.GetInstance().GetEntityFactory(this.ForEntityName, fieldValues, entityFieldStartIndexesPerEntity); - if(toReturn == null) - { - toReturn = this; - } - return toReturn; - } - - /// Gets a predicateexpression which filters on the entity with type belonging to this factory. - /// Flag to produce a NOT filter, (true), or a normal filter (false). - /// The object alias to use for the predicate(s). - /// ready to use predicateexpression, or an empty predicate expression if the belonging entity isn't a hierarchical type. - public override IPredicateExpression GetEntityTypeFilter(bool negate, string objectAlias) - { - return InheritanceInfoProviderSingleton.GetInstance().GetEntityTypeFilter(this.ForEntityName, objectAlias, negate); - } - - /// Creates a new generic EntityCollection(Of T) for the entity which this factory belongs to. - /// ready to use generic EntityCollection(Of T) with this factory set as the factory - public override IEntityCollection2 CreateEntityCollection() - { - return new EntityCollection(this); - } - - /// Creates the hierarchy fields for the entity to which this factory belongs. - /// IEntityFields2 object with the fields of all the entities in teh hierarchy of this entity or the fields of this entity if the entity isn't in a hierarchy. - public override IEntityFields2 CreateHierarchyFields() - { - return _isInHierarchy ? new EntityFields2(InheritanceInfoProviderSingleton.GetInstance().GetHierarchyFields(this.ForEntityName), InheritanceInfoProviderSingleton.GetInstance(), null) : base.CreateHierarchyFields(); - } - } - - /// Factory to create new, empty AddressEntity objects. - [Serializable] - public partial class AddressEntityFactory : EntityFactoryBase2 { - /// CTor - public AddressEntityFactory() : base("AddressEntity", AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity, false) { } - - /// Creates a new AddressEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new AddressEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewAddressUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty AddressTypeEntity objects. - [Serializable] - public partial class AddressTypeEntityFactory : EntityFactoryBase2 { - /// CTor - public AddressTypeEntityFactory() : base("AddressTypeEntity", AdventureWorks.Dal.Adapter.v53.EntityType.AddressTypeEntity, false) { } - - /// Creates a new AddressTypeEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new AddressTypeEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewAddressTypeUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty BillOfMaterialEntity objects. - [Serializable] - public partial class BillOfMaterialEntityFactory : EntityFactoryBase2 { - /// CTor - public BillOfMaterialEntityFactory() : base("BillOfMaterialEntity", AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity, false) { } - - /// Creates a new BillOfMaterialEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new BillOfMaterialEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewBillOfMaterialUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty BusinessEntityEntity objects. - [Serializable] - public partial class BusinessEntityEntityFactory : EntityFactoryBase2 { - /// CTor - public BusinessEntityEntityFactory() : base("BusinessEntityEntity", AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity, false) { } - - /// Creates a new BusinessEntityEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new BusinessEntityEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewBusinessEntityUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty BusinessEntityAddressEntity objects. - [Serializable] - public partial class BusinessEntityAddressEntityFactory : EntityFactoryBase2 { - /// CTor - public BusinessEntityAddressEntityFactory() : base("BusinessEntityAddressEntity", AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity, false) { } - - /// Creates a new BusinessEntityAddressEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new BusinessEntityAddressEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewBusinessEntityAddressUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty BusinessEntityContactEntity objects. - [Serializable] - public partial class BusinessEntityContactEntityFactory : EntityFactoryBase2 { - /// CTor - public BusinessEntityContactEntityFactory() : base("BusinessEntityContactEntity", AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity, false) { } - - /// Creates a new BusinessEntityContactEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new BusinessEntityContactEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewBusinessEntityContactUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ContactCreditCardEntity objects. - [Serializable] - public partial class ContactCreditCardEntityFactory : EntityFactoryBase2 { - /// CTor - public ContactCreditCardEntityFactory() : base("ContactCreditCardEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity, false) { } - - /// Creates a new ContactCreditCardEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ContactCreditCardEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewContactCreditCardUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ContactTypeEntity objects. - [Serializable] - public partial class ContactTypeEntityFactory : EntityFactoryBase2 { - /// CTor - public ContactTypeEntityFactory() : base("ContactTypeEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ContactTypeEntity, false) { } - - /// Creates a new ContactTypeEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ContactTypeEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewContactTypeUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty CountryRegionEntity objects. - [Serializable] - public partial class CountryRegionEntityFactory : EntityFactoryBase2 { - /// CTor - public CountryRegionEntityFactory() : base("CountryRegionEntity", AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity, false) { } - - /// Creates a new CountryRegionEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new CountryRegionEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCountryRegionUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty CountryRegionCurrencyEntity objects. - [Serializable] - public partial class CountryRegionCurrencyEntityFactory : EntityFactoryBase2 { - /// CTor - public CountryRegionCurrencyEntityFactory() : base("CountryRegionCurrencyEntity", AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity, false) { } - - /// Creates a new CountryRegionCurrencyEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new CountryRegionCurrencyEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCountryRegionCurrencyUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty CreditCardEntity objects. - [Serializable] - public partial class CreditCardEntityFactory : EntityFactoryBase2 { - /// CTor - public CreditCardEntityFactory() : base("CreditCardEntity", AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity, false) { } - - /// Creates a new CreditCardEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new CreditCardEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCreditCardUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty CultureEntity objects. - [Serializable] - public partial class CultureEntityFactory : EntityFactoryBase2 { - /// CTor - public CultureEntityFactory() : base("CultureEntity", AdventureWorks.Dal.Adapter.v53.EntityType.CultureEntity, false) { } - - /// Creates a new CultureEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new CultureEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCultureUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty CurrencyEntity objects. - [Serializable] - public partial class CurrencyEntityFactory : EntityFactoryBase2 { - /// CTor - public CurrencyEntityFactory() : base("CurrencyEntity", AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity, false) { } - - /// Creates a new CurrencyEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new CurrencyEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCurrencyUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty CurrencyRateEntity objects. - [Serializable] - public partial class CurrencyRateEntityFactory : EntityFactoryBase2 { - /// CTor - public CurrencyRateEntityFactory() : base("CurrencyRateEntity", AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity, false) { } - - /// Creates a new CurrencyRateEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new CurrencyRateEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCurrencyRateUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty CustomerEntity objects. - [Serializable] - public partial class CustomerEntityFactory : EntityFactoryBase2 { - /// CTor - public CustomerEntityFactory() : base("CustomerEntity", AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity, false) { } - - /// Creates a new CustomerEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new CustomerEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCustomerUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty DepartmentEntity objects. - [Serializable] - public partial class DepartmentEntityFactory : EntityFactoryBase2 { - /// CTor - public DepartmentEntityFactory() : base("DepartmentEntity", AdventureWorks.Dal.Adapter.v53.EntityType.DepartmentEntity, false) { } - - /// Creates a new DepartmentEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new DepartmentEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewDepartmentUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty DocumentEntity objects. - [Serializable] - public partial class DocumentEntityFactory : EntityFactoryBase2 { - /// CTor - public DocumentEntityFactory() : base("DocumentEntity", AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity, false) { } - - /// Creates a new DocumentEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new DocumentEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewDocumentUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty EmailAddressEntity objects. - [Serializable] - public partial class EmailAddressEntityFactory : EntityFactoryBase2 { - /// CTor - public EmailAddressEntityFactory() : base("EmailAddressEntity", AdventureWorks.Dal.Adapter.v53.EntityType.EmailAddressEntity, false) { } - - /// Creates a new EmailAddressEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new EmailAddressEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewEmailAddressUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty EmployeeEntity objects. - [Serializable] - public partial class EmployeeEntityFactory : EntityFactoryBase2 { - /// CTor - public EmployeeEntityFactory() : base("EmployeeEntity", AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity, false) { } - - /// Creates a new EmployeeEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new EmployeeEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewEmployeeUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty EmployeeDepartmentHistoryEntity objects. - [Serializable] - public partial class EmployeeDepartmentHistoryEntityFactory : EntityFactoryBase2 { - /// CTor - public EmployeeDepartmentHistoryEntityFactory() : base("EmployeeDepartmentHistoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity, false) { } - - /// Creates a new EmployeeDepartmentHistoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new EmployeeDepartmentHistoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewEmployeeDepartmentHistoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty EmployeePayHistoryEntity objects. - [Serializable] - public partial class EmployeePayHistoryEntityFactory : EntityFactoryBase2 { - /// CTor - public EmployeePayHistoryEntityFactory() : base("EmployeePayHistoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.EmployeePayHistoryEntity, false) { } - - /// Creates a new EmployeePayHistoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new EmployeePayHistoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewEmployeePayHistoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty IllustrationEntity objects. - [Serializable] - public partial class IllustrationEntityFactory : EntityFactoryBase2 { - /// CTor - public IllustrationEntityFactory() : base("IllustrationEntity", AdventureWorks.Dal.Adapter.v53.EntityType.IllustrationEntity, false) { } - - /// Creates a new IllustrationEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new IllustrationEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewIllustrationUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty JobCandidateEntity objects. - [Serializable] - public partial class JobCandidateEntityFactory : EntityFactoryBase2 { - /// CTor - public JobCandidateEntityFactory() : base("JobCandidateEntity", AdventureWorks.Dal.Adapter.v53.EntityType.JobCandidateEntity, false) { } - - /// Creates a new JobCandidateEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new JobCandidateEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewJobCandidateUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty LocationEntity objects. - [Serializable] - public partial class LocationEntityFactory : EntityFactoryBase2 { - /// CTor - public LocationEntityFactory() : base("LocationEntity", AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity, false) { } - - /// Creates a new LocationEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new LocationEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewLocationUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty PasswordEntity objects. - [Serializable] - public partial class PasswordEntityFactory : EntityFactoryBase2 { - /// CTor - public PasswordEntityFactory() : base("PasswordEntity", AdventureWorks.Dal.Adapter.v53.EntityType.PasswordEntity, false) { } - - /// Creates a new PasswordEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new PasswordEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewPasswordUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty PersonEntity objects. - [Serializable] - public partial class PersonEntityFactory : EntityFactoryBase2 { - /// CTor - public PersonEntityFactory() : base("PersonEntity", AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity, false) { } - - /// Creates a new PersonEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new PersonEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewPersonUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty PersonPhoneEntity objects. - [Serializable] - public partial class PersonPhoneEntityFactory : EntityFactoryBase2 { - /// CTor - public PersonPhoneEntityFactory() : base("PersonPhoneEntity", AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity, false) { } - - /// Creates a new PersonPhoneEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new PersonPhoneEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewPersonPhoneUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty PhoneNumberTypeEntity objects. - [Serializable] - public partial class PhoneNumberTypeEntityFactory : EntityFactoryBase2 { - /// CTor - public PhoneNumberTypeEntityFactory() : base("PhoneNumberTypeEntity", AdventureWorks.Dal.Adapter.v53.EntityType.PhoneNumberTypeEntity, false) { } - - /// Creates a new PhoneNumberTypeEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new PhoneNumberTypeEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewPhoneNumberTypeUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductEntity objects. - [Serializable] - public partial class ProductEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductEntityFactory() : base("ProductEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity, false) { } - - /// Creates a new ProductEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductCategoryEntity objects. - [Serializable] - public partial class ProductCategoryEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductCategoryEntityFactory() : base("ProductCategoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductCategoryEntity, false) { } - - /// Creates a new ProductCategoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductCategoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductCategoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductCostHistoryEntity objects. - [Serializable] - public partial class ProductCostHistoryEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductCostHistoryEntityFactory() : base("ProductCostHistoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductCostHistoryEntity, false) { } - - /// Creates a new ProductCostHistoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductCostHistoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductCostHistoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductDescriptionEntity objects. - [Serializable] - public partial class ProductDescriptionEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductDescriptionEntityFactory() : base("ProductDescriptionEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductDescriptionEntity, false) { } - - /// Creates a new ProductDescriptionEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductDescriptionEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductDescriptionUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductDocumentEntity objects. - [Serializable] - public partial class ProductDocumentEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductDocumentEntityFactory() : base("ProductDocumentEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity, false) { } - - /// Creates a new ProductDocumentEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductDocumentEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductDocumentUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductInventoryEntity objects. - [Serializable] - public partial class ProductInventoryEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductInventoryEntityFactory() : base("ProductInventoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity, false) { } - - /// Creates a new ProductInventoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductInventoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductInventoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductListPriceHistoryEntity objects. - [Serializable] - public partial class ProductListPriceHistoryEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductListPriceHistoryEntityFactory() : base("ProductListPriceHistoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductListPriceHistoryEntity, false) { } - - /// Creates a new ProductListPriceHistoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductListPriceHistoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductListPriceHistoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductModelEntity objects. - [Serializable] - public partial class ProductModelEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductModelEntityFactory() : base("ProductModelEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity, false) { } - - /// Creates a new ProductModelEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductModelEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductModelUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductModelIllustrationEntity objects. - [Serializable] - public partial class ProductModelIllustrationEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductModelIllustrationEntityFactory() : base("ProductModelIllustrationEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity, false) { } - - /// Creates a new ProductModelIllustrationEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductModelIllustrationEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductModelIllustrationUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductModelProductDescriptionCultureEntity objects. - [Serializable] - public partial class ProductModelProductDescriptionCultureEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductModelProductDescriptionCultureEntityFactory() : base("ProductModelProductDescriptionCultureEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity, false) { } - - /// Creates a new ProductModelProductDescriptionCultureEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductModelProductDescriptionCultureEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductModelProductDescriptionCultureUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductPhotoEntity objects. - [Serializable] - public partial class ProductPhotoEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductPhotoEntityFactory() : base("ProductPhotoEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductPhotoEntity, false) { } - - /// Creates a new ProductPhotoEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductPhotoEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductPhotoUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductProductPhotoEntity objects. - [Serializable] - public partial class ProductProductPhotoEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductProductPhotoEntityFactory() : base("ProductProductPhotoEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity, false) { } - - /// Creates a new ProductProductPhotoEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductProductPhotoEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductProductPhotoUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductReviewEntity objects. - [Serializable] - public partial class ProductReviewEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductReviewEntityFactory() : base("ProductReviewEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductReviewEntity, false) { } - - /// Creates a new ProductReviewEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductReviewEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductReviewUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductSubcategoryEntity objects. - [Serializable] - public partial class ProductSubcategoryEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductSubcategoryEntityFactory() : base("ProductSubcategoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity, false) { } - - /// Creates a new ProductSubcategoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductSubcategoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductSubcategoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ProductVendorEntity objects. - [Serializable] - public partial class ProductVendorEntityFactory : EntityFactoryBase2 { - /// CTor - public ProductVendorEntityFactory() : base("ProductVendorEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity, false) { } - - /// Creates a new ProductVendorEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ProductVendorEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductVendorUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty PurchaseOrderDetailEntity objects. - [Serializable] - public partial class PurchaseOrderDetailEntityFactory : EntityFactoryBase2 { - /// CTor - public PurchaseOrderDetailEntityFactory() : base("PurchaseOrderDetailEntity", AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity, false) { } - - /// Creates a new PurchaseOrderDetailEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new PurchaseOrderDetailEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewPurchaseOrderDetailUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty PurchaseOrderHeaderEntity objects. - [Serializable] - public partial class PurchaseOrderHeaderEntityFactory : EntityFactoryBase2 { - /// CTor - public PurchaseOrderHeaderEntityFactory() : base("PurchaseOrderHeaderEntity", AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity, false) { } - - /// Creates a new PurchaseOrderHeaderEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new PurchaseOrderHeaderEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewPurchaseOrderHeaderUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesOrderDetailEntity objects. - [Serializable] - public partial class SalesOrderDetailEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesOrderDetailEntityFactory() : base("SalesOrderDetailEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity, false) { } - - /// Creates a new SalesOrderDetailEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesOrderDetailEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesOrderDetailUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesOrderHeaderEntity objects. - [Serializable] - public partial class SalesOrderHeaderEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesOrderHeaderEntityFactory() : base("SalesOrderHeaderEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity, false) { } - - /// Creates a new SalesOrderHeaderEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesOrderHeaderEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesOrderHeaderUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesOrderHeaderSalesReasonEntity objects. - [Serializable] - public partial class SalesOrderHeaderSalesReasonEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesOrderHeaderSalesReasonEntityFactory() : base("SalesOrderHeaderSalesReasonEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity, false) { } - - /// Creates a new SalesOrderHeaderSalesReasonEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesOrderHeaderSalesReasonEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesOrderHeaderSalesReasonUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesPersonEntity objects. - [Serializable] - public partial class SalesPersonEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesPersonEntityFactory() : base("SalesPersonEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity, false) { } - - /// Creates a new SalesPersonEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesPersonEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesPersonUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesPersonQuotaHistoryEntity objects. - [Serializable] - public partial class SalesPersonQuotaHistoryEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesPersonQuotaHistoryEntityFactory() : base("SalesPersonQuotaHistoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonQuotaHistoryEntity, false) { } - - /// Creates a new SalesPersonQuotaHistoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesPersonQuotaHistoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesPersonQuotaHistoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesReasonEntity objects. - [Serializable] - public partial class SalesReasonEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesReasonEntityFactory() : base("SalesReasonEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesReasonEntity, false) { } - - /// Creates a new SalesReasonEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesReasonEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesReasonUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesTaxRateEntity objects. - [Serializable] - public partial class SalesTaxRateEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesTaxRateEntityFactory() : base("SalesTaxRateEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesTaxRateEntity, false) { } - - /// Creates a new SalesTaxRateEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesTaxRateEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesTaxRateUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesTerritoryEntity objects. - [Serializable] - public partial class SalesTerritoryEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesTerritoryEntityFactory() : base("SalesTerritoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity, false) { } - - /// Creates a new SalesTerritoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesTerritoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesTerritoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SalesTerritoryHistoryEntity objects. - [Serializable] - public partial class SalesTerritoryHistoryEntityFactory : EntityFactoryBase2 { - /// CTor - public SalesTerritoryHistoryEntityFactory() : base("SalesTerritoryHistoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity, false) { } - - /// Creates a new SalesTerritoryHistoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SalesTerritoryHistoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSalesTerritoryHistoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ScrapReasonEntity objects. - [Serializable] - public partial class ScrapReasonEntityFactory : EntityFactoryBase2 { - /// CTor - public ScrapReasonEntityFactory() : base("ScrapReasonEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ScrapReasonEntity, false) { } - - /// Creates a new ScrapReasonEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ScrapReasonEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewScrapReasonUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ShiftEntity objects. - [Serializable] - public partial class ShiftEntityFactory : EntityFactoryBase2 { - /// CTor - public ShiftEntityFactory() : base("ShiftEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ShiftEntity, false) { } - - /// Creates a new ShiftEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ShiftEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewShiftUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ShipMethodEntity objects. - [Serializable] - public partial class ShipMethodEntityFactory : EntityFactoryBase2 { - /// CTor - public ShipMethodEntityFactory() : base("ShipMethodEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity, false) { } - - /// Creates a new ShipMethodEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ShipMethodEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewShipMethodUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty ShoppingCartItemEntity objects. - [Serializable] - public partial class ShoppingCartItemEntityFactory : EntityFactoryBase2 { - /// CTor - public ShoppingCartItemEntityFactory() : base("ShoppingCartItemEntity", AdventureWorks.Dal.Adapter.v53.EntityType.ShoppingCartItemEntity, false) { } - - /// Creates a new ShoppingCartItemEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new ShoppingCartItemEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewShoppingCartItemUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SpecialOfferEntity objects. - [Serializable] - public partial class SpecialOfferEntityFactory : EntityFactoryBase2 { - /// CTor - public SpecialOfferEntityFactory() : base("SpecialOfferEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferEntity, false) { } - - /// Creates a new SpecialOfferEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SpecialOfferEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSpecialOfferUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty SpecialOfferProductEntity objects. - [Serializable] - public partial class SpecialOfferProductEntityFactory : EntityFactoryBase2 { - /// CTor - public SpecialOfferProductEntityFactory() : base("SpecialOfferProductEntity", AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity, false) { } - - /// Creates a new SpecialOfferProductEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new SpecialOfferProductEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewSpecialOfferProductUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty StateProvinceEntity objects. - [Serializable] - public partial class StateProvinceEntityFactory : EntityFactoryBase2 { - /// CTor - public StateProvinceEntityFactory() : base("StateProvinceEntity", AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity, false) { } - - /// Creates a new StateProvinceEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new StateProvinceEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewStateProvinceUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty StoreEntity objects. - [Serializable] - public partial class StoreEntityFactory : EntityFactoryBase2 { - /// CTor - public StoreEntityFactory() : base("StoreEntity", AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity, false) { } - - /// Creates a new StoreEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new StoreEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewStoreUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty TransactionHistoryEntity objects. - [Serializable] - public partial class TransactionHistoryEntityFactory : EntityFactoryBase2 { - /// CTor - public TransactionHistoryEntityFactory() : base("TransactionHistoryEntity", AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryEntity, false) { } - - /// Creates a new TransactionHistoryEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new TransactionHistoryEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewTransactionHistoryUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty TransactionHistoryArchiveEntity objects. - [Serializable] - public partial class TransactionHistoryArchiveEntityFactory : EntityFactoryBase2 { - /// CTor - public TransactionHistoryArchiveEntityFactory() : base("TransactionHistoryArchiveEntity", AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryArchiveEntity, false) { } - - /// Creates a new TransactionHistoryArchiveEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new TransactionHistoryArchiveEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewTransactionHistoryArchiveUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty UnitMeasureEntity objects. - [Serializable] - public partial class UnitMeasureEntityFactory : EntityFactoryBase2 { - /// CTor - public UnitMeasureEntityFactory() : base("UnitMeasureEntity", AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity, false) { } - - /// Creates a new UnitMeasureEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new UnitMeasureEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewUnitMeasureUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty VendorEntity objects. - [Serializable] - public partial class VendorEntityFactory : EntityFactoryBase2 { - /// CTor - public VendorEntityFactory() : base("VendorEntity", AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity, false) { } - - /// Creates a new VendorEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new VendorEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewVendorUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty WorkOrderEntity objects. - [Serializable] - public partial class WorkOrderEntityFactory : EntityFactoryBase2 { - /// CTor - public WorkOrderEntityFactory() : base("WorkOrderEntity", AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity, false) { } - - /// Creates a new WorkOrderEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new WorkOrderEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewWorkOrderUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty WorkOrderRoutingEntity objects. - [Serializable] - public partial class WorkOrderRoutingEntityFactory : EntityFactoryBase2 { - /// CTor - public WorkOrderRoutingEntityFactory() : base("WorkOrderRoutingEntity", AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity, false) { } - - /// Creates a new WorkOrderRoutingEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object. - /// Populated IEntityFields2 object for the new IEntity2 to create - /// Fully created and populated (due to the IEntityFields2 object) IEntity2 object - public override IEntity2 Create(IEntityFields2 fields) { - IEntity2 toReturn = new WorkOrderRoutingEntity(fields); - // __LLBLGENPRO_USER_CODE_REGION_START CreateNewWorkOrderRoutingUsingFields - // __LLBLGENPRO_USER_CODE_REGION_END - return toReturn; - } - #region Included Code - - #endregion - } - - /// Factory to create new, empty Entity objects based on the entity type specified. Uses entity specific factory objects - [Serializable] - public partial class GeneralEntityFactory - { - /// Creates a new, empty Entity object of the type specified - /// The entity type to create. - /// A new, empty Entity object. - public static IEntity2 Create(AdventureWorks.Dal.Adapter.v53.EntityType entityTypeToCreate) - { - IEntityFactory2 factoryToUse = null; - switch(entityTypeToCreate) - { - case AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity: - factoryToUse = new AddressEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.AddressTypeEntity: - factoryToUse = new AddressTypeEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity: - factoryToUse = new BillOfMaterialEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity: - factoryToUse = new BusinessEntityEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity: - factoryToUse = new BusinessEntityAddressEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity: - factoryToUse = new BusinessEntityContactEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity: - factoryToUse = new ContactCreditCardEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ContactTypeEntity: - factoryToUse = new ContactTypeEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity: - factoryToUse = new CountryRegionEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity: - factoryToUse = new CountryRegionCurrencyEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity: - factoryToUse = new CreditCardEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CultureEntity: - factoryToUse = new CultureEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity: - factoryToUse = new CurrencyEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity: - factoryToUse = new CurrencyRateEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity: - factoryToUse = new CustomerEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.DepartmentEntity: - factoryToUse = new DepartmentEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity: - factoryToUse = new DocumentEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmailAddressEntity: - factoryToUse = new EmailAddressEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity: - factoryToUse = new EmployeeEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity: - factoryToUse = new EmployeeDepartmentHistoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmployeePayHistoryEntity: - factoryToUse = new EmployeePayHistoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.IllustrationEntity: - factoryToUse = new IllustrationEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.JobCandidateEntity: - factoryToUse = new JobCandidateEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity: - factoryToUse = new LocationEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PasswordEntity: - factoryToUse = new PasswordEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity: - factoryToUse = new PersonEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity: - factoryToUse = new PersonPhoneEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PhoneNumberTypeEntity: - factoryToUse = new PhoneNumberTypeEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity: - factoryToUse = new ProductEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductCategoryEntity: - factoryToUse = new ProductCategoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductCostHistoryEntity: - factoryToUse = new ProductCostHistoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductDescriptionEntity: - factoryToUse = new ProductDescriptionEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity: - factoryToUse = new ProductDocumentEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity: - factoryToUse = new ProductInventoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductListPriceHistoryEntity: - factoryToUse = new ProductListPriceHistoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity: - factoryToUse = new ProductModelEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity: - factoryToUse = new ProductModelIllustrationEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity: - factoryToUse = new ProductModelProductDescriptionCultureEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductPhotoEntity: - factoryToUse = new ProductPhotoEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity: - factoryToUse = new ProductProductPhotoEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductReviewEntity: - factoryToUse = new ProductReviewEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity: - factoryToUse = new ProductSubcategoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity: - factoryToUse = new ProductVendorEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity: - factoryToUse = new PurchaseOrderDetailEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity: - factoryToUse = new PurchaseOrderHeaderEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity: - factoryToUse = new SalesOrderDetailEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity: - factoryToUse = new SalesOrderHeaderEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity: - factoryToUse = new SalesOrderHeaderSalesReasonEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity: - factoryToUse = new SalesPersonEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonQuotaHistoryEntity: - factoryToUse = new SalesPersonQuotaHistoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesReasonEntity: - factoryToUse = new SalesReasonEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesTaxRateEntity: - factoryToUse = new SalesTaxRateEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity: - factoryToUse = new SalesTerritoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity: - factoryToUse = new SalesTerritoryHistoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ScrapReasonEntity: - factoryToUse = new ScrapReasonEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ShiftEntity: - factoryToUse = new ShiftEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity: - factoryToUse = new ShipMethodEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ShoppingCartItemEntity: - factoryToUse = new ShoppingCartItemEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferEntity: - factoryToUse = new SpecialOfferEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity: - factoryToUse = new SpecialOfferProductEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity: - factoryToUse = new StateProvinceEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity: - factoryToUse = new StoreEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryEntity: - factoryToUse = new TransactionHistoryEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryArchiveEntity: - factoryToUse = new TransactionHistoryArchiveEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity: - factoryToUse = new UnitMeasureEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity: - factoryToUse = new VendorEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity: - factoryToUse = new WorkOrderEntityFactory(); - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity: - factoryToUse = new WorkOrderRoutingEntityFactory(); - break; - } - IEntity2 toReturn = null; - if(factoryToUse != null) - { - toReturn = factoryToUse.Create(); - } - return toReturn; - } - } - - /// Class which is used to obtain the entity factory based on the .NET type of the entity. - [Serializable] - public static class EntityFactoryFactory - { - private static Dictionary _factoryPerType = new Dictionary(); - - /// Initializes the class. - static EntityFactoryFactory() - { - Array entityTypeValues = Enum.GetValues(typeof(AdventureWorks.Dal.Adapter.v53.EntityType)); - foreach(int entityTypeValue in entityTypeValues) - { - IEntity2 dummy = GeneralEntityFactory.Create((AdventureWorks.Dal.Adapter.v53.EntityType)entityTypeValue); - _factoryPerType.Add(dummy.GetType(), dummy.GetEntityFactory()); - } - } - - /// Gets the factory of the entity with the .NET type specified - /// The type of entity. - /// factory to use or null if not found - public static IEntityFactory2 GetFactory(Type typeOfEntity) - { - IEntityFactory2 toReturn = null; - _factoryPerType.TryGetValue(typeOfEntity, out toReturn); - return toReturn; - } - - /// Gets the factory of the entity with the AdventureWorks.Dal.Adapter.v53.EntityType specified - /// The type of entity. - /// factory to use or null if not found - public static IEntityFactory2 GetFactory(AdventureWorks.Dal.Adapter.v53.EntityType typeOfEntity) - { - return GetFactory(GeneralEntityFactory.Create(typeOfEntity).GetType()); - } - } - - /// Element creator for creating project elements from somewhere else, like inside Linq providers. - public class ElementCreator : ElementCreatorBase, IElementCreator2 - { - /// Gets the factory of the Entity type with the AdventureWorks.Dal.Adapter.v53.EntityType value passed in - /// The entity type value. - /// the entity factory of the entity type or null if not found - public IEntityFactory2 GetFactory(int entityTypeValue) - { - return (IEntityFactory2)this.GetFactoryImpl(entityTypeValue); - } - - /// Gets the factory of the Entity type with the .NET type passed in - /// The type of entity. - /// the entity factory of the entity type or null if not found - public IEntityFactory2 GetFactory(Type typeOfEntity) - { - return (IEntityFactory2)this.GetFactoryImpl(typeOfEntity); - } - - /// Creates a new resultset fields object with the number of field slots reserved as specified - /// The number of fields. - /// ready to use resultsetfields object - public IEntityFields2 CreateResultsetFields(int numberOfFields) - { - return new ResultsetFields(numberOfFields); - } - - /// Obtains the inheritance info provider instance from the singleton - /// The singleton instance of the inheritance info provider - public override IInheritanceInfoProvider ObtainInheritanceInfoProviderInstance() - { - return InheritanceInfoProviderSingleton.GetInstance(); - } - - /// Gets the typed view fields of the typedview with the typedviewenum type value specified. - /// The typed view type enum value. - /// - public override IEntityFieldsCore GetTypedViewFields(int typedViewTypeEnumValue) - { - return EntityFieldsFactory.CreateTypedViewEntityFieldsObject((TypedViewType)typedViewTypeEnumValue); - } - - /// Creates a new dynamic relation instance - /// The left operand. - /// ready to use dynamic relation - public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand) - { - return new DynamicRelation(leftOperand); - } - - /// Creates a new dynamic relation instance - /// The left operand. - /// Type of the join. If None is specified, Inner is assumed. - /// The right operand. - /// The on clause for the join. - /// ready to use dynamic relation - public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, IPredicate onClause) - { - return new DynamicRelation(leftOperand, joinType, rightOperand, onClause); - } - - /// Creates a new dynamic relation instance - /// The left operand. - /// Type of the join. If None is specified, Inner is assumed. - /// The right operand. - /// The alias of the left operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty. - /// The on clause for the join. - /// ready to use dynamic relation - public override IDynamicRelation CreateDynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, string aliasLeftOperand, IPredicate onClause) - { - return new DynamicRelation(leftOperand, joinType, rightOperand, aliasLeftOperand, onClause); - } - - - /// Creates a new dynamic relation instance - /// The left operand. - /// Type of the join. If None is specified, Inner is assumed. - /// Name of the entity, which is used as the right operand. - /// 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. - /// The on clause for the join. - /// ready to use dynamic relation - public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, string rightOperandEntityName, string aliasRightOperand, IPredicate onClause) - { - return new DynamicRelation(leftOperand, joinType, (AdventureWorks.Dal.Adapter.v53.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v53.EntityType), rightOperandEntityName, false), aliasRightOperand, onClause); - } - - /// Creates a new dynamic relation instance - /// Name of the entity which is used as the left operand. - /// Type of the join. If None is specified, Inner is assumed. - /// Name of the entity, which is used as the right operand. - /// The alias of the left operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty. - /// 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. - /// The on clause for the join. - /// ready to use dynamic relation - public override IDynamicRelation CreateDynamicRelation(string leftOperandEntityName, JoinHint joinType, string rightOperandEntityName, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) - { - return new DynamicRelation((AdventureWorks.Dal.Adapter.v53.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v53.EntityType), leftOperandEntityName, false), joinType, (AdventureWorks.Dal.Adapter.v53.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v53.EntityType), rightOperandEntityName, false), aliasLeftOperand, aliasRightOperand, onClause); - } - - /// Creates a new dynamic relation instance - /// The left operand. - /// Type of the join. If None is specified, Inner is assumed. - /// Name of the entity, which is used as the right operand. - /// The alias of the left operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty. - /// 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. - /// The on clause for the join. - /// ready to use dynamic relation - public override IDynamicRelation CreateDynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, string rightOperandEntityName, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) - { - return new DynamicRelation(leftOperand, joinType, (AdventureWorks.Dal.Adapter.v53.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v53.EntityType), rightOperandEntityName, false), aliasLeftOperand, aliasRightOperand, onClause); - } - - /// Implementation of the routine which gets the factory of the Entity type with the AdventureWorks.Dal.Adapter.v53.EntityType value passed in - /// The entity type value. - /// the entity factory of the entity type or null if not found - protected override IEntityFactoryCore GetFactoryImpl(int entityTypeValue) - { - return EntityFactoryFactory.GetFactory((AdventureWorks.Dal.Adapter.v53.EntityType)entityTypeValue); - } - - /// Implementation of the routine which gets the factory of the Entity type with the .NET type passed in - /// The type of entity. - /// the entity factory of the entity type or null if not found - protected override IEntityFactoryCore GetFactoryImpl(Type typeOfEntity) - { - return EntityFactoryFactory.GetFactory(typeOfEntity); - } - - } -} diff --git a/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldFactory.cs b/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldFactory.cs deleted file mode 100644 index b3482952..00000000 --- a/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldFactory.cs +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; - -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; - -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.FactoryClasses -{ - /// Factory class for IEntityField2 instances, used in IEntityFields2 instances. - public static partial class EntityFieldFactory - { - /// Creates a new IEntityField2 instance for usage in the EntityFields object for the entity related to the field index specified. - /// The field which IEntityField2 instance should be created - /// The IEntityField2 instance for the field specified in fieldIndex - public static IEntityField2 Create(Enum fieldIndex) - { - return new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo(fieldIndex)); - } - - /// Creates a new IEntityField2 instance, which represents the field objectName.fieldName - /// the name of the object the field belongs to, like CustomerEntity or OrdersTypedView - /// the name of the field to create - public static IEntityField2 Create(string objectName, string fieldName) - { - return new EntityField2(FieldInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName)); - } - - #region Included Code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldsFactory.cs b/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldsFactory.cs deleted file mode 100644 index e613a72d..00000000 --- a/LLBLGen53/DatabaseGeneric/FactoryClasses/EntityFieldsFactory.cs +++ /dev/null @@ -1,106 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using System.Collections.Generic; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.FactoryClasses -{ - /// Generates IEntityFields2 instances for different kind of Entities. - public static partial class EntityFieldsFactory - { - private static readonly Dictionary _entityTypeNamesCache = new Dictionary(); - - /// static ctor which initializes the static entity type cache. - static EntityFieldsFactory() - { - foreach(AdventureWorks.Dal.Adapter.v53.EntityType value in Enum.GetValues(typeof(AdventureWorks.Dal.Adapter.v53.EntityType))) - { - _entityTypeNamesCache.Add(value, Enum.GetName(typeof(AdventureWorks.Dal.Adapter.v53.EntityType), value)); - } - } - - /// General factory entrance method which will return an EntityFields2 object with the format generated by the factory specified - /// The type of entity the fields are for - /// The IEntityFields instance requested - public static IEntityFields2 CreateEntityFieldsObject(AdventureWorks.Dal.Adapter.v53.EntityType relatedEntityType) - { - return FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType]); - } - - /// 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. - /// the name of the entity to get the fields for. Example: "CustomerEntity" - /// array of IEntityFieldCore fields, defined in the entity with the name specified - internal static IEntityFieldCore[] CreateFields(string entityName) - { - return FieldInfoProviderSingleton.GetInstance().GetEntityFieldsArray(entityName); - } - - /// General factory entrance method which will return a TypedView EntityFields object with the format generated by the factory specified - /// The type of typed view the fields are for - /// The IEntityFields2 instance requested - public static IEntityFields2 CreateTypedViewEntityFieldsObject(TypedViewType relatedTypedViewType) - { - IEntityFields2 fieldsToReturn=null; - switch(relatedTypedViewType) - { - case TypedViewType.SohTypedView: - fieldsToReturn = CreateSohTypedViewEntityFields(); - break; - case TypedViewType.SohLinqPocoTypedView: - fieldsToReturn = CreateSohLinqPocoTypedViewEntityFields(); - break; - case TypedViewType.SohQuerySpecPocoTypedView: - fieldsToReturn = CreateSohQuerySpecPocoTypedViewEntityFields(); - break; - } - return fieldsToReturn; - } - - /// Creates a complete EntityFields instance for the SohEntity. - private static IEntityFields2 CreateSohTypedViewEntityFields() - { - IEntityFields2 fieldsToReturn = new EntityFields2((int)SohFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("SohTypedView")); - for(int i=0;i<(int)SohFieldIndex.AmountOfFields;i++) - { - fieldsToReturn[i] = EntityFieldFactory.Create((SohFieldIndex)i); - } - return fieldsToReturn; - } - - /// Creates a complete EntityFields instance for the SohLinqPocoEntity. - private static IEntityFields2 CreateSohLinqPocoTypedViewEntityFields() - { - IEntityFields2 fieldsToReturn = new EntityFields2((int)SohLinqPocoFieldIndex.AmountOfFields, null, FieldInfoProviderSingleton.GetInstance().GetFieldIndexes("SohLinqPocoTypedView")); - for(int i=0;i<(int)SohLinqPocoFieldIndex.AmountOfFields;i++) - { - fieldsToReturn[i] = EntityFieldFactory.Create((SohLinqPocoFieldIndex)i); - } - return fieldsToReturn; - } - - /// Creates a complete EntityFields instance for the SohQuerySpecPocoEntity. - 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; - } - - #region Included Code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/FactoryClasses/QueryFactory.cs b/LLBLGen53/DatabaseGeneric/FactoryClasses/QueryFactory.cs deleted file mode 100644 index 83e18d4a..00000000 --- a/LLBLGen53/DatabaseGeneric/FactoryClasses/QueryFactory.cs +++ /dev/null @@ -1,526 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -////////////////////////////////////////////////////////////// -using System; -using System.Linq; -using AdventureWorks.Dal.Adapter.v53.EntityClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; -using SD.LLBLGen.Pro.QuerySpec; - -namespace AdventureWorks.Dal.Adapter.v53.FactoryClasses -{ - /// Factory class to produce DynamicQuery instances and EntityQuery instances - public partial class QueryFactory - { - private int _aliasCounter = 0; - - /// Creates a new DynamicQuery instance with no alias set. - /// Ready to use DynamicQuery instance - public DynamicQuery Create() - { - return Create(string.Empty); - } - - /// Creates a new DynamicQuery instance with the alias specified as the alias set. - /// The alias. - /// Ready to use DynamicQuery instance - public DynamicQuery Create(string alias) - { - return new DynamicQuery(new ElementCreator(), alias, this.GetNextAliasCounterValue()); - } - - /// Creates a new DynamicQuery which wraps the specified TableValuedFunction call - /// The table valued function call to wrap. - /// toWrap wrapped in a DynamicQuery. - public DynamicQuery Create(TableValuedFunctionCall toWrap) - { - return this.Create().From(new TvfCallWrapper(toWrap)).Select(toWrap.GetFieldsAsArray().Select(f => this.Field(toWrap.Alias, f.Alias)).ToArray()); - } - - /// Creates a new EntityQuery for the entity of the type specified with no alias set. - /// The type of the entity to produce the query for. - /// ready to use EntityQuery instance - public EntityQuery Create() - where TEntity : IEntityCore - { - return Create(string.Empty); - } - - /// Creates a new EntityQuery for the entity of the type specified with the alias specified as the alias set. - /// The type of the entity to produce the query for. - /// The alias. - /// ready to use EntityQuery instance - public EntityQuery Create(string alias) - where TEntity : IEntityCore - { - return new EntityQuery(new ElementCreator(), alias, this.GetNextAliasCounterValue()); - } - - /// Creates a new field object with the name specified and of resulttype 'object'. Used for referring to aliased fields in another projection. - /// Name of the field. - /// Ready to use field object - public EntityField2 Field(string fieldName) - { - return Field(string.Empty, fieldName); - } - - /// Creates a new field object with the name specified and of resulttype 'object'. Used for referring to aliased fields in another projection. - /// The alias of the table/query to target. - /// Name of the field. - /// Ready to use field object - public EntityField2 Field(string targetAlias, string fieldName) - { - return Field(targetAlias, fieldName); - } - - /// Creates a new field object with the name specified and of resulttype 'TValue'. Used for referring to aliased fields in another projection. - /// The type of the value represented by the field. - /// Name of the field. - /// Ready to use field object - public EntityField2 Field(string fieldName) - { - return Field(string.Empty, fieldName); - } - - /// Creates a new field object with the name specified and of resulttype 'TValue'. Used for referring to aliased fields in another projection. - /// The type of the value. - /// The alias of the table/query to target. - /// Name of the field. - /// Ready to use field object - public EntityField2 Field(string targetAlias, string fieldName) - { - return new EntityField2(fieldName, targetAlias, typeof(TValue)); - } - - /// Gets the next alias counter value to produce artifical aliases with - private int GetNextAliasCounterValue() - { - _aliasCounter++; - return _aliasCounter; - } - - - /// Creates and returns a new EntityQuery for the Address entity - public EntityQuery Address - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the AddressType entity - public EntityQuery AddressType - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the BillOfMaterial entity - public EntityQuery BillOfMaterial - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the BusinessEntity entity - public EntityQuery BusinessEntity - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the BusinessEntityAddress entity - public EntityQuery BusinessEntityAddress - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the BusinessEntityContact entity - public EntityQuery BusinessEntityContact - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ContactCreditCard entity - public EntityQuery ContactCreditCard - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ContactType entity - public EntityQuery ContactType - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the CountryRegion entity - public EntityQuery CountryRegion - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the CountryRegionCurrency entity - public EntityQuery CountryRegionCurrency - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the CreditCard entity - public EntityQuery CreditCard - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Culture entity - public EntityQuery Culture - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Currency entity - public EntityQuery Currency - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the CurrencyRate entity - public EntityQuery CurrencyRate - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Customer entity - public EntityQuery Customer - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Department entity - public EntityQuery Department - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Document entity - public EntityQuery Document - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the EmailAddress entity - public EntityQuery EmailAddress - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Employee entity - public EntityQuery Employee - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the EmployeeDepartmentHistory entity - public EntityQuery EmployeeDepartmentHistory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the EmployeePayHistory entity - public EntityQuery EmployeePayHistory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Illustration entity - public EntityQuery Illustration - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the JobCandidate entity - public EntityQuery JobCandidate - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Location entity - public EntityQuery Location - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Password entity - public EntityQuery Password - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Person entity - public EntityQuery Person - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the PersonPhone entity - public EntityQuery PersonPhone - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the PhoneNumberType entity - public EntityQuery PhoneNumberType - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Product entity - public EntityQuery Product - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductCategory entity - public EntityQuery ProductCategory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductCostHistory entity - public EntityQuery ProductCostHistory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductDescription entity - public EntityQuery ProductDescription - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductDocument entity - public EntityQuery ProductDocument - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductInventory entity - public EntityQuery ProductInventory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductListPriceHistory entity - public EntityQuery ProductListPriceHistory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductModel entity - public EntityQuery ProductModel - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductModelIllustration entity - public EntityQuery ProductModelIllustration - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductModelProductDescriptionCulture entity - public EntityQuery ProductModelProductDescriptionCulture - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductPhoto entity - public EntityQuery ProductPhoto - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductProductPhoto entity - public EntityQuery ProductProductPhoto - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductReview entity - public EntityQuery ProductReview - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductSubcategory entity - public EntityQuery ProductSubcategory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ProductVendor entity - public EntityQuery ProductVendor - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the PurchaseOrderDetail entity - public EntityQuery PurchaseOrderDetail - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the PurchaseOrderHeader entity - public EntityQuery PurchaseOrderHeader - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesOrderDetail entity - public EntityQuery SalesOrderDetail - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesOrderHeader entity - public EntityQuery SalesOrderHeader - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesOrderHeaderSalesReason entity - public EntityQuery SalesOrderHeaderSalesReason - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesPerson entity - public EntityQuery SalesPerson - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesPersonQuotaHistory entity - public EntityQuery SalesPersonQuotaHistory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesReason entity - public EntityQuery SalesReason - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesTaxRate entity - public EntityQuery SalesTaxRate - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesTerritory entity - public EntityQuery SalesTerritory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SalesTerritoryHistory entity - public EntityQuery SalesTerritoryHistory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ScrapReason entity - public EntityQuery ScrapReason - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Shift entity - public EntityQuery Shift - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ShipMethod entity - public EntityQuery ShipMethod - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the ShoppingCartItem entity - public EntityQuery ShoppingCartItem - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SpecialOffer entity - public EntityQuery SpecialOffer - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the SpecialOfferProduct entity - public EntityQuery SpecialOfferProduct - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the StateProvince entity - public EntityQuery StateProvince - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Store entity - public EntityQuery Store - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the TransactionHistory entity - public EntityQuery TransactionHistory - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the TransactionHistoryArchive entity - public EntityQuery TransactionHistoryArchive - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the UnitMeasure entity - public EntityQuery UnitMeasure - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the Vendor entity - public EntityQuery Vendor - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the WorkOrder entity - public EntityQuery WorkOrder - { - get { return Create(); } - } - - /// Creates and returns a new EntityQuery for the WorkOrderRouting entity - public EntityQuery WorkOrderRouting - { - get { return Create(); } - } - - - - /// Creates and returns the query to fetch the typed view SohQuerySpecPoco - public DynamicQuery SohQuerySpecPoco - { - get { return this.Create().Select(); } - } - - } -} \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs b/LLBLGen53/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs deleted file mode 100644 index 1883074d..00000000 --- a/LLBLGen53/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs +++ /dev/null @@ -1,3162 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using SD.LLBLGen.Pro.ORMSupportClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53; - -namespace AdventureWorks.Dal.Adapter.v53.HelperClasses -{ - /// Field Creation Class for entity AddressEntity - public partial class AddressFields - { - /// Creates a new AddressEntity.AddressId field instance - public static EntityField2 AddressId - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.AddressId);} - } - /// Creates a new AddressEntity.AddressLine1 field instance - public static EntityField2 AddressLine1 - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.AddressLine1);} - } - /// Creates a new AddressEntity.AddressLine2 field instance - public static EntityField2 AddressLine2 - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.AddressLine2);} - } - /// Creates a new AddressEntity.City field instance - public static EntityField2 City - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.City);} - } - /// Creates a new AddressEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.ModifiedDate);} - } - /// Creates a new AddressEntity.PostalCode field instance - public static EntityField2 PostalCode - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.PostalCode);} - } - /// Creates a new AddressEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.Rowguid);} - } - /// Creates a new AddressEntity.SpatialLocation field instance - public static EntityField2 SpatialLocation - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.SpatialLocation);} - } - /// Creates a new AddressEntity.StateProvinceId field instance - public static EntityField2 StateProvinceId - { - get { return (EntityField2)EntityFieldFactory.Create(AddressFieldIndex.StateProvinceId);} - } - } - - /// Field Creation Class for entity AddressTypeEntity - public partial class AddressTypeFields - { - /// Creates a new AddressTypeEntity.AddressTypeId field instance - public static EntityField2 AddressTypeId - { - get { return (EntityField2)EntityFieldFactory.Create(AddressTypeFieldIndex.AddressTypeId);} - } - /// Creates a new AddressTypeEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(AddressTypeFieldIndex.ModifiedDate);} - } - /// Creates a new AddressTypeEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(AddressTypeFieldIndex.Name);} - } - /// Creates a new AddressTypeEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(AddressTypeFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity BillOfMaterialEntity - public partial class BillOfMaterialFields - { - /// Creates a new BillOfMaterialEntity.BillOfMaterialsId field instance - public static EntityField2 BillOfMaterialsId - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.BillOfMaterialsId);} - } - /// Creates a new BillOfMaterialEntity.Bomlevel field instance - public static EntityField2 Bomlevel - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.Bomlevel);} - } - /// Creates a new BillOfMaterialEntity.ComponentId field instance - public static EntityField2 ComponentId - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.ComponentId);} - } - /// Creates a new BillOfMaterialEntity.EndDate field instance - public static EntityField2 EndDate - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.EndDate);} - } - /// Creates a new BillOfMaterialEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.ModifiedDate);} - } - /// Creates a new BillOfMaterialEntity.PerAssemblyQty field instance - public static EntityField2 PerAssemblyQty - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.PerAssemblyQty);} - } - /// Creates a new BillOfMaterialEntity.ProductAssemblyId field instance - public static EntityField2 ProductAssemblyId - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.ProductAssemblyId);} - } - /// Creates a new BillOfMaterialEntity.StartDate field instance - public static EntityField2 StartDate - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.StartDate);} - } - /// Creates a new BillOfMaterialEntity.UnitMeasureCode field instance - public static EntityField2 UnitMeasureCode - { - get { return (EntityField2)EntityFieldFactory.Create(BillOfMaterialFieldIndex.UnitMeasureCode);} - } - } - - /// Field Creation Class for entity BusinessEntityEntity - public partial class BusinessEntityFields - { - /// Creates a new BusinessEntityEntity.BusinessEntityId field instance - public static EntityField2 BusinessEntityId - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityFieldIndex.BusinessEntityId);} - } - /// Creates a new BusinessEntityEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityFieldIndex.ModifiedDate);} - } - /// Creates a new BusinessEntityEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity BusinessEntityAddressEntity - public partial class BusinessEntityAddressFields - { - /// Creates a new BusinessEntityAddressEntity.AddressId field instance - public static EntityField2 AddressId - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityAddressFieldIndex.AddressId);} - } - /// Creates a new BusinessEntityAddressEntity.AddressTypeId field instance - public static EntityField2 AddressTypeId - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityAddressFieldIndex.AddressTypeId);} - } - /// Creates a new BusinessEntityAddressEntity.BusinessEntityId field instance - public static EntityField2 BusinessEntityId - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityAddressFieldIndex.BusinessEntityId);} - } - /// Creates a new BusinessEntityAddressEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityAddressFieldIndex.ModifiedDate);} - } - /// Creates a new BusinessEntityAddressEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityAddressFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity BusinessEntityContactEntity - public partial class BusinessEntityContactFields - { - /// Creates a new BusinessEntityContactEntity.BusinessEntityId field instance - public static EntityField2 BusinessEntityId - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityContactFieldIndex.BusinessEntityId);} - } - /// Creates a new BusinessEntityContactEntity.ContactTypeId field instance - public static EntityField2 ContactTypeId - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityContactFieldIndex.ContactTypeId);} - } - /// Creates a new BusinessEntityContactEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityContactFieldIndex.ModifiedDate);} - } - /// Creates a new BusinessEntityContactEntity.PersonId field instance - public static EntityField2 PersonId - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityContactFieldIndex.PersonId);} - } - /// Creates a new BusinessEntityContactEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(BusinessEntityContactFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity ContactCreditCardEntity - public partial class ContactCreditCardFields - { - /// Creates a new ContactCreditCardEntity.ContactId field instance - public static EntityField2 ContactId - { - get { return (EntityField2)EntityFieldFactory.Create(ContactCreditCardFieldIndex.ContactId);} - } - /// Creates a new ContactCreditCardEntity.CreditCardId field instance - public static EntityField2 CreditCardId - { - get { return (EntityField2)EntityFieldFactory.Create(ContactCreditCardFieldIndex.CreditCardId);} - } - /// Creates a new ContactCreditCardEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ContactCreditCardFieldIndex.ModifiedDate);} - } - } - - /// Field Creation Class for entity ContactTypeEntity - public partial class ContactTypeFields - { - /// Creates a new ContactTypeEntity.ContactTypeId field instance - public static EntityField2 ContactTypeId - { - get { return (EntityField2)EntityFieldFactory.Create(ContactTypeFieldIndex.ContactTypeId);} - } - /// Creates a new ContactTypeEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ContactTypeFieldIndex.ModifiedDate);} - } - /// Creates a new ContactTypeEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ContactTypeFieldIndex.Name);} - } - } - - /// Field Creation Class for entity CountryRegionEntity - public partial class CountryRegionFields - { - /// Creates a new CountryRegionEntity.CountryRegionCode field instance - public static EntityField2 CountryRegionCode - { - get { return (EntityField2)EntityFieldFactory.Create(CountryRegionFieldIndex.CountryRegionCode);} - } - /// Creates a new CountryRegionEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(CountryRegionFieldIndex.ModifiedDate);} - } - /// Creates a new CountryRegionEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(CountryRegionFieldIndex.Name);} - } - } - - /// Field Creation Class for entity CountryRegionCurrencyEntity - public partial class CountryRegionCurrencyFields - { - /// Creates a new CountryRegionCurrencyEntity.CountryRegionCode field instance - public static EntityField2 CountryRegionCode - { - get { return (EntityField2)EntityFieldFactory.Create(CountryRegionCurrencyFieldIndex.CountryRegionCode);} - } - /// Creates a new CountryRegionCurrencyEntity.CurrencyCode field instance - public static EntityField2 CurrencyCode - { - get { return (EntityField2)EntityFieldFactory.Create(CountryRegionCurrencyFieldIndex.CurrencyCode);} - } - /// Creates a new CountryRegionCurrencyEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(CountryRegionCurrencyFieldIndex.ModifiedDate);} - } - } - - /// Field Creation Class for entity CreditCardEntity - public partial class CreditCardFields - { - /// Creates a new CreditCardEntity.CardNumber field instance - public static EntityField2 CardNumber - { - get { return (EntityField2)EntityFieldFactory.Create(CreditCardFieldIndex.CardNumber);} - } - /// Creates a new CreditCardEntity.CardType field instance - public static EntityField2 CardType - { - get { return (EntityField2)EntityFieldFactory.Create(CreditCardFieldIndex.CardType);} - } - /// Creates a new CreditCardEntity.CreditCardId field instance - public static EntityField2 CreditCardId - { - get { return (EntityField2)EntityFieldFactory.Create(CreditCardFieldIndex.CreditCardId);} - } - /// Creates a new CreditCardEntity.ExpMonth field instance - public static EntityField2 ExpMonth - { - get { return (EntityField2)EntityFieldFactory.Create(CreditCardFieldIndex.ExpMonth);} - } - /// Creates a new CreditCardEntity.ExpYear field instance - public static EntityField2 ExpYear - { - get { return (EntityField2)EntityFieldFactory.Create(CreditCardFieldIndex.ExpYear);} - } - /// Creates a new CreditCardEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(CreditCardFieldIndex.ModifiedDate);} - } - } - - /// Field Creation Class for entity CultureEntity - public partial class CultureFields - { - /// Creates a new CultureEntity.CultureId field instance - public static EntityField2 CultureId - { - get { return (EntityField2)EntityFieldFactory.Create(CultureFieldIndex.CultureId);} - } - /// Creates a new CultureEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(CultureFieldIndex.ModifiedDate);} - } - /// Creates a new CultureEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(CultureFieldIndex.Name);} - } - } - - /// Field Creation Class for entity CurrencyEntity - public partial class CurrencyFields - { - /// Creates a new CurrencyEntity.CurrencyCode field instance - public static EntityField2 CurrencyCode - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyFieldIndex.CurrencyCode);} - } - /// Creates a new CurrencyEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyFieldIndex.ModifiedDate);} - } - /// Creates a new CurrencyEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyFieldIndex.Name);} - } - } - - /// Field Creation Class for entity CurrencyRateEntity - public partial class CurrencyRateFields - { - /// Creates a new CurrencyRateEntity.AverageRate field instance - public static EntityField2 AverageRate - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyRateFieldIndex.AverageRate);} - } - /// Creates a new CurrencyRateEntity.CurrencyRateDate field instance - public static EntityField2 CurrencyRateDate - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyRateFieldIndex.CurrencyRateDate);} - } - /// Creates a new CurrencyRateEntity.CurrencyRateId field instance - public static EntityField2 CurrencyRateId - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyRateFieldIndex.CurrencyRateId);} - } - /// Creates a new CurrencyRateEntity.EndOfDayRate field instance - public static EntityField2 EndOfDayRate - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyRateFieldIndex.EndOfDayRate);} - } - /// Creates a new CurrencyRateEntity.FromCurrencyCode field instance - public static EntityField2 FromCurrencyCode - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyRateFieldIndex.FromCurrencyCode);} - } - /// Creates a new CurrencyRateEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyRateFieldIndex.ModifiedDate);} - } - /// Creates a new CurrencyRateEntity.ToCurrencyCode field instance - public static EntityField2 ToCurrencyCode - { - get { return (EntityField2)EntityFieldFactory.Create(CurrencyRateFieldIndex.ToCurrencyCode);} - } - } - - /// Field Creation Class for entity CustomerEntity - public partial class CustomerFields - { - /// Creates a new CustomerEntity.AccountNumber field instance - public static EntityField2 AccountNumber - { - get { return (EntityField2)EntityFieldFactory.Create(CustomerFieldIndex.AccountNumber);} - } - /// Creates a new CustomerEntity.CustomerId field instance - public static EntityField2 CustomerId - { - get { return (EntityField2)EntityFieldFactory.Create(CustomerFieldIndex.CustomerId);} - } - /// Creates a new CustomerEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(CustomerFieldIndex.ModifiedDate);} - } - /// Creates a new CustomerEntity.PersonId field instance - public static EntityField2 PersonId - { - get { return (EntityField2)EntityFieldFactory.Create(CustomerFieldIndex.PersonId);} - } - /// Creates a new CustomerEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(CustomerFieldIndex.Rowguid);} - } - /// Creates a new CustomerEntity.StoreId field instance - public static EntityField2 StoreId - { - get { return (EntityField2)EntityFieldFactory.Create(CustomerFieldIndex.StoreId);} - } - /// Creates a new CustomerEntity.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(CustomerFieldIndex.TerritoryId);} - } - } - - /// Field Creation Class for entity DepartmentEntity - public partial class DepartmentFields - { - /// Creates a new DepartmentEntity.DepartmentId field instance - public static EntityField2 DepartmentId - { - get { return (EntityField2)EntityFieldFactory.Create(DepartmentFieldIndex.DepartmentId);} - } - /// Creates a new DepartmentEntity.GroupName field instance - public static EntityField2 GroupName - { - get { return (EntityField2)EntityFieldFactory.Create(DepartmentFieldIndex.GroupName);} - } - /// Creates a new DepartmentEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(DepartmentFieldIndex.ModifiedDate);} - } - /// Creates a new DepartmentEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(DepartmentFieldIndex.Name);} - } - } - - /// Field Creation Class for entity DocumentEntity - public partial class DocumentFields - { - /// Creates a new DocumentEntity.ChangeNumber field instance - public static EntityField2 ChangeNumber - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.ChangeNumber);} - } - /// Creates a new DocumentEntity.Document field instance - public static EntityField2 Document - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.Document);} - } - /// Creates a new DocumentEntity.DocumentLevel field instance - public static EntityField2 DocumentLevel - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.DocumentLevel);} - } - /// Creates a new DocumentEntity.DocumentNode field instance - public static EntityField2 DocumentNode - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.DocumentNode);} - } - /// Creates a new DocumentEntity.DocumentSummary field instance - public static EntityField2 DocumentSummary - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.DocumentSummary);} - } - /// Creates a new DocumentEntity.FileExtension field instance - public static EntityField2 FileExtension - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.FileExtension);} - } - /// Creates a new DocumentEntity.FileName field instance - public static EntityField2 FileName - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.FileName);} - } - /// Creates a new DocumentEntity.FolderFlag field instance - public static EntityField2 FolderFlag - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.FolderFlag);} - } - /// Creates a new DocumentEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.ModifiedDate);} - } - /// Creates a new DocumentEntity.Owner field instance - public static EntityField2 Owner - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.Owner);} - } - /// Creates a new DocumentEntity.Revision field instance - public static EntityField2 Revision - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.Revision);} - } - /// Creates a new DocumentEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.Rowguid);} - } - /// Creates a new DocumentEntity.Status field instance - public static EntityField2 Status - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.Status);} - } - /// Creates a new DocumentEntity.Title field instance - public static EntityField2 Title - { - get { return (EntityField2)EntityFieldFactory.Create(DocumentFieldIndex.Title);} - } - } - - /// Field Creation Class for entity EmailAddressEntity - public partial class EmailAddressFields - { - /// Creates a new EmailAddressEntity.BusinessEntityId field instance - public static EntityField2 BusinessEntityId - { - get { return (EntityField2)EntityFieldFactory.Create(EmailAddressFieldIndex.BusinessEntityId);} - } - /// Creates a new EmailAddressEntity.EmailAddressId field instance - public static EntityField2 EmailAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(EmailAddressFieldIndex.EmailAddressId);} - } - /// Creates a new EmailAddressEntity.EmailAddressValue field instance - public static EntityField2 EmailAddressValue - { - get { return (EntityField2)EntityFieldFactory.Create(EmailAddressFieldIndex.EmailAddressValue);} - } - /// Creates a new EmailAddressEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmailAddressFieldIndex.ModifiedDate);} - } - /// Creates a new EmailAddressEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(EmailAddressFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity EmployeeEntity - public partial class EmployeeFields - { - /// Creates a new EmployeeEntity.BirthDate field instance - public static EntityField2 BirthDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.BirthDate);} - } - /// Creates a new EmployeeEntity.CurrentFlag field instance - public static EntityField2 CurrentFlag - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.CurrentFlag);} - } - /// Creates a new EmployeeEntity.EmployeeId field instance - public static EntityField2 EmployeeId - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.EmployeeId);} - } - /// Creates a new EmployeeEntity.Gender field instance - public static EntityField2 Gender - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.Gender);} - } - /// Creates a new EmployeeEntity.HireDate field instance - public static EntityField2 HireDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.HireDate);} - } - /// Creates a new EmployeeEntity.LoginId field instance - public static EntityField2 LoginId - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.LoginId);} - } - /// Creates a new EmployeeEntity.MaritalStatus field instance - public static EntityField2 MaritalStatus - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.MaritalStatus);} - } - /// Creates a new EmployeeEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.ModifiedDate);} - } - /// Creates a new EmployeeEntity.NationalIdnumber field instance - public static EntityField2 NationalIdnumber - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.NationalIdnumber);} - } - /// Creates a new EmployeeEntity.OrganizationLevel field instance - public static EntityField2 OrganizationLevel - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.OrganizationLevel);} - } - /// Creates a new EmployeeEntity.OrganizationNode field instance - public static EntityField2 OrganizationNode - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.OrganizationNode);} - } - /// Creates a new EmployeeEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.Rowguid);} - } - /// Creates a new EmployeeEntity.SalariedFlag field instance - public static EntityField2 SalariedFlag - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.SalariedFlag);} - } - /// Creates a new EmployeeEntity.SickLeaveHours field instance - public static EntityField2 SickLeaveHours - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.SickLeaveHours);} - } - /// Creates a new EmployeeEntity.Title field instance - public static EntityField2 Title - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.Title);} - } - /// Creates a new EmployeeEntity.VacationHours field instance - public static EntityField2 VacationHours - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeFieldIndex.VacationHours);} - } - } - - /// Field Creation Class for entity EmployeeDepartmentHistoryEntity - public partial class EmployeeDepartmentHistoryFields - { - /// Creates a new EmployeeDepartmentHistoryEntity.DepartmentId field instance - public static EntityField2 DepartmentId - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeDepartmentHistoryFieldIndex.DepartmentId);} - } - /// Creates a new EmployeeDepartmentHistoryEntity.EmployeeId field instance - public static EntityField2 EmployeeId - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeDepartmentHistoryFieldIndex.EmployeeId);} - } - /// Creates a new EmployeeDepartmentHistoryEntity.EndDate field instance - public static EntityField2 EndDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeDepartmentHistoryFieldIndex.EndDate);} - } - /// Creates a new EmployeeDepartmentHistoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeDepartmentHistoryFieldIndex.ModifiedDate);} - } - /// Creates a new EmployeeDepartmentHistoryEntity.ShiftId field instance - public static EntityField2 ShiftId - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeDepartmentHistoryFieldIndex.ShiftId);} - } - /// Creates a new EmployeeDepartmentHistoryEntity.StartDate field instance - public static EntityField2 StartDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeeDepartmentHistoryFieldIndex.StartDate);} - } - } - - /// Field Creation Class for entity EmployeePayHistoryEntity - public partial class EmployeePayHistoryFields - { - /// Creates a new EmployeePayHistoryEntity.EmployeeId field instance - public static EntityField2 EmployeeId - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeePayHistoryFieldIndex.EmployeeId);} - } - /// Creates a new EmployeePayHistoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeePayHistoryFieldIndex.ModifiedDate);} - } - /// Creates a new EmployeePayHistoryEntity.PayFrequency field instance - public static EntityField2 PayFrequency - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeePayHistoryFieldIndex.PayFrequency);} - } - /// Creates a new EmployeePayHistoryEntity.Rate field instance - public static EntityField2 Rate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeePayHistoryFieldIndex.Rate);} - } - /// Creates a new EmployeePayHistoryEntity.RateChangeDate field instance - public static EntityField2 RateChangeDate - { - get { return (EntityField2)EntityFieldFactory.Create(EmployeePayHistoryFieldIndex.RateChangeDate);} - } - } - - /// Field Creation Class for entity IllustrationEntity - public partial class IllustrationFields - { - /// Creates a new IllustrationEntity.Diagram field instance - public static EntityField2 Diagram - { - get { return (EntityField2)EntityFieldFactory.Create(IllustrationFieldIndex.Diagram);} - } - /// Creates a new IllustrationEntity.IllustrationId field instance - public static EntityField2 IllustrationId - { - get { return (EntityField2)EntityFieldFactory.Create(IllustrationFieldIndex.IllustrationId);} - } - /// Creates a new IllustrationEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(IllustrationFieldIndex.ModifiedDate);} - } - } - - /// Field Creation Class for entity JobCandidateEntity - public partial class JobCandidateFields - { - /// Creates a new JobCandidateEntity.EmployeeId field instance - public static EntityField2 EmployeeId - { - get { return (EntityField2)EntityFieldFactory.Create(JobCandidateFieldIndex.EmployeeId);} - } - /// Creates a new JobCandidateEntity.JobCandidateId field instance - public static EntityField2 JobCandidateId - { - get { return (EntityField2)EntityFieldFactory.Create(JobCandidateFieldIndex.JobCandidateId);} - } - /// Creates a new JobCandidateEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(JobCandidateFieldIndex.ModifiedDate);} - } - /// Creates a new JobCandidateEntity.Resume field instance - public static EntityField2 Resume - { - get { return (EntityField2)EntityFieldFactory.Create(JobCandidateFieldIndex.Resume);} - } - } - - /// Field Creation Class for entity LocationEntity - public partial class LocationFields - { - /// Creates a new LocationEntity.Availability field instance - public static EntityField2 Availability - { - get { return (EntityField2)EntityFieldFactory.Create(LocationFieldIndex.Availability);} - } - /// Creates a new LocationEntity.CostRate field instance - public static EntityField2 CostRate - { - get { return (EntityField2)EntityFieldFactory.Create(LocationFieldIndex.CostRate);} - } - /// Creates a new LocationEntity.LocationId field instance - public static EntityField2 LocationId - { - get { return (EntityField2)EntityFieldFactory.Create(LocationFieldIndex.LocationId);} - } - /// Creates a new LocationEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(LocationFieldIndex.ModifiedDate);} - } - /// Creates a new LocationEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(LocationFieldIndex.Name);} - } - } - - /// Field Creation Class for entity PasswordEntity - public partial class PasswordFields - { - /// Creates a new PasswordEntity.BusinessEntityId field instance - public static EntityField2 BusinessEntityId - { - get { return (EntityField2)EntityFieldFactory.Create(PasswordFieldIndex.BusinessEntityId);} - } - /// Creates a new PasswordEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(PasswordFieldIndex.ModifiedDate);} - } - /// Creates a new PasswordEntity.PasswordHash field instance - public static EntityField2 PasswordHash - { - get { return (EntityField2)EntityFieldFactory.Create(PasswordFieldIndex.PasswordHash);} - } - /// Creates a new PasswordEntity.PasswordSalt field instance - public static EntityField2 PasswordSalt - { - get { return (EntityField2)EntityFieldFactory.Create(PasswordFieldIndex.PasswordSalt);} - } - /// Creates a new PasswordEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(PasswordFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity PersonEntity - public partial class PersonFields - { - /// Creates a new PersonEntity.AdditionalContactInfo field instance - public static EntityField2 AdditionalContactInfo - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.AdditionalContactInfo);} - } - /// Creates a new PersonEntity.BusinessEntityId field instance - public static EntityField2 BusinessEntityId - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.BusinessEntityId);} - } - /// Creates a new PersonEntity.Demographics field instance - public static EntityField2 Demographics - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.Demographics);} - } - /// Creates a new PersonEntity.EmailPromotion field instance - public static EntityField2 EmailPromotion - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.EmailPromotion);} - } - /// Creates a new PersonEntity.FirstName field instance - public static EntityField2 FirstName - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.FirstName);} - } - /// Creates a new PersonEntity.LastName field instance - public static EntityField2 LastName - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.LastName);} - } - /// Creates a new PersonEntity.MiddleName field instance - public static EntityField2 MiddleName - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.MiddleName);} - } - /// Creates a new PersonEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.ModifiedDate);} - } - /// Creates a new PersonEntity.NameStyle field instance - public static EntityField2 NameStyle - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.NameStyle);} - } - /// Creates a new PersonEntity.PersonType field instance - public static EntityField2 PersonType - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.PersonType);} - } - /// Creates a new PersonEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.Rowguid);} - } - /// Creates a new PersonEntity.Suffix field instance - public static EntityField2 Suffix - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.Suffix);} - } - /// Creates a new PersonEntity.Title field instance - public static EntityField2 Title - { - get { return (EntityField2)EntityFieldFactory.Create(PersonFieldIndex.Title);} - } - } - - /// Field Creation Class for entity PersonPhoneEntity - public partial class PersonPhoneFields - { - /// Creates a new PersonPhoneEntity.BusinessEntityId field instance - public static EntityField2 BusinessEntityId - { - get { return (EntityField2)EntityFieldFactory.Create(PersonPhoneFieldIndex.BusinessEntityId);} - } - /// Creates a new PersonPhoneEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(PersonPhoneFieldIndex.ModifiedDate);} - } - /// Creates a new PersonPhoneEntity.PhoneNumber field instance - public static EntityField2 PhoneNumber - { - get { return (EntityField2)EntityFieldFactory.Create(PersonPhoneFieldIndex.PhoneNumber);} - } - /// Creates a new PersonPhoneEntity.PhoneNumberTypeId field instance - public static EntityField2 PhoneNumberTypeId - { - get { return (EntityField2)EntityFieldFactory.Create(PersonPhoneFieldIndex.PhoneNumberTypeId);} - } - } - - /// Field Creation Class for entity PhoneNumberTypeEntity - public partial class PhoneNumberTypeFields - { - /// Creates a new PhoneNumberTypeEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(PhoneNumberTypeFieldIndex.ModifiedDate);} - } - /// Creates a new PhoneNumberTypeEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(PhoneNumberTypeFieldIndex.Name);} - } - /// Creates a new PhoneNumberTypeEntity.PhoneNumberTypeId field instance - public static EntityField2 PhoneNumberTypeId - { - get { return (EntityField2)EntityFieldFactory.Create(PhoneNumberTypeFieldIndex.PhoneNumberTypeId);} - } - } - - /// Field Creation Class for entity ProductEntity - public partial class ProductFields - { - /// Creates a new ProductEntity.Class field instance - public static EntityField2 Class - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.Class);} - } - /// Creates a new ProductEntity.Color field instance - public static EntityField2 Color - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.Color);} - } - /// Creates a new ProductEntity.DaysToManufacture field instance - public static EntityField2 DaysToManufacture - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.DaysToManufacture);} - } - /// Creates a new ProductEntity.DiscontinuedDate field instance - public static EntityField2 DiscontinuedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.DiscontinuedDate);} - } - /// Creates a new ProductEntity.FinishedGoodsFlag field instance - public static EntityField2 FinishedGoodsFlag - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.FinishedGoodsFlag);} - } - /// Creates a new ProductEntity.ListPrice field instance - public static EntityField2 ListPrice - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ListPrice);} - } - /// Creates a new ProductEntity.MakeFlag field instance - public static EntityField2 MakeFlag - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.MakeFlag);} - } - /// Creates a new ProductEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ModifiedDate);} - } - /// Creates a new ProductEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.Name);} - } - /// Creates a new ProductEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ProductId);} - } - /// Creates a new ProductEntity.ProductLine field instance - public static EntityField2 ProductLine - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ProductLine);} - } - /// Creates a new ProductEntity.ProductModelId field instance - public static EntityField2 ProductModelId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ProductModelId);} - } - /// Creates a new ProductEntity.ProductNumber field instance - public static EntityField2 ProductNumber - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ProductNumber);} - } - /// Creates a new ProductEntity.ProductSubcategoryId field instance - public static EntityField2 ProductSubcategoryId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ProductSubcategoryId);} - } - /// Creates a new ProductEntity.ReorderPoint field instance - public static EntityField2 ReorderPoint - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.ReorderPoint);} - } - /// Creates a new ProductEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.Rowguid);} - } - /// Creates a new ProductEntity.SafetyStockLevel field instance - public static EntityField2 SafetyStockLevel - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.SafetyStockLevel);} - } - /// Creates a new ProductEntity.SellEndDate field instance - public static EntityField2 SellEndDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.SellEndDate);} - } - /// Creates a new ProductEntity.SellStartDate field instance - public static EntityField2 SellStartDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.SellStartDate);} - } - /// Creates a new ProductEntity.Size field instance - public static EntityField2 Size - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.Size);} - } - /// Creates a new ProductEntity.SizeUnitMeasureCode field instance - public static EntityField2 SizeUnitMeasureCode - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.SizeUnitMeasureCode);} - } - /// Creates a new ProductEntity.StandardCost field instance - public static EntityField2 StandardCost - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.StandardCost);} - } - /// Creates a new ProductEntity.Style field instance - public static EntityField2 Style - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.Style);} - } - /// Creates a new ProductEntity.Weight field instance - public static EntityField2 Weight - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.Weight);} - } - /// Creates a new ProductEntity.WeightUnitMeasureCode field instance - public static EntityField2 WeightUnitMeasureCode - { - get { return (EntityField2)EntityFieldFactory.Create(ProductFieldIndex.WeightUnitMeasureCode);} - } - } - - /// Field Creation Class for entity ProductCategoryEntity - public partial class ProductCategoryFields - { - /// Creates a new ProductCategoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCategoryFieldIndex.ModifiedDate);} - } - /// Creates a new ProductCategoryEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCategoryFieldIndex.Name);} - } - /// Creates a new ProductCategoryEntity.ProductCategoryId field instance - public static EntityField2 ProductCategoryId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCategoryFieldIndex.ProductCategoryId);} - } - /// Creates a new ProductCategoryEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCategoryFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity ProductCostHistoryEntity - public partial class ProductCostHistoryFields - { - /// Creates a new ProductCostHistoryEntity.EndDate field instance - public static EntityField2 EndDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCostHistoryFieldIndex.EndDate);} - } - /// Creates a new ProductCostHistoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCostHistoryFieldIndex.ModifiedDate);} - } - /// Creates a new ProductCostHistoryEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCostHistoryFieldIndex.ProductId);} - } - /// Creates a new ProductCostHistoryEntity.StandardCost field instance - public static EntityField2 StandardCost - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCostHistoryFieldIndex.StandardCost);} - } - /// Creates a new ProductCostHistoryEntity.StartDate field instance - public static EntityField2 StartDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductCostHistoryFieldIndex.StartDate);} - } - } - - /// Field Creation Class for entity ProductDescriptionEntity - public partial class ProductDescriptionFields - { - /// Creates a new ProductDescriptionEntity.Description field instance - public static EntityField2 Description - { - get { return (EntityField2)EntityFieldFactory.Create(ProductDescriptionFieldIndex.Description);} - } - /// Creates a new ProductDescriptionEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductDescriptionFieldIndex.ModifiedDate);} - } - /// Creates a new ProductDescriptionEntity.ProductDescriptionId field instance - public static EntityField2 ProductDescriptionId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductDescriptionFieldIndex.ProductDescriptionId);} - } - /// Creates a new ProductDescriptionEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(ProductDescriptionFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity ProductDocumentEntity - public partial class ProductDocumentFields - { - /// Creates a new ProductDocumentEntity.DocumentNode field instance - public static EntityField2 DocumentNode - { - get { return (EntityField2)EntityFieldFactory.Create(ProductDocumentFieldIndex.DocumentNode);} - } - /// Creates a new ProductDocumentEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductDocumentFieldIndex.ModifiedDate);} - } - /// Creates a new ProductDocumentEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductDocumentFieldIndex.ProductId);} - } - } - - /// Field Creation Class for entity ProductInventoryEntity - public partial class ProductInventoryFields - { - /// Creates a new ProductInventoryEntity.Bin field instance - public static EntityField2 Bin - { - get { return (EntityField2)EntityFieldFactory.Create(ProductInventoryFieldIndex.Bin);} - } - /// Creates a new ProductInventoryEntity.LocationId field instance - public static EntityField2 LocationId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductInventoryFieldIndex.LocationId);} - } - /// Creates a new ProductInventoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductInventoryFieldIndex.ModifiedDate);} - } - /// Creates a new ProductInventoryEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductInventoryFieldIndex.ProductId);} - } - /// Creates a new ProductInventoryEntity.Quantity field instance - public static EntityField2 Quantity - { - get { return (EntityField2)EntityFieldFactory.Create(ProductInventoryFieldIndex.Quantity);} - } - /// Creates a new ProductInventoryEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(ProductInventoryFieldIndex.Rowguid);} - } - /// Creates a new ProductInventoryEntity.Shelf field instance - public static EntityField2 Shelf - { - get { return (EntityField2)EntityFieldFactory.Create(ProductInventoryFieldIndex.Shelf);} - } - } - - /// Field Creation Class for entity ProductListPriceHistoryEntity - public partial class ProductListPriceHistoryFields - { - /// Creates a new ProductListPriceHistoryEntity.EndDate field instance - public static EntityField2 EndDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductListPriceHistoryFieldIndex.EndDate);} - } - /// Creates a new ProductListPriceHistoryEntity.ListPrice field instance - public static EntityField2 ListPrice - { - get { return (EntityField2)EntityFieldFactory.Create(ProductListPriceHistoryFieldIndex.ListPrice);} - } - /// Creates a new ProductListPriceHistoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductListPriceHistoryFieldIndex.ModifiedDate);} - } - /// Creates a new ProductListPriceHistoryEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductListPriceHistoryFieldIndex.ProductId);} - } - /// Creates a new ProductListPriceHistoryEntity.StartDate field instance - public static EntityField2 StartDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductListPriceHistoryFieldIndex.StartDate);} - } - } - - /// Field Creation Class for entity ProductModelEntity - public partial class ProductModelFields - { - /// Creates a new ProductModelEntity.CatalogDescription field instance - public static EntityField2 CatalogDescription - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelFieldIndex.CatalogDescription);} - } - /// Creates a new ProductModelEntity.Instructions field instance - public static EntityField2 Instructions - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelFieldIndex.Instructions);} - } - /// Creates a new ProductModelEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelFieldIndex.ModifiedDate);} - } - /// Creates a new ProductModelEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelFieldIndex.Name);} - } - /// Creates a new ProductModelEntity.ProductModelId field instance - public static EntityField2 ProductModelId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelFieldIndex.ProductModelId);} - } - /// Creates a new ProductModelEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity ProductModelIllustrationEntity - public partial class ProductModelIllustrationFields - { - /// Creates a new ProductModelIllustrationEntity.IllustrationId field instance - public static EntityField2 IllustrationId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelIllustrationFieldIndex.IllustrationId);} - } - /// Creates a new ProductModelIllustrationEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelIllustrationFieldIndex.ModifiedDate);} - } - /// Creates a new ProductModelIllustrationEntity.ProductModelId field instance - public static EntityField2 ProductModelId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelIllustrationFieldIndex.ProductModelId);} - } - } - - /// Field Creation Class for entity ProductModelProductDescriptionCultureEntity - public partial class ProductModelProductDescriptionCultureFields - { - /// Creates a new ProductModelProductDescriptionCultureEntity.CultureId field instance - public static EntityField2 CultureId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelProductDescriptionCultureFieldIndex.CultureId);} - } - /// Creates a new ProductModelProductDescriptionCultureEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelProductDescriptionCultureFieldIndex.ModifiedDate);} - } - /// Creates a new ProductModelProductDescriptionCultureEntity.ProductDescriptionId field instance - public static EntityField2 ProductDescriptionId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId);} - } - /// Creates a new ProductModelProductDescriptionCultureEntity.ProductModelId field instance - public static EntityField2 ProductModelId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductModelProductDescriptionCultureFieldIndex.ProductModelId);} - } - } - - /// Field Creation Class for entity ProductPhotoEntity - public partial class ProductPhotoFields - { - /// Creates a new ProductPhotoEntity.LargePhoto field instance - public static EntityField2 LargePhoto - { - get { return (EntityField2)EntityFieldFactory.Create(ProductPhotoFieldIndex.LargePhoto);} - } - /// Creates a new ProductPhotoEntity.LargePhotoFileName field instance - public static EntityField2 LargePhotoFileName - { - get { return (EntityField2)EntityFieldFactory.Create(ProductPhotoFieldIndex.LargePhotoFileName);} - } - /// Creates a new ProductPhotoEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductPhotoFieldIndex.ModifiedDate);} - } - /// Creates a new ProductPhotoEntity.ProductPhotoId field instance - public static EntityField2 ProductPhotoId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductPhotoFieldIndex.ProductPhotoId);} - } - /// Creates a new ProductPhotoEntity.ThumbNailPhoto field instance - public static EntityField2 ThumbNailPhoto - { - get { return (EntityField2)EntityFieldFactory.Create(ProductPhotoFieldIndex.ThumbNailPhoto);} - } - /// Creates a new ProductPhotoEntity.ThumbnailPhotoFileName field instance - public static EntityField2 ThumbnailPhotoFileName - { - get { return (EntityField2)EntityFieldFactory.Create(ProductPhotoFieldIndex.ThumbnailPhotoFileName);} - } - } - - /// Field Creation Class for entity ProductProductPhotoEntity - public partial class ProductProductPhotoFields - { - /// Creates a new ProductProductPhotoEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductProductPhotoFieldIndex.ModifiedDate);} - } - /// Creates a new ProductProductPhotoEntity.Primary field instance - public static EntityField2 Primary - { - get { return (EntityField2)EntityFieldFactory.Create(ProductProductPhotoFieldIndex.Primary);} - } - /// Creates a new ProductProductPhotoEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductProductPhotoFieldIndex.ProductId);} - } - /// Creates a new ProductProductPhotoEntity.ProductPhotoId field instance - public static EntityField2 ProductPhotoId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductProductPhotoFieldIndex.ProductPhotoId);} - } - } - - /// Field Creation Class for entity ProductReviewEntity - public partial class ProductReviewFields - { - /// Creates a new ProductReviewEntity.Comments field instance - public static EntityField2 Comments - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.Comments);} - } - /// Creates a new ProductReviewEntity.EmailAddress field instance - public static EntityField2 EmailAddress - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.EmailAddress);} - } - /// Creates a new ProductReviewEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.ModifiedDate);} - } - /// Creates a new ProductReviewEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.ProductId);} - } - /// Creates a new ProductReviewEntity.ProductReviewId field instance - public static EntityField2 ProductReviewId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.ProductReviewId);} - } - /// Creates a new ProductReviewEntity.Rating field instance - public static EntityField2 Rating - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.Rating);} - } - /// Creates a new ProductReviewEntity.ReviewDate field instance - public static EntityField2 ReviewDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.ReviewDate);} - } - /// Creates a new ProductReviewEntity.ReviewerName field instance - public static EntityField2 ReviewerName - { - get { return (EntityField2)EntityFieldFactory.Create(ProductReviewFieldIndex.ReviewerName);} - } - } - - /// Field Creation Class for entity ProductSubcategoryEntity - public partial class ProductSubcategoryFields - { - /// Creates a new ProductSubcategoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductSubcategoryFieldIndex.ModifiedDate);} - } - /// Creates a new ProductSubcategoryEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ProductSubcategoryFieldIndex.Name);} - } - /// Creates a new ProductSubcategoryEntity.ProductCategoryId field instance - public static EntityField2 ProductCategoryId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductSubcategoryFieldIndex.ProductCategoryId);} - } - /// Creates a new ProductSubcategoryEntity.ProductSubcategoryId field instance - public static EntityField2 ProductSubcategoryId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductSubcategoryFieldIndex.ProductSubcategoryId);} - } - /// Creates a new ProductSubcategoryEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(ProductSubcategoryFieldIndex.Rowguid);} - } - } - - /// Field Creation Class for entity ProductVendorEntity - public partial class ProductVendorFields - { - /// Creates a new ProductVendorEntity.AverageLeadTime field instance - public static EntityField2 AverageLeadTime - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.AverageLeadTime);} - } - /// Creates a new ProductVendorEntity.LastReceiptCost field instance - public static EntityField2 LastReceiptCost - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.LastReceiptCost);} - } - /// Creates a new ProductVendorEntity.LastReceiptDate field instance - public static EntityField2 LastReceiptDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.LastReceiptDate);} - } - /// Creates a new ProductVendorEntity.MaxOrderQty field instance - public static EntityField2 MaxOrderQty - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.MaxOrderQty);} - } - /// Creates a new ProductVendorEntity.MinOrderQty field instance - public static EntityField2 MinOrderQty - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.MinOrderQty);} - } - /// Creates a new ProductVendorEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.ModifiedDate);} - } - /// Creates a new ProductVendorEntity.OnOrderQty field instance - public static EntityField2 OnOrderQty - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.OnOrderQty);} - } - /// Creates a new ProductVendorEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.ProductId);} - } - /// Creates a new ProductVendorEntity.StandardPrice field instance - public static EntityField2 StandardPrice - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.StandardPrice);} - } - /// Creates a new ProductVendorEntity.UnitMeasureCode field instance - public static EntityField2 UnitMeasureCode - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.UnitMeasureCode);} - } - /// Creates a new ProductVendorEntity.VendorId field instance - public static EntityField2 VendorId - { - get { return (EntityField2)EntityFieldFactory.Create(ProductVendorFieldIndex.VendorId);} - } - } - - /// Field Creation Class for entity PurchaseOrderDetailEntity - public partial class PurchaseOrderDetailFields - { - /// Creates a new PurchaseOrderDetailEntity.DueDate field instance - public static EntityField2 DueDate - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.DueDate);} - } - /// Creates a new PurchaseOrderDetailEntity.LineTotal field instance - public static EntityField2 LineTotal - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.LineTotal);} - } - /// Creates a new PurchaseOrderDetailEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.ModifiedDate);} - } - /// Creates a new PurchaseOrderDetailEntity.OrderQty field instance - public static EntityField2 OrderQty - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.OrderQty);} - } - /// Creates a new PurchaseOrderDetailEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.ProductId);} - } - /// Creates a new PurchaseOrderDetailEntity.PurchaseOrderDetailId field instance - public static EntityField2 PurchaseOrderDetailId - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.PurchaseOrderDetailId);} - } - /// Creates a new PurchaseOrderDetailEntity.PurchaseOrderId field instance - public static EntityField2 PurchaseOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.PurchaseOrderId);} - } - /// Creates a new PurchaseOrderDetailEntity.ReceivedQty field instance - public static EntityField2 ReceivedQty - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.ReceivedQty);} - } - /// Creates a new PurchaseOrderDetailEntity.RejectedQty field instance - public static EntityField2 RejectedQty - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.RejectedQty);} - } - /// Creates a new PurchaseOrderDetailEntity.StockedQty field instance - public static EntityField2 StockedQty - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.StockedQty);} - } - /// Creates a new PurchaseOrderDetailEntity.UnitPrice field instance - public static EntityField2 UnitPrice - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderDetailFieldIndex.UnitPrice);} - } - } - - /// Field Creation Class for entity PurchaseOrderHeaderEntity - public partial class PurchaseOrderHeaderFields - { - /// Creates a new PurchaseOrderHeaderEntity.EmployeeId field instance - public static EntityField2 EmployeeId - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.EmployeeId);} - } - /// Creates a new PurchaseOrderHeaderEntity.Freight field instance - public static EntityField2 Freight - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.Freight);} - } - /// Creates a new PurchaseOrderHeaderEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.ModifiedDate);} - } - /// Creates a new PurchaseOrderHeaderEntity.OrderDate field instance - public static EntityField2 OrderDate - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.OrderDate);} - } - /// Creates a new PurchaseOrderHeaderEntity.PurchaseOrderId field instance - public static EntityField2 PurchaseOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.PurchaseOrderId);} - } - /// Creates a new PurchaseOrderHeaderEntity.RevisionNumber field instance - public static EntityField2 RevisionNumber - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.RevisionNumber);} - } - /// Creates a new PurchaseOrderHeaderEntity.ShipDate field instance - public static EntityField2 ShipDate - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.ShipDate);} - } - /// Creates a new PurchaseOrderHeaderEntity.ShipMethodId field instance - public static EntityField2 ShipMethodId - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.ShipMethodId);} - } - /// Creates a new PurchaseOrderHeaderEntity.Status field instance - public static EntityField2 Status - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.Status);} - } - /// Creates a new PurchaseOrderHeaderEntity.SubTotal field instance - public static EntityField2 SubTotal - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.SubTotal);} - } - /// Creates a new PurchaseOrderHeaderEntity.TaxAmt field instance - public static EntityField2 TaxAmt - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.TaxAmt);} - } - /// Creates a new PurchaseOrderHeaderEntity.TotalDue field instance - public static EntityField2 TotalDue - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.TotalDue);} - } - /// Creates a new PurchaseOrderHeaderEntity.VendorId field instance - public static EntityField2 VendorId - { - get { return (EntityField2)EntityFieldFactory.Create(PurchaseOrderHeaderFieldIndex.VendorId);} - } - } - - /// Field Creation Class for entity SalesOrderDetailEntity - public partial class SalesOrderDetailFields - { - /// Creates a new SalesOrderDetailEntity.CarrierTrackingNumber field instance - public static EntityField2 CarrierTrackingNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.CarrierTrackingNumber);} - } - /// Creates a new SalesOrderDetailEntity.LineTotal field instance - public static EntityField2 LineTotal - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.LineTotal);} - } - /// Creates a new SalesOrderDetailEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.ModifiedDate);} - } - /// Creates a new SalesOrderDetailEntity.OrderQty field instance - public static EntityField2 OrderQty - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.OrderQty);} - } - /// Creates a new SalesOrderDetailEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.ProductId);} - } - /// Creates a new SalesOrderDetailEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.Rowguid);} - } - /// Creates a new SalesOrderDetailEntity.SalesOrderDetailId field instance - public static EntityField2 SalesOrderDetailId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.SalesOrderDetailId);} - } - /// Creates a new SalesOrderDetailEntity.SalesOrderId field instance - public static EntityField2 SalesOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.SalesOrderId);} - } - /// Creates a new SalesOrderDetailEntity.SpecialOfferId field instance - public static EntityField2 SpecialOfferId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.SpecialOfferId);} - } - /// Creates a new SalesOrderDetailEntity.UnitPrice field instance - public static EntityField2 UnitPrice - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.UnitPrice);} - } - /// Creates a new SalesOrderDetailEntity.UnitPriceDiscount field instance - public static EntityField2 UnitPriceDiscount - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderDetailFieldIndex.UnitPriceDiscount);} - } - } - - /// Field Creation Class for entity SalesOrderHeaderEntity - public partial class SalesOrderHeaderFields - { - /// Creates a new SalesOrderHeaderEntity.AccountNumber field instance - public static EntityField2 AccountNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.AccountNumber);} - } - /// Creates a new SalesOrderHeaderEntity.BillToAddressId field instance - public static EntityField2 BillToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.BillToAddressId);} - } - /// Creates a new SalesOrderHeaderEntity.Comment field instance - public static EntityField2 Comment - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.Comment);} - } - /// Creates a new SalesOrderHeaderEntity.CreditCardApprovalCode field instance - public static EntityField2 CreditCardApprovalCode - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.CreditCardApprovalCode);} - } - /// Creates a new SalesOrderHeaderEntity.CreditCardId field instance - public static EntityField2 CreditCardId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.CreditCardId);} - } - /// Creates a new SalesOrderHeaderEntity.CurrencyRateId field instance - public static EntityField2 CurrencyRateId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.CurrencyRateId);} - } - /// Creates a new SalesOrderHeaderEntity.CustomerId field instance - public static EntityField2 CustomerId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.CustomerId);} - } - /// Creates a new SalesOrderHeaderEntity.DueDate field instance - public static EntityField2 DueDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.DueDate);} - } - /// Creates a new SalesOrderHeaderEntity.Freight field instance - public static EntityField2 Freight - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.Freight);} - } - /// Creates a new SalesOrderHeaderEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.ModifiedDate);} - } - /// Creates a new SalesOrderHeaderEntity.OnlineOrderFlag field instance - public static EntityField2 OnlineOrderFlag - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.OnlineOrderFlag);} - } - /// Creates a new SalesOrderHeaderEntity.OrderDate field instance - public static EntityField2 OrderDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.OrderDate);} - } - /// Creates a new SalesOrderHeaderEntity.PurchaseOrderNumber field instance - public static EntityField2 PurchaseOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.PurchaseOrderNumber);} - } - /// Creates a new SalesOrderHeaderEntity.RevisionNumber field instance - public static EntityField2 RevisionNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.RevisionNumber);} - } - /// Creates a new SalesOrderHeaderEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.Rowguid);} - } - /// Creates a new SalesOrderHeaderEntity.SalesOrderId field instance - public static EntityField2 SalesOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.SalesOrderId);} - } - /// Creates a new SalesOrderHeaderEntity.SalesOrderNumber field instance - public static EntityField2 SalesOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.SalesOrderNumber);} - } - /// Creates a new SalesOrderHeaderEntity.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.SalesPersonId);} - } - /// Creates a new SalesOrderHeaderEntity.ShipDate field instance - public static EntityField2 ShipDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.ShipDate);} - } - /// Creates a new SalesOrderHeaderEntity.ShipMethodId field instance - public static EntityField2 ShipMethodId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.ShipMethodId);} - } - /// Creates a new SalesOrderHeaderEntity.ShipToAddressId field instance - public static EntityField2 ShipToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.ShipToAddressId);} - } - /// Creates a new SalesOrderHeaderEntity.Status field instance - public static EntityField2 Status - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.Status);} - } - /// Creates a new SalesOrderHeaderEntity.SubTotal field instance - public static EntityField2 SubTotal - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.SubTotal);} - } - /// Creates a new SalesOrderHeaderEntity.TaxAmt field instance - public static EntityField2 TaxAmt - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.TaxAmt);} - } - /// Creates a new SalesOrderHeaderEntity.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.TerritoryId);} - } - /// Creates a new SalesOrderHeaderEntity.TotalDue field instance - public static EntityField2 TotalDue - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderFieldIndex.TotalDue);} - } - } - - /// Field Creation Class for entity SalesOrderHeaderSalesReasonEntity - public partial class SalesOrderHeaderSalesReasonFields - { - /// Creates a new SalesOrderHeaderSalesReasonEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderSalesReasonFieldIndex.ModifiedDate);} - } - /// Creates a new SalesOrderHeaderSalesReasonEntity.SalesOrderId field instance - public static EntityField2 SalesOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId);} - } - /// Creates a new SalesOrderHeaderSalesReasonEntity.SalesReasonId field instance - public static EntityField2 SalesReasonId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId);} - } - } - - /// Field Creation Class for entity SalesPersonEntity - public partial class SalesPersonFields - { - /// Creates a new SalesPersonEntity.Bonus field instance - public static EntityField2 Bonus - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.Bonus);} - } - /// Creates a new SalesPersonEntity.CommissionPct field instance - public static EntityField2 CommissionPct - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.CommissionPct);} - } - /// Creates a new SalesPersonEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.ModifiedDate);} - } - /// Creates a new SalesPersonEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.Rowguid);} - } - /// Creates a new SalesPersonEntity.SalesLastYear field instance - public static EntityField2 SalesLastYear - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.SalesLastYear);} - } - /// Creates a new SalesPersonEntity.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.SalesPersonId);} - } - /// Creates a new SalesPersonEntity.SalesQuota field instance - public static EntityField2 SalesQuota - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.SalesQuota);} - } - /// Creates a new SalesPersonEntity.SalesYtd field instance - public static EntityField2 SalesYtd - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.SalesYtd);} - } - /// Creates a new SalesPersonEntity.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonFieldIndex.TerritoryId);} - } - } - - /// Field Creation Class for entity SalesPersonQuotaHistoryEntity - public partial class SalesPersonQuotaHistoryFields - { - /// Creates a new SalesPersonQuotaHistoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonQuotaHistoryFieldIndex.ModifiedDate);} - } - /// Creates a new SalesPersonQuotaHistoryEntity.QuotaDate field instance - public static EntityField2 QuotaDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonQuotaHistoryFieldIndex.QuotaDate);} - } - /// Creates a new SalesPersonQuotaHistoryEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonQuotaHistoryFieldIndex.Rowguid);} - } - /// Creates a new SalesPersonQuotaHistoryEntity.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonQuotaHistoryFieldIndex.SalesPersonId);} - } - /// Creates a new SalesPersonQuotaHistoryEntity.SalesQuota field instance - public static EntityField2 SalesQuota - { - get { return (EntityField2)EntityFieldFactory.Create(SalesPersonQuotaHistoryFieldIndex.SalesQuota);} - } - } - - /// Field Creation Class for entity SalesReasonEntity - public partial class SalesReasonFields - { - /// Creates a new SalesReasonEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesReasonFieldIndex.ModifiedDate);} - } - /// Creates a new SalesReasonEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(SalesReasonFieldIndex.Name);} - } - /// Creates a new SalesReasonEntity.ReasonType field instance - public static EntityField2 ReasonType - { - get { return (EntityField2)EntityFieldFactory.Create(SalesReasonFieldIndex.ReasonType);} - } - /// Creates a new SalesReasonEntity.SalesReasonId field instance - public static EntityField2 SalesReasonId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesReasonFieldIndex.SalesReasonId);} - } - } - - /// Field Creation Class for entity SalesTaxRateEntity - public partial class SalesTaxRateFields - { - /// Creates a new SalesTaxRateEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTaxRateFieldIndex.ModifiedDate);} - } - /// Creates a new SalesTaxRateEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTaxRateFieldIndex.Name);} - } - /// Creates a new SalesTaxRateEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTaxRateFieldIndex.Rowguid);} - } - /// Creates a new SalesTaxRateEntity.SalesTaxRateId field instance - public static EntityField2 SalesTaxRateId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTaxRateFieldIndex.SalesTaxRateId);} - } - /// Creates a new SalesTaxRateEntity.StateProvinceId field instance - public static EntityField2 StateProvinceId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTaxRateFieldIndex.StateProvinceId);} - } - /// Creates a new SalesTaxRateEntity.TaxRate field instance - public static EntityField2 TaxRate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTaxRateFieldIndex.TaxRate);} - } - /// Creates a new SalesTaxRateEntity.TaxType field instance - public static EntityField2 TaxType - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTaxRateFieldIndex.TaxType);} - } - } - - /// Field Creation Class for entity SalesTerritoryEntity - public partial class SalesTerritoryFields - { - /// Creates a new SalesTerritoryEntity.CostLastYear field instance - public static EntityField2 CostLastYear - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.CostLastYear);} - } - /// Creates a new SalesTerritoryEntity.CostYtd field instance - public static EntityField2 CostYtd - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.CostYtd);} - } - /// Creates a new SalesTerritoryEntity.CountryRegionCode field instance - public static EntityField2 CountryRegionCode - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.CountryRegionCode);} - } - /// Creates a new SalesTerritoryEntity.Group field instance - public static EntityField2 Group - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.Group);} - } - /// Creates a new SalesTerritoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.ModifiedDate);} - } - /// Creates a new SalesTerritoryEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.Name);} - } - /// Creates a new SalesTerritoryEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.Rowguid);} - } - /// Creates a new SalesTerritoryEntity.SalesLastYear field instance - public static EntityField2 SalesLastYear - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.SalesLastYear);} - } - /// Creates a new SalesTerritoryEntity.SalesYtd field instance - public static EntityField2 SalesYtd - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.SalesYtd);} - } - /// Creates a new SalesTerritoryEntity.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryFieldIndex.TerritoryId);} - } - } - - /// Field Creation Class for entity SalesTerritoryHistoryEntity - public partial class SalesTerritoryHistoryFields - { - /// Creates a new SalesTerritoryHistoryEntity.EndDate field instance - public static EntityField2 EndDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryHistoryFieldIndex.EndDate);} - } - /// Creates a new SalesTerritoryHistoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryHistoryFieldIndex.ModifiedDate);} - } - /// Creates a new SalesTerritoryHistoryEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryHistoryFieldIndex.Rowguid);} - } - /// Creates a new SalesTerritoryHistoryEntity.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryHistoryFieldIndex.SalesPersonId);} - } - /// Creates a new SalesTerritoryHistoryEntity.StartDate field instance - public static EntityField2 StartDate - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryHistoryFieldIndex.StartDate);} - } - /// Creates a new SalesTerritoryHistoryEntity.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(SalesTerritoryHistoryFieldIndex.TerritoryId);} - } - } - - /// Field Creation Class for entity ScrapReasonEntity - public partial class ScrapReasonFields - { - /// Creates a new ScrapReasonEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ScrapReasonFieldIndex.ModifiedDate);} - } - /// Creates a new ScrapReasonEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ScrapReasonFieldIndex.Name);} - } - /// Creates a new ScrapReasonEntity.ScrapReasonId field instance - public static EntityField2 ScrapReasonId - { - get { return (EntityField2)EntityFieldFactory.Create(ScrapReasonFieldIndex.ScrapReasonId);} - } - } - - /// Field Creation Class for entity ShiftEntity - public partial class ShiftFields - { - /// Creates a new ShiftEntity.EndTime field instance - public static EntityField2 EndTime - { - get { return (EntityField2)EntityFieldFactory.Create(ShiftFieldIndex.EndTime);} - } - /// Creates a new ShiftEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ShiftFieldIndex.ModifiedDate);} - } - /// Creates a new ShiftEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ShiftFieldIndex.Name);} - } - /// Creates a new ShiftEntity.ShiftId field instance - public static EntityField2 ShiftId - { - get { return (EntityField2)EntityFieldFactory.Create(ShiftFieldIndex.ShiftId);} - } - /// Creates a new ShiftEntity.StartTime field instance - public static EntityField2 StartTime - { - get { return (EntityField2)EntityFieldFactory.Create(ShiftFieldIndex.StartTime);} - } - } - - /// Field Creation Class for entity ShipMethodEntity - public partial class ShipMethodFields - { - /// Creates a new ShipMethodEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ShipMethodFieldIndex.ModifiedDate);} - } - /// Creates a new ShipMethodEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(ShipMethodFieldIndex.Name);} - } - /// Creates a new ShipMethodEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(ShipMethodFieldIndex.Rowguid);} - } - /// Creates a new ShipMethodEntity.ShipBase field instance - public static EntityField2 ShipBase - { - get { return (EntityField2)EntityFieldFactory.Create(ShipMethodFieldIndex.ShipBase);} - } - /// Creates a new ShipMethodEntity.ShipMethodId field instance - public static EntityField2 ShipMethodId - { - get { return (EntityField2)EntityFieldFactory.Create(ShipMethodFieldIndex.ShipMethodId);} - } - /// Creates a new ShipMethodEntity.ShipRate field instance - public static EntityField2 ShipRate - { - get { return (EntityField2)EntityFieldFactory.Create(ShipMethodFieldIndex.ShipRate);} - } - } - - /// Field Creation Class for entity ShoppingCartItemEntity - public partial class ShoppingCartItemFields - { - /// Creates a new ShoppingCartItemEntity.DateCreated field instance - public static EntityField2 DateCreated - { - get { return (EntityField2)EntityFieldFactory.Create(ShoppingCartItemFieldIndex.DateCreated);} - } - /// Creates a new ShoppingCartItemEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(ShoppingCartItemFieldIndex.ModifiedDate);} - } - /// Creates a new ShoppingCartItemEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(ShoppingCartItemFieldIndex.ProductId);} - } - /// Creates a new ShoppingCartItemEntity.Quantity field instance - public static EntityField2 Quantity - { - get { return (EntityField2)EntityFieldFactory.Create(ShoppingCartItemFieldIndex.Quantity);} - } - /// Creates a new ShoppingCartItemEntity.ShoppingCartId field instance - public static EntityField2 ShoppingCartId - { - get { return (EntityField2)EntityFieldFactory.Create(ShoppingCartItemFieldIndex.ShoppingCartId);} - } - /// Creates a new ShoppingCartItemEntity.ShoppingCartItemId field instance - public static EntityField2 ShoppingCartItemId - { - get { return (EntityField2)EntityFieldFactory.Create(ShoppingCartItemFieldIndex.ShoppingCartItemId);} - } - } - - /// Field Creation Class for entity SpecialOfferEntity - public partial class SpecialOfferFields - { - /// Creates a new SpecialOfferEntity.Category field instance - public static EntityField2 Category - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.Category);} - } - /// Creates a new SpecialOfferEntity.Description field instance - public static EntityField2 Description - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.Description);} - } - /// Creates a new SpecialOfferEntity.DiscountPct field instance - public static EntityField2 DiscountPct - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.DiscountPct);} - } - /// Creates a new SpecialOfferEntity.EndDate field instance - public static EntityField2 EndDate - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.EndDate);} - } - /// Creates a new SpecialOfferEntity.MaxQty field instance - public static EntityField2 MaxQty - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.MaxQty);} - } - /// Creates a new SpecialOfferEntity.MinQty field instance - public static EntityField2 MinQty - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.MinQty);} - } - /// Creates a new SpecialOfferEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.ModifiedDate);} - } - /// Creates a new SpecialOfferEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.Rowguid);} - } - /// Creates a new SpecialOfferEntity.SpecialOfferId field instance - public static EntityField2 SpecialOfferId - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.SpecialOfferId);} - } - /// Creates a new SpecialOfferEntity.StartDate field instance - public static EntityField2 StartDate - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.StartDate);} - } - /// Creates a new SpecialOfferEntity.Type field instance - public static EntityField2 Type - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferFieldIndex.Type);} - } - } - - /// Field Creation Class for entity SpecialOfferProductEntity - public partial class SpecialOfferProductFields - { - /// Creates a new SpecialOfferProductEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferProductFieldIndex.ModifiedDate);} - } - /// Creates a new SpecialOfferProductEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferProductFieldIndex.ProductId);} - } - /// Creates a new SpecialOfferProductEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferProductFieldIndex.Rowguid);} - } - /// Creates a new SpecialOfferProductEntity.SpecialOfferId field instance - public static EntityField2 SpecialOfferId - { - get { return (EntityField2)EntityFieldFactory.Create(SpecialOfferProductFieldIndex.SpecialOfferId);} - } - } - - /// Field Creation Class for entity StateProvinceEntity - public partial class StateProvinceFields - { - /// Creates a new StateProvinceEntity.CountryRegionCode field instance - public static EntityField2 CountryRegionCode - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.CountryRegionCode);} - } - /// Creates a new StateProvinceEntity.IsOnlyStateProvinceFlag field instance - public static EntityField2 IsOnlyStateProvinceFlag - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.IsOnlyStateProvinceFlag);} - } - /// Creates a new StateProvinceEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.ModifiedDate);} - } - /// Creates a new StateProvinceEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.Name);} - } - /// Creates a new StateProvinceEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.Rowguid);} - } - /// Creates a new StateProvinceEntity.StateProvinceCode field instance - public static EntityField2 StateProvinceCode - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.StateProvinceCode);} - } - /// Creates a new StateProvinceEntity.StateProvinceId field instance - public static EntityField2 StateProvinceId - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.StateProvinceId);} - } - /// Creates a new StateProvinceEntity.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(StateProvinceFieldIndex.TerritoryId);} - } - } - - /// Field Creation Class for entity StoreEntity - public partial class StoreFields - { - /// Creates a new StoreEntity.CustomerId field instance - public static EntityField2 CustomerId - { - get { return (EntityField2)EntityFieldFactory.Create(StoreFieldIndex.CustomerId);} - } - /// Creates a new StoreEntity.Demographics field instance - public static EntityField2 Demographics - { - get { return (EntityField2)EntityFieldFactory.Create(StoreFieldIndex.Demographics);} - } - /// Creates a new StoreEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(StoreFieldIndex.ModifiedDate);} - } - /// Creates a new StoreEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(StoreFieldIndex.Name);} - } - /// Creates a new StoreEntity.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(StoreFieldIndex.Rowguid);} - } - /// Creates a new StoreEntity.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(StoreFieldIndex.SalesPersonId);} - } - } - - /// Field Creation Class for entity TransactionHistoryEntity - public partial class TransactionHistoryFields - { - /// Creates a new TransactionHistoryEntity.ActualCost field instance - public static EntityField2 ActualCost - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.ActualCost);} - } - /// Creates a new TransactionHistoryEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.ModifiedDate);} - } - /// Creates a new TransactionHistoryEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.ProductId);} - } - /// Creates a new TransactionHistoryEntity.Quantity field instance - public static EntityField2 Quantity - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.Quantity);} - } - /// Creates a new TransactionHistoryEntity.ReferenceOrderId field instance - public static EntityField2 ReferenceOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.ReferenceOrderId);} - } - /// Creates a new TransactionHistoryEntity.ReferenceOrderLineId field instance - public static EntityField2 ReferenceOrderLineId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.ReferenceOrderLineId);} - } - /// Creates a new TransactionHistoryEntity.TransactionDate field instance - public static EntityField2 TransactionDate - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.TransactionDate);} - } - /// Creates a new TransactionHistoryEntity.TransactionId field instance - public static EntityField2 TransactionId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.TransactionId);} - } - /// Creates a new TransactionHistoryEntity.TransactionType field instance - public static EntityField2 TransactionType - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryFieldIndex.TransactionType);} - } - } - - /// Field Creation Class for entity TransactionHistoryArchiveEntity - public partial class TransactionHistoryArchiveFields - { - /// Creates a new TransactionHistoryArchiveEntity.ActualCost field instance - public static EntityField2 ActualCost - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.ActualCost);} - } - /// Creates a new TransactionHistoryArchiveEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.ModifiedDate);} - } - /// Creates a new TransactionHistoryArchiveEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.ProductId);} - } - /// Creates a new TransactionHistoryArchiveEntity.Quantity field instance - public static EntityField2 Quantity - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.Quantity);} - } - /// Creates a new TransactionHistoryArchiveEntity.ReferenceOrderId field instance - public static EntityField2 ReferenceOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.ReferenceOrderId);} - } - /// Creates a new TransactionHistoryArchiveEntity.ReferenceOrderLineId field instance - public static EntityField2 ReferenceOrderLineId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.ReferenceOrderLineId);} - } - /// Creates a new TransactionHistoryArchiveEntity.TransactionDate field instance - public static EntityField2 TransactionDate - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.TransactionDate);} - } - /// Creates a new TransactionHistoryArchiveEntity.TransactionId field instance - public static EntityField2 TransactionId - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.TransactionId);} - } - /// Creates a new TransactionHistoryArchiveEntity.TransactionType field instance - public static EntityField2 TransactionType - { - get { return (EntityField2)EntityFieldFactory.Create(TransactionHistoryArchiveFieldIndex.TransactionType);} - } - } - - /// Field Creation Class for entity UnitMeasureEntity - public partial class UnitMeasureFields - { - /// Creates a new UnitMeasureEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(UnitMeasureFieldIndex.ModifiedDate);} - } - /// Creates a new UnitMeasureEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(UnitMeasureFieldIndex.Name);} - } - /// Creates a new UnitMeasureEntity.UnitMeasureCode field instance - public static EntityField2 UnitMeasureCode - { - get { return (EntityField2)EntityFieldFactory.Create(UnitMeasureFieldIndex.UnitMeasureCode);} - } - } - - /// Field Creation Class for entity VendorEntity - public partial class VendorFields - { - /// Creates a new VendorEntity.AccountNumber field instance - public static EntityField2 AccountNumber - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.AccountNumber);} - } - /// Creates a new VendorEntity.ActiveFlag field instance - public static EntityField2 ActiveFlag - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.ActiveFlag);} - } - /// Creates a new VendorEntity.CreditRating field instance - public static EntityField2 CreditRating - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.CreditRating);} - } - /// Creates a new VendorEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.ModifiedDate);} - } - /// Creates a new VendorEntity.Name field instance - public static EntityField2 Name - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.Name);} - } - /// Creates a new VendorEntity.PreferredVendorStatus field instance - public static EntityField2 PreferredVendorStatus - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.PreferredVendorStatus);} - } - /// Creates a new VendorEntity.PurchasingWebServiceUrl field instance - public static EntityField2 PurchasingWebServiceUrl - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.PurchasingWebServiceUrl);} - } - /// Creates a new VendorEntity.VendorId field instance - public static EntityField2 VendorId - { - get { return (EntityField2)EntityFieldFactory.Create(VendorFieldIndex.VendorId);} - } - } - - /// Field Creation Class for entity WorkOrderEntity - public partial class WorkOrderFields - { - /// Creates a new WorkOrderEntity.DueDate field instance - public static EntityField2 DueDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.DueDate);} - } - /// Creates a new WorkOrderEntity.EndDate field instance - public static EntityField2 EndDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.EndDate);} - } - /// Creates a new WorkOrderEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.ModifiedDate);} - } - /// Creates a new WorkOrderEntity.OrderQty field instance - public static EntityField2 OrderQty - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.OrderQty);} - } - /// Creates a new WorkOrderEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.ProductId);} - } - /// Creates a new WorkOrderEntity.ScrappedQty field instance - public static EntityField2 ScrappedQty - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.ScrappedQty);} - } - /// Creates a new WorkOrderEntity.ScrapReasonId field instance - public static EntityField2 ScrapReasonId - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.ScrapReasonId);} - } - /// Creates a new WorkOrderEntity.StartDate field instance - public static EntityField2 StartDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.StartDate);} - } - /// Creates a new WorkOrderEntity.StockedQty field instance - public static EntityField2 StockedQty - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.StockedQty);} - } - /// Creates a new WorkOrderEntity.WorkOrderId field instance - public static EntityField2 WorkOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderFieldIndex.WorkOrderId);} - } - } - - /// Field Creation Class for entity WorkOrderRoutingEntity - public partial class WorkOrderRoutingFields - { - /// Creates a new WorkOrderRoutingEntity.ActualCost field instance - public static EntityField2 ActualCost - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ActualCost);} - } - /// Creates a new WorkOrderRoutingEntity.ActualEndDate field instance - public static EntityField2 ActualEndDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ActualEndDate);} - } - /// Creates a new WorkOrderRoutingEntity.ActualResourceHrs field instance - public static EntityField2 ActualResourceHrs - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ActualResourceHrs);} - } - /// Creates a new WorkOrderRoutingEntity.ActualStartDate field instance - public static EntityField2 ActualStartDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ActualStartDate);} - } - /// Creates a new WorkOrderRoutingEntity.LocationId field instance - public static EntityField2 LocationId - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.LocationId);} - } - /// Creates a new WorkOrderRoutingEntity.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ModifiedDate);} - } - /// Creates a new WorkOrderRoutingEntity.OperationSequence field instance - public static EntityField2 OperationSequence - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.OperationSequence);} - } - /// Creates a new WorkOrderRoutingEntity.PlannedCost field instance - public static EntityField2 PlannedCost - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.PlannedCost);} - } - /// Creates a new WorkOrderRoutingEntity.ProductId field instance - public static EntityField2 ProductId - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ProductId);} - } - /// Creates a new WorkOrderRoutingEntity.ScheduledEndDate field instance - public static EntityField2 ScheduledEndDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ScheduledEndDate);} - } - /// Creates a new WorkOrderRoutingEntity.ScheduledStartDate field instance - public static EntityField2 ScheduledStartDate - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.ScheduledStartDate);} - } - /// Creates a new WorkOrderRoutingEntity.WorkOrderId field instance - public static EntityField2 WorkOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(WorkOrderRoutingFieldIndex.WorkOrderId);} - } - } - - - /// Field Creation Class for typedview SohTypedView - public partial class SohFields - { - /// Creates a new SohTypedView.SalesOrderId field instance - public static EntityField2 SalesOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.SalesOrderId);} - } - - /// Creates a new SohTypedView.RevisionNumber field instance - public static EntityField2 RevisionNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.RevisionNumber);} - } - - /// Creates a new SohTypedView.OrderDate field instance - public static EntityField2 OrderDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.OrderDate);} - } - - /// Creates a new SohTypedView.DueDate field instance - public static EntityField2 DueDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.DueDate);} - } - - /// Creates a new SohTypedView.ShipDate field instance - public static EntityField2 ShipDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.ShipDate);} - } - - /// Creates a new SohTypedView.Status field instance - public static EntityField2 Status - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.Status);} - } - - /// Creates a new SohTypedView.OnlineOrderFlag field instance - public static EntityField2 OnlineOrderFlag - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.OnlineOrderFlag);} - } - - /// Creates a new SohTypedView.SalesOrderNumber field instance - public static EntityField2 SalesOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.SalesOrderNumber);} - } - - /// Creates a new SohTypedView.PurchaseOrderNumber field instance - public static EntityField2 PurchaseOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.PurchaseOrderNumber);} - } - - /// Creates a new SohTypedView.AccountNumber field instance - public static EntityField2 AccountNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.AccountNumber);} - } - - /// Creates a new SohTypedView.CustomerId field instance - public static EntityField2 CustomerId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.CustomerId);} - } - - /// Creates a new SohTypedView.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.SalesPersonId);} - } - - /// Creates a new SohTypedView.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.TerritoryId);} - } - - /// Creates a new SohTypedView.BillToAddressId field instance - public static EntityField2 BillToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.BillToAddressId);} - } - - /// Creates a new SohTypedView.ShipToAddressId field instance - public static EntityField2 ShipToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.ShipToAddressId);} - } - - /// Creates a new SohTypedView.ShipMethodId field instance - public static EntityField2 ShipMethodId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.ShipMethodId);} - } - - /// Creates a new SohTypedView.CreditCardId field instance - public static EntityField2 CreditCardId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.CreditCardId);} - } - - /// Creates a new SohTypedView.CreditCardApprovalCode field instance - public static EntityField2 CreditCardApprovalCode - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.CreditCardApprovalCode);} - } - - /// Creates a new SohTypedView.CurrencyRateId field instance - public static EntityField2 CurrencyRateId - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.CurrencyRateId);} - } - - /// Creates a new SohTypedView.SubTotal field instance - public static EntityField2 SubTotal - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.SubTotal);} - } - - /// Creates a new SohTypedView.TaxAmt field instance - public static EntityField2 TaxAmt - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.TaxAmt);} - } - - /// Creates a new SohTypedView.Freight field instance - public static EntityField2 Freight - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.Freight);} - } - - /// Creates a new SohTypedView.TotalDue field instance - public static EntityField2 TotalDue - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.TotalDue);} - } - - /// Creates a new SohTypedView.Comment field instance - public static EntityField2 Comment - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.Comment);} - } - - /// Creates a new SohTypedView.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.Rowguid);} - } - - /// Creates a new SohTypedView.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohFieldIndex.ModifiedDate);} - } - } - - /// Field Creation Class for typedview SohLinqPocoTypedView - public partial class SohLinqPocoFields - { - /// Creates a new SohLinqPocoTypedView.SalesOrderId field instance - public static EntityField2 SalesOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.SalesOrderId);} - } - - /// Creates a new SohLinqPocoTypedView.RevisionNumber field instance - public static EntityField2 RevisionNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.RevisionNumber);} - } - - /// Creates a new SohLinqPocoTypedView.OrderDate field instance - public static EntityField2 OrderDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.OrderDate);} - } - - /// Creates a new SohLinqPocoTypedView.DueDate field instance - public static EntityField2 DueDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.DueDate);} - } - - /// Creates a new SohLinqPocoTypedView.ShipDate field instance - public static EntityField2 ShipDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.ShipDate);} - } - - /// Creates a new SohLinqPocoTypedView.Status field instance - public static EntityField2 Status - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.Status);} - } - - /// Creates a new SohLinqPocoTypedView.OnlineOrderFlag field instance - public static EntityField2 OnlineOrderFlag - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.OnlineOrderFlag);} - } - - /// Creates a new SohLinqPocoTypedView.SalesOrderNumber field instance - public static EntityField2 SalesOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.SalesOrderNumber);} - } - - /// Creates a new SohLinqPocoTypedView.PurchaseOrderNumber field instance - public static EntityField2 PurchaseOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.PurchaseOrderNumber);} - } - - /// Creates a new SohLinqPocoTypedView.AccountNumber field instance - public static EntityField2 AccountNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.AccountNumber);} - } - - /// Creates a new SohLinqPocoTypedView.CustomerId field instance - public static EntityField2 CustomerId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.CustomerId);} - } - - /// Creates a new SohLinqPocoTypedView.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.SalesPersonId);} - } - - /// Creates a new SohLinqPocoTypedView.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.TerritoryId);} - } - - /// Creates a new SohLinqPocoTypedView.BillToAddressId field instance - public static EntityField2 BillToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.BillToAddressId);} - } - - /// Creates a new SohLinqPocoTypedView.ShipToAddressId field instance - public static EntityField2 ShipToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.ShipToAddressId);} - } - - /// Creates a new SohLinqPocoTypedView.ShipMethodId field instance - public static EntityField2 ShipMethodId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.ShipMethodId);} - } - - /// Creates a new SohLinqPocoTypedView.CreditCardId field instance - public static EntityField2 CreditCardId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.CreditCardId);} - } - - /// Creates a new SohLinqPocoTypedView.CreditCardApprovalCode field instance - public static EntityField2 CreditCardApprovalCode - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.CreditCardApprovalCode);} - } - - /// Creates a new SohLinqPocoTypedView.CurrencyRateId field instance - public static EntityField2 CurrencyRateId - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.CurrencyRateId);} - } - - /// Creates a new SohLinqPocoTypedView.SubTotal field instance - public static EntityField2 SubTotal - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.SubTotal);} - } - - /// Creates a new SohLinqPocoTypedView.TaxAmt field instance - public static EntityField2 TaxAmt - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.TaxAmt);} - } - - /// Creates a new SohLinqPocoTypedView.Freight field instance - public static EntityField2 Freight - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.Freight);} - } - - /// Creates a new SohLinqPocoTypedView.TotalDue field instance - public static EntityField2 TotalDue - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.TotalDue);} - } - - /// Creates a new SohLinqPocoTypedView.Comment field instance - public static EntityField2 Comment - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.Comment);} - } - - /// Creates a new SohLinqPocoTypedView.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.Rowguid);} - } - - /// Creates a new SohLinqPocoTypedView.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohLinqPocoFieldIndex.ModifiedDate);} - } - } - - /// Field Creation Class for typedview SohQuerySpecPocoTypedView - public partial class SohQuerySpecPocoFields - { - /// Creates a new SohQuerySpecPocoTypedView.SalesOrderId field instance - public static EntityField2 SalesOrderId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.SalesOrderId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.RevisionNumber field instance - public static EntityField2 RevisionNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.RevisionNumber);} - } - - /// Creates a new SohQuerySpecPocoTypedView.OrderDate field instance - public static EntityField2 OrderDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.OrderDate);} - } - - /// Creates a new SohQuerySpecPocoTypedView.DueDate field instance - public static EntityField2 DueDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.DueDate);} - } - - /// Creates a new SohQuerySpecPocoTypedView.ShipDate field instance - public static EntityField2 ShipDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.ShipDate);} - } - - /// Creates a new SohQuerySpecPocoTypedView.Status field instance - public static EntityField2 Status - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.Status);} - } - - /// Creates a new SohQuerySpecPocoTypedView.OnlineOrderFlag field instance - public static EntityField2 OnlineOrderFlag - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.OnlineOrderFlag);} - } - - /// Creates a new SohQuerySpecPocoTypedView.SalesOrderNumber field instance - public static EntityField2 SalesOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.SalesOrderNumber);} - } - - /// Creates a new SohQuerySpecPocoTypedView.PurchaseOrderNumber field instance - public static EntityField2 PurchaseOrderNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.PurchaseOrderNumber);} - } - - /// Creates a new SohQuerySpecPocoTypedView.AccountNumber field instance - public static EntityField2 AccountNumber - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.AccountNumber);} - } - - /// Creates a new SohQuerySpecPocoTypedView.CustomerId field instance - public static EntityField2 CustomerId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.CustomerId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.SalesPersonId field instance - public static EntityField2 SalesPersonId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.SalesPersonId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.TerritoryId field instance - public static EntityField2 TerritoryId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.TerritoryId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.BillToAddressId field instance - public static EntityField2 BillToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.BillToAddressId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.ShipToAddressId field instance - public static EntityField2 ShipToAddressId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.ShipToAddressId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.ShipMethodId field instance - public static EntityField2 ShipMethodId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.ShipMethodId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.CreditCardId field instance - public static EntityField2 CreditCardId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.CreditCardId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.CreditCardApprovalCode field instance - public static EntityField2 CreditCardApprovalCode - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.CreditCardApprovalCode);} - } - - /// Creates a new SohQuerySpecPocoTypedView.CurrencyRateId field instance - public static EntityField2 CurrencyRateId - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.CurrencyRateId);} - } - - /// Creates a new SohQuerySpecPocoTypedView.SubTotal field instance - public static EntityField2 SubTotal - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.SubTotal);} - } - - /// Creates a new SohQuerySpecPocoTypedView.TaxAmt field instance - public static EntityField2 TaxAmt - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.TaxAmt);} - } - - /// Creates a new SohQuerySpecPocoTypedView.Freight field instance - public static EntityField2 Freight - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.Freight);} - } - - /// Creates a new SohQuerySpecPocoTypedView.TotalDue field instance - public static EntityField2 TotalDue - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.TotalDue);} - } - - /// Creates a new SohQuerySpecPocoTypedView.Comment field instance - public static EntityField2 Comment - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.Comment);} - } - - /// Creates a new SohQuerySpecPocoTypedView.Rowguid field instance - public static EntityField2 Rowguid - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.Rowguid);} - } - - /// Creates a new SohQuerySpecPocoTypedView.ModifiedDate field instance - public static EntityField2 ModifiedDate - { - get { return (EntityField2)EntityFieldFactory.Create(SohQuerySpecPocoFieldIndex.ModifiedDate);} - } - } -} \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/HelperClasses/InheritanceInfoProvider.cs b/LLBLGen53/DatabaseGeneric/HelperClasses/InheritanceInfoProvider.cs deleted file mode 100644 index 0c5d32bb..00000000 --- a/LLBLGen53/DatabaseGeneric/HelperClasses/InheritanceInfoProvider.cs +++ /dev/null @@ -1,72 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.HelperClasses -{ - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - - /// Singleton implementation of the inheritanceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved. - /// It uses a single instance of an internal class. The access isn't marked with locks as the InheritanceInfoProviderBase class is threadsafe. - public static class InheritanceInfoProviderSingleton - { - #region Class Member Declarations - private static readonly IInheritanceInfoProvider _providerInstance = new InheritanceInfoProviderCore(); - #endregion - - /// Dummy static constructor to make sure threadsafe initialization is performed. - static InheritanceInfoProviderSingleton() { } - - /// Gets the singleton instance of the InheritanceInfoProviderCore - /// Instance of the InheritanceInfoProvider. - public static IInheritanceInfoProvider GetInstance() - { - return _providerInstance; - } - - #region Custom InheritanceInfoProviderSingleton code - - // __LLBLGENPRO_USER_CODE_REGION_START CustomInheritanceInfoProviderSingletonCode - // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - } - - /// Actual implementation of the InheritanceInfoProvider. Used by singleton wrapper. - internal class InheritanceInfoProviderCore : InheritanceInfoProviderBase - { - /// Initializes a new instance of the class. - internal InheritanceInfoProviderCore() - { - Init(); - } - - /// Method which initializes the internal datastores with the structure of hierarchical types. - private void Init() - { - base.BuildHierarchyInfoStore(); - } - - /// Gets the entity fields for the entity passed in. Only the fields defined in the entity are returned - /// Name of the entity to grab the fields for - /// array of IEntityFieldCore fields - public override IEntityFieldCore[] GetEntityFields(string entityName) - { - return EntityFieldsFactory.CreateFields(entityName); - } - } -} - - - - diff --git a/LLBLGen53/DatabaseGeneric/HelperClasses/ResultsetFields.cs b/LLBLGen53/DatabaseGeneric/HelperClasses/ResultsetFields.cs deleted file mode 100644 index 1b513457..00000000 --- a/LLBLGen53/DatabaseGeneric/HelperClasses/ResultsetFields.cs +++ /dev/null @@ -1,62 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -#if !CF -using System.Runtime.Serialization; -#endif -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.HelperClasses -{ - /// - /// Helper class which will eases the creation of custom made resultsets. Usable in typed lists - /// and dynamic lists created using the dynamic query engine. - /// - [Serializable] - public partial class ResultsetFields : EntityFields2, ISerializable - { - /// CTor - public ResultsetFields(int amountFields) : base(amountFields, InheritanceInfoProviderSingleton.GetInstance(), null) - { - } - - /// Deserialization constructor - /// Info. - /// Context. - protected ResultsetFields(SerializationInfo info, StreamingContext context) : base(info.GetInt32("_amountFields"), InheritanceInfoProviderSingleton.GetInstance(), null) - { - List fields = (List)info.GetValue("_fields", typeof(List)); - for (int i = 0; i < fields.Count; i++) - { - this[i] = fields[i]; - } - } - - /// Populates a with the data needed to serialize the target object. - /// The to populate with data. - /// The destination (see ) for this serialization. - public virtual void GetObjectData(SerializationInfo info, StreamingContext context) - { - info.AddValue("_amountFields", this.Count); - List fields = new List(this.Count); - for (int i = 0; i < this.Count; i++) - { - fields.Add(this[i]); - } - info.AddValue("_fields", fields, typeof(List)); - } - - #region Included Code - - #endregion - } -} diff --git a/LLBLGen53/DatabaseGeneric/Linq/LinqMetaData.cs b/LLBLGen53/DatabaseGeneric/Linq/LinqMetaData.cs deleted file mode 100644 index add29e0c..00000000 --- a/LLBLGen53/DatabaseGeneric/Linq/LinqMetaData.cs +++ /dev/null @@ -1,725 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -////////////////////////////////////////////////////////////// -using System; -using System.Linq; -using System.Collections.Generic; -using SD.LLBLGen.Pro.LinqSupportClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.EntityClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; - -namespace AdventureWorks.Dal.Adapter.v53.Linq -{ - /// Meta-data class for the construction of Linq queries which are to be executed using LLBLGen Pro code. - public partial class LinqMetaData: ILinqMetaData - { - #region Class Member Declarations - private IDataAccessAdapter _adapterToUse; - private FunctionMappingStore _customFunctionMappings; - private Context _contextToUse; - #endregion - - /// CTor. Using this ctor will leave the IDataAccessAdapter object to use empty. To be able to execute the query, an IDataAccessAdapter instance - /// is required, and has to be set on the LLBLGenProProvider2 object in the query to execute. - public LinqMetaData() : this(null, null) - { - } - - /// CTor which accepts an IDataAccessAdapter implementing object, which will be used to execute queries created with this metadata class. - /// the IDataAccessAdapter to use in queries created with this meta data - /// Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data - /// till they go out of scope. - public LinqMetaData(IDataAccessAdapter adapterToUse) : this (adapterToUse, null) - { - } - - /// CTor which accepts an IDataAccessAdapter implementing object, which will be used to execute queries created with this metadata class. - /// the IDataAccessAdapter to use in queries created with this meta data - /// The custom function mappings to use. These take higher precedence than the ones in the DQE to use. - /// Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data - /// till they go out of scope. - public LinqMetaData(IDataAccessAdapter adapterToUse, FunctionMappingStore customFunctionMappings) - { - _adapterToUse = adapterToUse; - _customFunctionMappings = customFunctionMappings; - } - - /// returns the datasource to use in a Linq query for the entity type specified - /// the type of the entity to get the datasource for - /// the requested datasource - public IDataSource GetQueryableForEntity(int typeOfEntity) - { - IDataSource toReturn = null; - switch((AdventureWorks.Dal.Adapter.v53.EntityType)typeOfEntity) - { - case AdventureWorks.Dal.Adapter.v53.EntityType.AddressEntity: - toReturn = this.Address; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.AddressTypeEntity: - toReturn = this.AddressType; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BillOfMaterialEntity: - toReturn = this.BillOfMaterial; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityEntity: - toReturn = this.BusinessEntity; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityAddressEntity: - toReturn = this.BusinessEntityAddress; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.BusinessEntityContactEntity: - toReturn = this.BusinessEntityContact; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ContactCreditCardEntity: - toReturn = this.ContactCreditCard; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ContactTypeEntity: - toReturn = this.ContactType; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionEntity: - toReturn = this.CountryRegion; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CountryRegionCurrencyEntity: - toReturn = this.CountryRegionCurrency; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CreditCardEntity: - toReturn = this.CreditCard; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CultureEntity: - toReturn = this.Culture; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyEntity: - toReturn = this.Currency; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CurrencyRateEntity: - toReturn = this.CurrencyRate; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.CustomerEntity: - toReturn = this.Customer; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.DepartmentEntity: - toReturn = this.Department; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.DocumentEntity: - toReturn = this.Document; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmailAddressEntity: - toReturn = this.EmailAddress; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeEntity: - toReturn = this.Employee; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmployeeDepartmentHistoryEntity: - toReturn = this.EmployeeDepartmentHistory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.EmployeePayHistoryEntity: - toReturn = this.EmployeePayHistory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.IllustrationEntity: - toReturn = this.Illustration; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.JobCandidateEntity: - toReturn = this.JobCandidate; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.LocationEntity: - toReturn = this.Location; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PasswordEntity: - toReturn = this.Password; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PersonEntity: - toReturn = this.Person; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PersonPhoneEntity: - toReturn = this.PersonPhone; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PhoneNumberTypeEntity: - toReturn = this.PhoneNumberType; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductEntity: - toReturn = this.Product; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductCategoryEntity: - toReturn = this.ProductCategory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductCostHistoryEntity: - toReturn = this.ProductCostHistory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductDescriptionEntity: - toReturn = this.ProductDescription; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductDocumentEntity: - toReturn = this.ProductDocument; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductInventoryEntity: - toReturn = this.ProductInventory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductListPriceHistoryEntity: - toReturn = this.ProductListPriceHistory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelEntity: - toReturn = this.ProductModel; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelIllustrationEntity: - toReturn = this.ProductModelIllustration; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductModelProductDescriptionCultureEntity: - toReturn = this.ProductModelProductDescriptionCulture; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductPhotoEntity: - toReturn = this.ProductPhoto; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductProductPhotoEntity: - toReturn = this.ProductProductPhoto; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductReviewEntity: - toReturn = this.ProductReview; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductSubcategoryEntity: - toReturn = this.ProductSubcategory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ProductVendorEntity: - toReturn = this.ProductVendor; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderDetailEntity: - toReturn = this.PurchaseOrderDetail; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.PurchaseOrderHeaderEntity: - toReturn = this.PurchaseOrderHeader; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderDetailEntity: - toReturn = this.SalesOrderDetail; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderEntity: - toReturn = this.SalesOrderHeader; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesOrderHeaderSalesReasonEntity: - toReturn = this.SalesOrderHeaderSalesReason; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonEntity: - toReturn = this.SalesPerson; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesPersonQuotaHistoryEntity: - toReturn = this.SalesPersonQuotaHistory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesReasonEntity: - toReturn = this.SalesReason; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesTaxRateEntity: - toReturn = this.SalesTaxRate; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryEntity: - toReturn = this.SalesTerritory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SalesTerritoryHistoryEntity: - toReturn = this.SalesTerritoryHistory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ScrapReasonEntity: - toReturn = this.ScrapReason; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ShiftEntity: - toReturn = this.Shift; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ShipMethodEntity: - toReturn = this.ShipMethod; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.ShoppingCartItemEntity: - toReturn = this.ShoppingCartItem; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferEntity: - toReturn = this.SpecialOffer; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.SpecialOfferProductEntity: - toReturn = this.SpecialOfferProduct; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.StateProvinceEntity: - toReturn = this.StateProvince; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.StoreEntity: - toReturn = this.Store; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryEntity: - toReturn = this.TransactionHistory; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.TransactionHistoryArchiveEntity: - toReturn = this.TransactionHistoryArchive; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.UnitMeasureEntity: - toReturn = this.UnitMeasure; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.VendorEntity: - toReturn = this.Vendor; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderEntity: - toReturn = this.WorkOrder; - break; - case AdventureWorks.Dal.Adapter.v53.EntityType.WorkOrderRoutingEntity: - toReturn = this.WorkOrderRouting; - break; - default: - toReturn = null; - break; - } - return toReturn; - } - - /// returns the datasource to use in a Linq query for the entity type specified - /// the type of the entity to get the datasource for - /// the requested datasource - public DataSource2 GetQueryableForEntity() - where TEntity : class - { - return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); - } - - /// returns the datasource to use in a Linq query when targeting AddressEntity instances in the database. - public DataSource2 Address - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting AddressTypeEntity instances in the database. - public DataSource2 AddressType - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting BillOfMaterialEntity instances in the database. - public DataSource2 BillOfMaterial - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting BusinessEntityEntity instances in the database. - public DataSource2 BusinessEntity - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting BusinessEntityAddressEntity instances in the database. - public DataSource2 BusinessEntityAddress - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting BusinessEntityContactEntity instances in the database. - public DataSource2 BusinessEntityContact - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ContactCreditCardEntity instances in the database. - public DataSource2 ContactCreditCard - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ContactTypeEntity instances in the database. - public DataSource2 ContactType - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting CountryRegionEntity instances in the database. - public DataSource2 CountryRegion - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting CountryRegionCurrencyEntity instances in the database. - public DataSource2 CountryRegionCurrency - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting CreditCardEntity instances in the database. - public DataSource2 CreditCard - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting CultureEntity instances in the database. - public DataSource2 Culture - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting CurrencyEntity instances in the database. - public DataSource2 Currency - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting CurrencyRateEntity instances in the database. - public DataSource2 CurrencyRate - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting CustomerEntity instances in the database. - public DataSource2 Customer - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting DepartmentEntity instances in the database. - public DataSource2 Department - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting DocumentEntity instances in the database. - public DataSource2 Document - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting EmailAddressEntity instances in the database. - public DataSource2 EmailAddress - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting EmployeeEntity instances in the database. - public DataSource2 Employee - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting EmployeeDepartmentHistoryEntity instances in the database. - public DataSource2 EmployeeDepartmentHistory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting EmployeePayHistoryEntity instances in the database. - public DataSource2 EmployeePayHistory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting IllustrationEntity instances in the database. - public DataSource2 Illustration - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting JobCandidateEntity instances in the database. - public DataSource2 JobCandidate - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting LocationEntity instances in the database. - public DataSource2 Location - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting PasswordEntity instances in the database. - public DataSource2 Password - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting PersonEntity instances in the database. - public DataSource2 Person - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting PersonPhoneEntity instances in the database. - public DataSource2 PersonPhone - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting PhoneNumberTypeEntity instances in the database. - public DataSource2 PhoneNumberType - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductEntity instances in the database. - public DataSource2 Product - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductCategoryEntity instances in the database. - public DataSource2 ProductCategory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductCostHistoryEntity instances in the database. - public DataSource2 ProductCostHistory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductDescriptionEntity instances in the database. - public DataSource2 ProductDescription - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductDocumentEntity instances in the database. - public DataSource2 ProductDocument - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductInventoryEntity instances in the database. - public DataSource2 ProductInventory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductListPriceHistoryEntity instances in the database. - public DataSource2 ProductListPriceHistory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductModelEntity instances in the database. - public DataSource2 ProductModel - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductModelIllustrationEntity instances in the database. - public DataSource2 ProductModelIllustration - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductModelProductDescriptionCultureEntity instances in the database. - public DataSource2 ProductModelProductDescriptionCulture - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductPhotoEntity instances in the database. - public DataSource2 ProductPhoto - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductProductPhotoEntity instances in the database. - public DataSource2 ProductProductPhoto - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductReviewEntity instances in the database. - public DataSource2 ProductReview - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductSubcategoryEntity instances in the database. - public DataSource2 ProductSubcategory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ProductVendorEntity instances in the database. - public DataSource2 ProductVendor - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting PurchaseOrderDetailEntity instances in the database. - public DataSource2 PurchaseOrderDetail - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting PurchaseOrderHeaderEntity instances in the database. - public DataSource2 PurchaseOrderHeader - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesOrderDetailEntity instances in the database. - public DataSource2 SalesOrderDetail - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesOrderHeaderEntity instances in the database. - public DataSource2 SalesOrderHeader - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesOrderHeaderSalesReasonEntity instances in the database. - public DataSource2 SalesOrderHeaderSalesReason - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesPersonEntity instances in the database. - public DataSource2 SalesPerson - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesPersonQuotaHistoryEntity instances in the database. - public DataSource2 SalesPersonQuotaHistory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesReasonEntity instances in the database. - public DataSource2 SalesReason - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesTaxRateEntity instances in the database. - public DataSource2 SalesTaxRate - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesTerritoryEntity instances in the database. - public DataSource2 SalesTerritory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SalesTerritoryHistoryEntity instances in the database. - public DataSource2 SalesTerritoryHistory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ScrapReasonEntity instances in the database. - public DataSource2 ScrapReason - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ShiftEntity instances in the database. - public DataSource2 Shift - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ShipMethodEntity instances in the database. - public DataSource2 ShipMethod - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting ShoppingCartItemEntity instances in the database. - public DataSource2 ShoppingCartItem - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SpecialOfferEntity instances in the database. - public DataSource2 SpecialOffer - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting SpecialOfferProductEntity instances in the database. - public DataSource2 SpecialOfferProduct - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting StateProvinceEntity instances in the database. - public DataSource2 StateProvince - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting StoreEntity instances in the database. - public DataSource2 Store - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting TransactionHistoryEntity instances in the database. - public DataSource2 TransactionHistory - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting TransactionHistoryArchiveEntity instances in the database. - public DataSource2 TransactionHistoryArchive - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting UnitMeasureEntity instances in the database. - public DataSource2 UnitMeasure - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting VendorEntity instances in the database. - public DataSource2 Vendor - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting WorkOrderEntity instances in the database. - public DataSource2 WorkOrder - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - /// returns the datasource to use in a Linq query when targeting WorkOrderRoutingEntity instances in the database. - public DataSource2 WorkOrderRouting - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse); } - } - - - /// returns the datasource to use in a Linq query when targeting SohLinqPoco instances in the database. - public DataSource2 SohLinqPoco - { - get { return new DataSource2(_adapterToUse, new ElementCreator(), _customFunctionMappings, _contextToUse) { TypedViewEnumTypeValue=(int)TypedViewType.SohLinqPocoTypedView }; } - } - - #region Class Property Declarations - /// Gets / sets the IDataAccessAdapter to use for the queries created with this meta data object. - /// Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data - /// till they go out of scope. - public IDataAccessAdapter AdapterToUse - { - get { return _adapterToUse;} - set { _adapterToUse = value;} - } - - /// Gets or sets the custom function mappings to use. These take higher precedence than the ones in the DQE to use - public FunctionMappingStore CustomFunctionMappings - { - get { return _customFunctionMappings; } - set { _customFunctionMappings = value; } - } - - /// Gets or sets the Context instance to use for entity fetches. - public Context ContextToUse - { - get { return _contextToUse;} - set { _contextToUse = value;} - } - #endregion - } -} \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/AddressRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/AddressRelations.cs deleted file mode 100644 index 2c8428d1..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/AddressRelations.cs +++ /dev/null @@ -1,126 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Address. - public partial class AddressRelations - { - /// CTor - public AddressRelations() - { - } - - /// Gets all relations of the AddressEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityAddressEntityUsingAddressId); - toReturn.Add(this.SalesOrderHeaderEntityUsingBillToAddressId); - toReturn.Add(this.SalesOrderHeaderEntityUsingShipToAddressId); - toReturn.Add(this.StateProvinceEntityUsingStateProvinceId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between AddressEntity and BusinessEntityAddressEntity over the 1:n relation they have, using the relation between the fields: - /// Address.AddressId - BusinessEntityAddress.AddressId - /// - public virtual IEntityRelation BusinessEntityAddressEntityUsingAddressId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BusinessEntityAddresses" , true); - relation.AddEntityFieldPair(AddressFields.AddressId, BusinessEntityAddressFields.AddressId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityAddressEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between AddressEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// Address.AddressId - SalesOrderHeader.BillToAddressId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingBillToAddressId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders" , true); - relation.AddEntityFieldPair(AddressFields.AddressId, SalesOrderHeaderFields.BillToAddressId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between AddressEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// Address.AddressId - SalesOrderHeader.ShipToAddressId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingShipToAddressId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders_" , true); - relation.AddEntityFieldPair(AddressFields.AddressId, SalesOrderHeaderFields.ShipToAddressId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between AddressEntity and StateProvinceEntity over the m:1 relation they have, using the relation between the fields: - /// Address.StateProvinceId - StateProvince.StateProvinceId - /// - public virtual IEntityRelation StateProvinceEntityUsingStateProvinceId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "StateProvince", false); - relation.AddEntityFieldPair(StateProvinceFields.StateProvinceId, AddressFields.StateProvinceId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticAddressRelations - { - internal static readonly IEntityRelation BusinessEntityAddressEntityUsingAddressIdStatic = new AddressRelations().BusinessEntityAddressEntityUsingAddressId; - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingBillToAddressIdStatic = new AddressRelations().SalesOrderHeaderEntityUsingBillToAddressId; - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingShipToAddressIdStatic = new AddressRelations().SalesOrderHeaderEntityUsingShipToAddressId; - internal static readonly IEntityRelation StateProvinceEntityUsingStateProvinceIdStatic = new AddressRelations().StateProvinceEntityUsingStateProvinceId; - - /// CTor - static StaticAddressRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/AddressTypeRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/AddressTypeRelations.cs deleted file mode 100644 index c5730aa2..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/AddressTypeRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: AddressType. - public partial class AddressTypeRelations - { - /// CTor - public AddressTypeRelations() - { - } - - /// Gets all relations of the AddressTypeEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityAddressEntityUsingAddressTypeId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between AddressTypeEntity and BusinessEntityAddressEntity over the 1:n relation they have, using the relation between the fields: - /// AddressType.AddressTypeId - BusinessEntityAddress.AddressTypeId - /// - public virtual IEntityRelation BusinessEntityAddressEntityUsingAddressTypeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BusinessEntityAddresses" , true); - relation.AddEntityFieldPair(AddressTypeFields.AddressTypeId, BusinessEntityAddressFields.AddressTypeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressTypeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityAddressEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticAddressTypeRelations - { - internal static readonly IEntityRelation BusinessEntityAddressEntityUsingAddressTypeIdStatic = new AddressTypeRelations().BusinessEntityAddressEntityUsingAddressTypeId; - - /// CTor - static StaticAddressTypeRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/BillOfMaterialRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/BillOfMaterialRelations.cs deleted file mode 100644 index 6e52e278..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/BillOfMaterialRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: BillOfMaterial. - public partial class BillOfMaterialRelations - { - /// CTor - public BillOfMaterialRelations() - { - } - - /// Gets all relations of the BillOfMaterialEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingComponentId); - toReturn.Add(this.ProductEntityUsingProductAssemblyId); - toReturn.Add(this.UnitMeasureEntityUsingUnitMeasureCode); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between BillOfMaterialEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// BillOfMaterial.ComponentId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingComponentId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, BillOfMaterialFields.ComponentId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BillOfMaterialEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between BillOfMaterialEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// BillOfMaterial.ProductAssemblyId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductAssemblyId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product_", false); - relation.AddEntityFieldPair(ProductFields.ProductId, BillOfMaterialFields.ProductAssemblyId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BillOfMaterialEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between BillOfMaterialEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: - /// BillOfMaterial.UnitMeasureCode - UnitMeasure.UnitMeasureCode - /// - public virtual IEntityRelation UnitMeasureEntityUsingUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "UnitMeasure", false); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, BillOfMaterialFields.UnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BillOfMaterialEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticBillOfMaterialRelations - { - internal static readonly IEntityRelation ProductEntityUsingComponentIdStatic = new BillOfMaterialRelations().ProductEntityUsingComponentId; - internal static readonly IEntityRelation ProductEntityUsingProductAssemblyIdStatic = new BillOfMaterialRelations().ProductEntityUsingProductAssemblyId; - internal static readonly IEntityRelation UnitMeasureEntityUsingUnitMeasureCodeStatic = new BillOfMaterialRelations().UnitMeasureEntityUsingUnitMeasureCode; - - /// CTor - static StaticBillOfMaterialRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityAddressRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityAddressRelations.cs deleted file mode 100644 index 0f5f7bf4..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityAddressRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: BusinessEntityAddress. - public partial class BusinessEntityAddressRelations - { - /// CTor - public BusinessEntityAddressRelations() - { - } - - /// Gets all relations of the BusinessEntityAddressEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.AddressEntityUsingAddressId); - toReturn.Add(this.AddressTypeEntityUsingAddressTypeId); - toReturn.Add(this.BusinessEntityEntityUsingBusinessEntityId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between BusinessEntityAddressEntity and AddressEntity over the m:1 relation they have, using the relation between the fields: - /// BusinessEntityAddress.AddressId - Address.AddressId - /// - public virtual IEntityRelation AddressEntityUsingAddressId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Address", false); - relation.AddEntityFieldPair(AddressFields.AddressId, BusinessEntityAddressFields.AddressId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityAddressEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between BusinessEntityAddressEntity and AddressTypeEntity over the m:1 relation they have, using the relation between the fields: - /// BusinessEntityAddress.AddressTypeId - AddressType.AddressTypeId - /// - public virtual IEntityRelation AddressTypeEntityUsingAddressTypeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "AddressType", false); - relation.AddEntityFieldPair(AddressTypeFields.AddressTypeId, BusinessEntityAddressFields.AddressTypeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressTypeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityAddressEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between BusinessEntityAddressEntity and BusinessEntityEntity over the m:1 relation they have, using the relation between the fields: - /// BusinessEntityAddress.BusinessEntityId - BusinessEntity.BusinessEntityId - /// - public virtual IEntityRelation BusinessEntityEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "BusinessEntity", false); - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, BusinessEntityAddressFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityAddressEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticBusinessEntityAddressRelations - { - internal static readonly IEntityRelation AddressEntityUsingAddressIdStatic = new BusinessEntityAddressRelations().AddressEntityUsingAddressId; - internal static readonly IEntityRelation AddressTypeEntityUsingAddressTypeIdStatic = new BusinessEntityAddressRelations().AddressTypeEntityUsingAddressTypeId; - internal static readonly IEntityRelation BusinessEntityEntityUsingBusinessEntityIdStatic = new BusinessEntityAddressRelations().BusinessEntityEntityUsingBusinessEntityId; - - /// CTor - static StaticBusinessEntityAddressRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityContactRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityContactRelations.cs deleted file mode 100644 index e3373846..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityContactRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: BusinessEntityContact. - public partial class BusinessEntityContactRelations - { - /// CTor - public BusinessEntityContactRelations() - { - } - - /// Gets all relations of the BusinessEntityContactEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityEntityUsingBusinessEntityId); - toReturn.Add(this.ContactTypeEntityUsingContactTypeId); - toReturn.Add(this.PersonEntityUsingPersonId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between BusinessEntityContactEntity and BusinessEntityEntity over the m:1 relation they have, using the relation between the fields: - /// BusinessEntityContact.BusinessEntityId - BusinessEntity.BusinessEntityId - /// - public virtual IEntityRelation BusinessEntityEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "BusinessEntity", false); - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, BusinessEntityContactFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityContactEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between BusinessEntityContactEntity and ContactTypeEntity over the m:1 relation they have, using the relation between the fields: - /// BusinessEntityContact.ContactTypeId - ContactType.ContactTypeId - /// - public virtual IEntityRelation ContactTypeEntityUsingContactTypeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ContactType", false); - relation.AddEntityFieldPair(ContactTypeFields.ContactTypeId, BusinessEntityContactFields.ContactTypeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ContactTypeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityContactEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between BusinessEntityContactEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: - /// BusinessEntityContact.PersonId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Person", false); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, BusinessEntityContactFields.PersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityContactEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticBusinessEntityContactRelations - { - internal static readonly IEntityRelation BusinessEntityEntityUsingBusinessEntityIdStatic = new BusinessEntityContactRelations().BusinessEntityEntityUsingBusinessEntityId; - internal static readonly IEntityRelation ContactTypeEntityUsingContactTypeIdStatic = new BusinessEntityContactRelations().ContactTypeEntityUsingContactTypeId; - internal static readonly IEntityRelation PersonEntityUsingPersonIdStatic = new BusinessEntityContactRelations().PersonEntityUsingPersonId; - - /// CTor - static StaticBusinessEntityContactRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityRelations.cs deleted file mode 100644 index b3e8e9be..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/BusinessEntityRelations.cs +++ /dev/null @@ -1,155 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: BusinessEntity. - public partial class BusinessEntityRelations - { - /// CTor - public BusinessEntityRelations() - { - } - - /// Gets all relations of the BusinessEntityEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityAddressEntityUsingBusinessEntityId); - toReturn.Add(this.BusinessEntityContactEntityUsingBusinessEntityId); - toReturn.Add(this.PersonEntityUsingBusinessEntityId); - toReturn.Add(this.StoreEntityUsingCustomerId); - toReturn.Add(this.VendorEntityUsingVendorId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between BusinessEntityEntity and BusinessEntityAddressEntity over the 1:n relation they have, using the relation between the fields: - /// BusinessEntity.BusinessEntityId - BusinessEntityAddress.BusinessEntityId - /// - public virtual IEntityRelation BusinessEntityAddressEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BusinessEntityAddresses" , true); - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, BusinessEntityAddressFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityAddressEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between BusinessEntityEntity and BusinessEntityContactEntity over the 1:n relation they have, using the relation between the fields: - /// BusinessEntity.BusinessEntityId - BusinessEntityContact.BusinessEntityId - /// - public virtual IEntityRelation BusinessEntityContactEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BusinessEntityContacts" , true); - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, BusinessEntityContactFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityContactEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between BusinessEntityEntity and PersonEntity over the 1:1 relation they have, using the relation between the fields: - /// BusinessEntity.BusinessEntityId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Person", true); - - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, PersonFields.BusinessEntityId); - - - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between BusinessEntityEntity and StoreEntity over the 1:1 relation they have, using the relation between the fields: - /// BusinessEntity.BusinessEntityId - Store.CustomerId - /// - public virtual IEntityRelation StoreEntityUsingCustomerId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Store", true); - - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, StoreFields.CustomerId); - - - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StoreEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between BusinessEntityEntity and VendorEntity over the 1:1 relation they have, using the relation between the fields: - /// BusinessEntity.BusinessEntityId - Vendor.VendorId - /// - public virtual IEntityRelation VendorEntityUsingVendorId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Vendor", true); - - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, VendorFields.VendorId); - - - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("VendorEntity", false); - return relation; - } - } - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticBusinessEntityRelations - { - internal static readonly IEntityRelation BusinessEntityAddressEntityUsingBusinessEntityIdStatic = new BusinessEntityRelations().BusinessEntityAddressEntityUsingBusinessEntityId; - internal static readonly IEntityRelation BusinessEntityContactEntityUsingBusinessEntityIdStatic = new BusinessEntityRelations().BusinessEntityContactEntityUsingBusinessEntityId; - internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new BusinessEntityRelations().PersonEntityUsingBusinessEntityId; - internal static readonly IEntityRelation StoreEntityUsingCustomerIdStatic = new BusinessEntityRelations().StoreEntityUsingCustomerId; - internal static readonly IEntityRelation VendorEntityUsingVendorIdStatic = new BusinessEntityRelations().VendorEntityUsingVendorId; - - /// CTor - static StaticBusinessEntityRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ContactCreditCardRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ContactCreditCardRelations.cs deleted file mode 100644 index 6165a71f..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ContactCreditCardRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ContactCreditCard. - public partial class ContactCreditCardRelations - { - /// CTor - public ContactCreditCardRelations() - { - } - - /// Gets all relations of the ContactCreditCardEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.CreditCardEntityUsingCreditCardId); - toReturn.Add(this.PersonEntityUsingContactId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ContactCreditCardEntity and CreditCardEntity over the m:1 relation they have, using the relation between the fields: - /// ContactCreditCard.CreditCardId - CreditCard.CreditCardId - /// - public virtual IEntityRelation CreditCardEntityUsingCreditCardId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "CreditCard", false); - relation.AddEntityFieldPair(CreditCardFields.CreditCardId, ContactCreditCardFields.CreditCardId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CreditCardEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ContactCreditCardEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ContactCreditCardEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: - /// ContactCreditCard.ContactId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingContactId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Person", false); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, ContactCreditCardFields.ContactId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ContactCreditCardEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticContactCreditCardRelations - { - internal static readonly IEntityRelation CreditCardEntityUsingCreditCardIdStatic = new ContactCreditCardRelations().CreditCardEntityUsingCreditCardId; - internal static readonly IEntityRelation PersonEntityUsingContactIdStatic = new ContactCreditCardRelations().PersonEntityUsingContactId; - - /// CTor - static StaticContactCreditCardRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ContactTypeRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ContactTypeRelations.cs deleted file mode 100644 index d196a13e..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ContactTypeRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ContactType. - public partial class ContactTypeRelations - { - /// CTor - public ContactTypeRelations() - { - } - - /// Gets all relations of the ContactTypeEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityContactEntityUsingContactTypeId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ContactTypeEntity and BusinessEntityContactEntity over the 1:n relation they have, using the relation between the fields: - /// ContactType.ContactTypeId - BusinessEntityContact.ContactTypeId - /// - public virtual IEntityRelation BusinessEntityContactEntityUsingContactTypeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BusinessEntityContacts" , true); - relation.AddEntityFieldPair(ContactTypeFields.ContactTypeId, BusinessEntityContactFields.ContactTypeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ContactTypeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityContactEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticContactTypeRelations - { - internal static readonly IEntityRelation BusinessEntityContactEntityUsingContactTypeIdStatic = new ContactTypeRelations().BusinessEntityContactEntityUsingContactTypeId; - - /// CTor - static StaticContactTypeRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionCurrencyRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionCurrencyRelations.cs deleted file mode 100644 index f6701420..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionCurrencyRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: CountryRegionCurrency. - public partial class CountryRegionCurrencyRelations - { - /// CTor - public CountryRegionCurrencyRelations() - { - } - - /// Gets all relations of the CountryRegionCurrencyEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.CountryRegionEntityUsingCountryRegionCode); - toReturn.Add(this.CurrencyEntityUsingCurrencyCode); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between CountryRegionCurrencyEntity and CountryRegionEntity over the m:1 relation they have, using the relation between the fields: - /// CountryRegionCurrency.CountryRegionCode - CountryRegion.CountryRegionCode - /// - public virtual IEntityRelation CountryRegionEntityUsingCountryRegionCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "CountryRegion", false); - relation.AddEntityFieldPair(CountryRegionFields.CountryRegionCode, CountryRegionCurrencyFields.CountryRegionCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionCurrencyEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between CountryRegionCurrencyEntity and CurrencyEntity over the m:1 relation they have, using the relation between the fields: - /// CountryRegionCurrency.CurrencyCode - Currency.CurrencyCode - /// - public virtual IEntityRelation CurrencyEntityUsingCurrencyCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Currency", false); - relation.AddEntityFieldPair(CurrencyFields.CurrencyCode, CountryRegionCurrencyFields.CurrencyCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionCurrencyEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticCountryRegionCurrencyRelations - { - internal static readonly IEntityRelation CountryRegionEntityUsingCountryRegionCodeStatic = new CountryRegionCurrencyRelations().CountryRegionEntityUsingCountryRegionCode; - internal static readonly IEntityRelation CurrencyEntityUsingCurrencyCodeStatic = new CountryRegionCurrencyRelations().CurrencyEntityUsingCurrencyCode; - - /// CTor - static StaticCountryRegionCurrencyRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionRelations.cs deleted file mode 100644 index 63e6f633..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/CountryRegionRelations.cs +++ /dev/null @@ -1,110 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: CountryRegion. - public partial class CountryRegionRelations - { - /// CTor - public CountryRegionRelations() - { - } - - /// Gets all relations of the CountryRegionEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.CountryRegionCurrencyEntityUsingCountryRegionCode); - toReturn.Add(this.SalesTerritoryEntityUsingCountryRegionCode); - toReturn.Add(this.StateProvinceEntityUsingCountryRegionCode); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between CountryRegionEntity and CountryRegionCurrencyEntity over the 1:n relation they have, using the relation between the fields: - /// CountryRegion.CountryRegionCode - CountryRegionCurrency.CountryRegionCode - /// - public virtual IEntityRelation CountryRegionCurrencyEntityUsingCountryRegionCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "CountryRegionCurrencies" , true); - relation.AddEntityFieldPair(CountryRegionFields.CountryRegionCode, CountryRegionCurrencyFields.CountryRegionCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionCurrencyEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between CountryRegionEntity and SalesTerritoryEntity over the 1:n relation they have, using the relation between the fields: - /// CountryRegion.CountryRegionCode - SalesTerritory.CountryRegionCode - /// - public virtual IEntityRelation SalesTerritoryEntityUsingCountryRegionCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesTerritories" , true); - relation.AddEntityFieldPair(CountryRegionFields.CountryRegionCode, SalesTerritoryFields.CountryRegionCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between CountryRegionEntity and StateProvinceEntity over the 1:n relation they have, using the relation between the fields: - /// CountryRegion.CountryRegionCode - StateProvince.CountryRegionCode - /// - public virtual IEntityRelation StateProvinceEntityUsingCountryRegionCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "StateProvinces" , true); - relation.AddEntityFieldPair(CountryRegionFields.CountryRegionCode, StateProvinceFields.CountryRegionCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticCountryRegionRelations - { - internal static readonly IEntityRelation CountryRegionCurrencyEntityUsingCountryRegionCodeStatic = new CountryRegionRelations().CountryRegionCurrencyEntityUsingCountryRegionCode; - internal static readonly IEntityRelation SalesTerritoryEntityUsingCountryRegionCodeStatic = new CountryRegionRelations().SalesTerritoryEntityUsingCountryRegionCode; - internal static readonly IEntityRelation StateProvinceEntityUsingCountryRegionCodeStatic = new CountryRegionRelations().StateProvinceEntityUsingCountryRegionCode; - - /// CTor - static StaticCountryRegionRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/CreditCardRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/CreditCardRelations.cs deleted file mode 100644 index 6981c553..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/CreditCardRelations.cs +++ /dev/null @@ -1,93 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: CreditCard. - public partial class CreditCardRelations - { - /// CTor - public CreditCardRelations() - { - } - - /// Gets all relations of the CreditCardEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ContactCreditCardEntityUsingCreditCardId); - toReturn.Add(this.SalesOrderHeaderEntityUsingCreditCardId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between CreditCardEntity and ContactCreditCardEntity over the 1:n relation they have, using the relation between the fields: - /// CreditCard.CreditCardId - ContactCreditCard.CreditCardId - /// - public virtual IEntityRelation ContactCreditCardEntityUsingCreditCardId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ContactCreditCards" , true); - relation.AddEntityFieldPair(CreditCardFields.CreditCardId, ContactCreditCardFields.CreditCardId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CreditCardEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ContactCreditCardEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between CreditCardEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// CreditCard.CreditCardId - SalesOrderHeader.CreditCardId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingCreditCardId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders" , true); - relation.AddEntityFieldPair(CreditCardFields.CreditCardId, SalesOrderHeaderFields.CreditCardId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CreditCardEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticCreditCardRelations - { - internal static readonly IEntityRelation ContactCreditCardEntityUsingCreditCardIdStatic = new CreditCardRelations().ContactCreditCardEntityUsingCreditCardId; - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingCreditCardIdStatic = new CreditCardRelations().SalesOrderHeaderEntityUsingCreditCardId; - - /// CTor - static StaticCreditCardRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/CultureRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/CultureRelations.cs deleted file mode 100644 index d10524c6..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/CultureRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Culture. - public partial class CultureRelations - { - /// CTor - public CultureRelations() - { - } - - /// Gets all relations of the CultureEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductModelProductDescriptionCultureEntityUsingCultureId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between CultureEntity and ProductModelProductDescriptionCultureEntity over the 1:n relation they have, using the relation between the fields: - /// Culture.CultureId - ProductModelProductDescriptionCulture.CultureId - /// - public virtual IEntityRelation ProductModelProductDescriptionCultureEntityUsingCultureId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductModelProductDescriptionCultures" , true); - relation.AddEntityFieldPair(CultureFields.CultureId, ProductModelProductDescriptionCultureFields.CultureId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CultureEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelProductDescriptionCultureEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticCultureRelations - { - internal static readonly IEntityRelation ProductModelProductDescriptionCultureEntityUsingCultureIdStatic = new CultureRelations().ProductModelProductDescriptionCultureEntityUsingCultureId; - - /// CTor - static StaticCultureRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRateRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRateRelations.cs deleted file mode 100644 index adad29b7..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRateRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: CurrencyRate. - public partial class CurrencyRateRelations - { - /// CTor - public CurrencyRateRelations() - { - } - - /// Gets all relations of the CurrencyRateEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaderEntityUsingCurrencyRateId); - toReturn.Add(this.CurrencyEntityUsingFromCurrencyCode); - toReturn.Add(this.CurrencyEntityUsingToCurrencyCode); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between CurrencyRateEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// CurrencyRate.CurrencyRateId - SalesOrderHeader.CurrencyRateId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingCurrencyRateId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders" , true); - relation.AddEntityFieldPair(CurrencyRateFields.CurrencyRateId, SalesOrderHeaderFields.CurrencyRateId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyRateEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between CurrencyRateEntity and CurrencyEntity over the m:1 relation they have, using the relation between the fields: - /// CurrencyRate.FromCurrencyCode - Currency.CurrencyCode - /// - public virtual IEntityRelation CurrencyEntityUsingFromCurrencyCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Currency", false); - relation.AddEntityFieldPair(CurrencyFields.CurrencyCode, CurrencyRateFields.FromCurrencyCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyRateEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between CurrencyRateEntity and CurrencyEntity over the m:1 relation they have, using the relation between the fields: - /// CurrencyRate.ToCurrencyCode - Currency.CurrencyCode - /// - public virtual IEntityRelation CurrencyEntityUsingToCurrencyCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Currency_", false); - relation.AddEntityFieldPair(CurrencyFields.CurrencyCode, CurrencyRateFields.ToCurrencyCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyRateEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticCurrencyRateRelations - { - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingCurrencyRateIdStatic = new CurrencyRateRelations().SalesOrderHeaderEntityUsingCurrencyRateId; - internal static readonly IEntityRelation CurrencyEntityUsingFromCurrencyCodeStatic = new CurrencyRateRelations().CurrencyEntityUsingFromCurrencyCode; - internal static readonly IEntityRelation CurrencyEntityUsingToCurrencyCodeStatic = new CurrencyRateRelations().CurrencyEntityUsingToCurrencyCode; - - /// CTor - static StaticCurrencyRateRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRelations.cs deleted file mode 100644 index 8f7cdf08..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/CurrencyRelations.cs +++ /dev/null @@ -1,110 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Currency. - public partial class CurrencyRelations - { - /// CTor - public CurrencyRelations() - { - } - - /// Gets all relations of the CurrencyEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.CountryRegionCurrencyEntityUsingCurrencyCode); - toReturn.Add(this.CurrencyRateEntityUsingFromCurrencyCode); - toReturn.Add(this.CurrencyRateEntityUsingToCurrencyCode); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between CurrencyEntity and CountryRegionCurrencyEntity over the 1:n relation they have, using the relation between the fields: - /// Currency.CurrencyCode - CountryRegionCurrency.CurrencyCode - /// - public virtual IEntityRelation CountryRegionCurrencyEntityUsingCurrencyCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "CountryRegionCurrencies" , true); - relation.AddEntityFieldPair(CurrencyFields.CurrencyCode, CountryRegionCurrencyFields.CurrencyCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionCurrencyEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between CurrencyEntity and CurrencyRateEntity over the 1:n relation they have, using the relation between the fields: - /// Currency.CurrencyCode - CurrencyRate.FromCurrencyCode - /// - public virtual IEntityRelation CurrencyRateEntityUsingFromCurrencyCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "CurrencyRates" , true); - relation.AddEntityFieldPair(CurrencyFields.CurrencyCode, CurrencyRateFields.FromCurrencyCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyRateEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between CurrencyEntity and CurrencyRateEntity over the 1:n relation they have, using the relation between the fields: - /// Currency.CurrencyCode - CurrencyRate.ToCurrencyCode - /// - public virtual IEntityRelation CurrencyRateEntityUsingToCurrencyCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "CurrencyRates_" , true); - relation.AddEntityFieldPair(CurrencyFields.CurrencyCode, CurrencyRateFields.ToCurrencyCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyRateEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticCurrencyRelations - { - internal static readonly IEntityRelation CountryRegionCurrencyEntityUsingCurrencyCodeStatic = new CurrencyRelations().CountryRegionCurrencyEntityUsingCurrencyCode; - internal static readonly IEntityRelation CurrencyRateEntityUsingFromCurrencyCodeStatic = new CurrencyRelations().CurrencyRateEntityUsingFromCurrencyCode; - internal static readonly IEntityRelation CurrencyRateEntityUsingToCurrencyCodeStatic = new CurrencyRelations().CurrencyRateEntityUsingToCurrencyCode; - - /// CTor - static StaticCurrencyRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/CustomerRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/CustomerRelations.cs deleted file mode 100644 index 9534ac41..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/CustomerRelations.cs +++ /dev/null @@ -1,124 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Customer. - public partial class CustomerRelations - { - /// CTor - public CustomerRelations() - { - } - - /// Gets all relations of the CustomerEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaderEntityUsingCustomerId); - toReturn.Add(this.PersonEntityUsingPersonId); - toReturn.Add(this.SalesTerritoryEntityUsingTerritoryId); - toReturn.Add(this.StoreEntityUsingStoreId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between CustomerEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// Customer.CustomerId - SalesOrderHeader.CustomerId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingCustomerId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders" , true); - relation.AddEntityFieldPair(CustomerFields.CustomerId, SalesOrderHeaderFields.CustomerId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between CustomerEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: - /// Customer.PersonId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Person", false); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, CustomerFields.PersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between CustomerEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: - /// Customer.TerritoryId - SalesTerritory.TerritoryId - /// - public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesTerritory", false); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, CustomerFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between CustomerEntity and StoreEntity over the m:1 relation they have, using the relation between the fields: - /// Customer.StoreId - Store.CustomerId - /// - public virtual IEntityRelation StoreEntityUsingStoreId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Store", false); - relation.AddEntityFieldPair(StoreFields.CustomerId, CustomerFields.StoreId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StoreEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticCustomerRelations - { - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingCustomerIdStatic = new CustomerRelations().SalesOrderHeaderEntityUsingCustomerId; - internal static readonly IEntityRelation PersonEntityUsingPersonIdStatic = new CustomerRelations().PersonEntityUsingPersonId; - internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new CustomerRelations().SalesTerritoryEntityUsingTerritoryId; - internal static readonly IEntityRelation StoreEntityUsingStoreIdStatic = new CustomerRelations().StoreEntityUsingStoreId; - - /// CTor - static StaticCustomerRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/DepartmentRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/DepartmentRelations.cs deleted file mode 100644 index fa8f8d13..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/DepartmentRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Department. - public partial class DepartmentRelations - { - /// CTor - public DepartmentRelations() - { - } - - /// Gets all relations of the DepartmentEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.EmployeeDepartmentHistoryEntityUsingDepartmentId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between DepartmentEntity and EmployeeDepartmentHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// Department.DepartmentId - EmployeeDepartmentHistory.DepartmentId - /// - public virtual IEntityRelation EmployeeDepartmentHistoryEntityUsingDepartmentId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "EmployeeDepartmentHistories" , true); - relation.AddEntityFieldPair(DepartmentFields.DepartmentId, EmployeeDepartmentHistoryFields.DepartmentId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("DepartmentEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeDepartmentHistoryEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticDepartmentRelations - { - internal static readonly IEntityRelation EmployeeDepartmentHistoryEntityUsingDepartmentIdStatic = new DepartmentRelations().EmployeeDepartmentHistoryEntityUsingDepartmentId; - - /// CTor - static StaticDepartmentRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/DocumentRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/DocumentRelations.cs deleted file mode 100644 index 87bdd467..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/DocumentRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Document. - public partial class DocumentRelations - { - /// CTor - public DocumentRelations() - { - } - - /// Gets all relations of the DocumentEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductDocumentEntityUsingDocumentNode); - toReturn.Add(this.EmployeeEntityUsingOwner); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between DocumentEntity and ProductDocumentEntity over the 1:n relation they have, using the relation between the fields: - /// Document.DocumentNode - ProductDocument.DocumentNode - /// - public virtual IEntityRelation ProductDocumentEntityUsingDocumentNode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductDocuments" , true); - relation.AddEntityFieldPair(DocumentFields.DocumentNode, ProductDocumentFields.DocumentNode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("DocumentEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductDocumentEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between DocumentEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: - /// Document.Owner - Employee.EmployeeId - /// - public virtual IEntityRelation EmployeeEntityUsingOwner - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Employee", false); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, DocumentFields.Owner); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("DocumentEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticDocumentRelations - { - internal static readonly IEntityRelation ProductDocumentEntityUsingDocumentNodeStatic = new DocumentRelations().ProductDocumentEntityUsingDocumentNode; - internal static readonly IEntityRelation EmployeeEntityUsingOwnerStatic = new DocumentRelations().EmployeeEntityUsingOwner; - - /// CTor - static StaticDocumentRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/EmailAddressRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/EmailAddressRelations.cs deleted file mode 100644 index a4309234..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/EmailAddressRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: EmailAddress. - public partial class EmailAddressRelations - { - /// CTor - public EmailAddressRelations() - { - } - - /// Gets all relations of the EmailAddressEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.PersonEntityUsingBusinessEntityId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between EmailAddressEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: - /// EmailAddress.BusinessEntityId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Person", false); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, EmailAddressFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmailAddressEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticEmailAddressRelations - { - internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new EmailAddressRelations().PersonEntityUsingBusinessEntityId; - - /// CTor - static StaticEmailAddressRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeDepartmentHistoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeDepartmentHistoryRelations.cs deleted file mode 100644 index 3ee33c39..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeDepartmentHistoryRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: EmployeeDepartmentHistory. - public partial class EmployeeDepartmentHistoryRelations - { - /// CTor - public EmployeeDepartmentHistoryRelations() - { - } - - /// Gets all relations of the EmployeeDepartmentHistoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.DepartmentEntityUsingDepartmentId); - toReturn.Add(this.EmployeeEntityUsingEmployeeId); - toReturn.Add(this.ShiftEntityUsingShiftId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between EmployeeDepartmentHistoryEntity and DepartmentEntity over the m:1 relation they have, using the relation between the fields: - /// EmployeeDepartmentHistory.DepartmentId - Department.DepartmentId - /// - public virtual IEntityRelation DepartmentEntityUsingDepartmentId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Department", false); - relation.AddEntityFieldPair(DepartmentFields.DepartmentId, EmployeeDepartmentHistoryFields.DepartmentId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("DepartmentEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeDepartmentHistoryEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between EmployeeDepartmentHistoryEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: - /// EmployeeDepartmentHistory.EmployeeId - Employee.EmployeeId - /// - public virtual IEntityRelation EmployeeEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Employee", false); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, EmployeeDepartmentHistoryFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeDepartmentHistoryEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between EmployeeDepartmentHistoryEntity and ShiftEntity over the m:1 relation they have, using the relation between the fields: - /// EmployeeDepartmentHistory.ShiftId - Shift.ShiftId - /// - public virtual IEntityRelation ShiftEntityUsingShiftId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Shift", false); - relation.AddEntityFieldPair(ShiftFields.ShiftId, EmployeeDepartmentHistoryFields.ShiftId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShiftEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeDepartmentHistoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticEmployeeDepartmentHistoryRelations - { - internal static readonly IEntityRelation DepartmentEntityUsingDepartmentIdStatic = new EmployeeDepartmentHistoryRelations().DepartmentEntityUsingDepartmentId; - internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new EmployeeDepartmentHistoryRelations().EmployeeEntityUsingEmployeeId; - internal static readonly IEntityRelation ShiftEntityUsingShiftIdStatic = new EmployeeDepartmentHistoryRelations().ShiftEntityUsingShiftId; - - /// CTor - static StaticEmployeeDepartmentHistoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeePayHistoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeePayHistoryRelations.cs deleted file mode 100644 index e51b1a89..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeePayHistoryRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: EmployeePayHistory. - public partial class EmployeePayHistoryRelations - { - /// CTor - public EmployeePayHistoryRelations() - { - } - - /// Gets all relations of the EmployeePayHistoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.EmployeeEntityUsingEmployeeId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between EmployeePayHistoryEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: - /// EmployeePayHistory.EmployeeId - Employee.EmployeeId - /// - public virtual IEntityRelation EmployeeEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Employee", false); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, EmployeePayHistoryFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeePayHistoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticEmployeePayHistoryRelations - { - internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new EmployeePayHistoryRelations().EmployeeEntityUsingEmployeeId; - - /// CTor - static StaticEmployeePayHistoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeRelations.cs deleted file mode 100644 index 72a02be3..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/EmployeeRelations.cs +++ /dev/null @@ -1,185 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Employee. - public partial class EmployeeRelations - { - /// CTor - public EmployeeRelations() - { - } - - /// Gets all relations of the EmployeeEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.DocumentEntityUsingOwner); - toReturn.Add(this.EmployeeDepartmentHistoryEntityUsingEmployeeId); - toReturn.Add(this.EmployeePayHistoryEntityUsingEmployeeId); - toReturn.Add(this.JobCandidateEntityUsingEmployeeId); - toReturn.Add(this.PurchaseOrderHeaderEntityUsingEmployeeId); - toReturn.Add(this.PersonEntityUsingEmployeeId); - toReturn.Add(this.SalesPersonEntityUsingSalesPersonId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between EmployeeEntity and DocumentEntity over the 1:n relation they have, using the relation between the fields: - /// Employee.EmployeeId - Document.Owner - /// - public virtual IEntityRelation DocumentEntityUsingOwner - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Documents" , true); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, DocumentFields.Owner); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("DocumentEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between EmployeeEntity and EmployeeDepartmentHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// Employee.EmployeeId - EmployeeDepartmentHistory.EmployeeId - /// - public virtual IEntityRelation EmployeeDepartmentHistoryEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "EmployeeDepartmentHistories" , true); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, EmployeeDepartmentHistoryFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeDepartmentHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between EmployeeEntity and EmployeePayHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// Employee.EmployeeId - EmployeePayHistory.EmployeeId - /// - public virtual IEntityRelation EmployeePayHistoryEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "EmployeePayHistories" , true); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, EmployeePayHistoryFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeePayHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between EmployeeEntity and JobCandidateEntity over the 1:n relation they have, using the relation between the fields: - /// Employee.EmployeeId - JobCandidate.EmployeeId - /// - public virtual IEntityRelation JobCandidateEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "JobCandidates" , true); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, JobCandidateFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("JobCandidateEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between EmployeeEntity and PurchaseOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// Employee.EmployeeId - PurchaseOrderHeader.EmployeeId - /// - public virtual IEntityRelation PurchaseOrderHeaderEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "PurchaseOrderHeaders" , true); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, PurchaseOrderHeaderFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between EmployeeEntity and PersonEntity over the 1:1 relation they have, using the relation between the fields: - /// Employee.EmployeeId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Person", false); - - - - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, EmployeeFields.EmployeeId); - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", true); - return relation; - } - } - - /// Returns a new IEntityRelation object, between EmployeeEntity and SalesPersonEntity over the 1:1 relation they have, using the relation between the fields: - /// Employee.EmployeeId - SalesPerson.SalesPersonId - /// - public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "SalesPerson", true); - - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, SalesPersonFields.SalesPersonId); - - - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", false); - return relation; - } - } - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticEmployeeRelations - { - internal static readonly IEntityRelation DocumentEntityUsingOwnerStatic = new EmployeeRelations().DocumentEntityUsingOwner; - internal static readonly IEntityRelation EmployeeDepartmentHistoryEntityUsingEmployeeIdStatic = new EmployeeRelations().EmployeeDepartmentHistoryEntityUsingEmployeeId; - internal static readonly IEntityRelation EmployeePayHistoryEntityUsingEmployeeIdStatic = new EmployeeRelations().EmployeePayHistoryEntityUsingEmployeeId; - internal static readonly IEntityRelation JobCandidateEntityUsingEmployeeIdStatic = new EmployeeRelations().JobCandidateEntityUsingEmployeeId; - internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingEmployeeIdStatic = new EmployeeRelations().PurchaseOrderHeaderEntityUsingEmployeeId; - internal static readonly IEntityRelation PersonEntityUsingEmployeeIdStatic = new EmployeeRelations().PersonEntityUsingEmployeeId; - internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new EmployeeRelations().SalesPersonEntityUsingSalesPersonId; - - /// CTor - static StaticEmployeeRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/IllustrationRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/IllustrationRelations.cs deleted file mode 100644 index f21e5958..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/IllustrationRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Illustration. - public partial class IllustrationRelations - { - /// CTor - public IllustrationRelations() - { - } - - /// Gets all relations of the IllustrationEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductModelIllustrationEntityUsingIllustrationId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between IllustrationEntity and ProductModelIllustrationEntity over the 1:n relation they have, using the relation between the fields: - /// Illustration.IllustrationId - ProductModelIllustration.IllustrationId - /// - public virtual IEntityRelation ProductModelIllustrationEntityUsingIllustrationId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductModelIllustrations" , true); - relation.AddEntityFieldPair(IllustrationFields.IllustrationId, ProductModelIllustrationFields.IllustrationId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("IllustrationEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelIllustrationEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticIllustrationRelations - { - internal static readonly IEntityRelation ProductModelIllustrationEntityUsingIllustrationIdStatic = new IllustrationRelations().ProductModelIllustrationEntityUsingIllustrationId; - - /// CTor - static StaticIllustrationRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/JobCandidateRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/JobCandidateRelations.cs deleted file mode 100644 index abdb0182..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/JobCandidateRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: JobCandidate. - public partial class JobCandidateRelations - { - /// CTor - public JobCandidateRelations() - { - } - - /// Gets all relations of the JobCandidateEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.EmployeeEntityUsingEmployeeId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between JobCandidateEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: - /// JobCandidate.EmployeeId - Employee.EmployeeId - /// - public virtual IEntityRelation EmployeeEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Employee", false); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, JobCandidateFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("JobCandidateEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticJobCandidateRelations - { - internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new JobCandidateRelations().EmployeeEntityUsingEmployeeId; - - /// CTor - static StaticJobCandidateRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/LocationRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/LocationRelations.cs deleted file mode 100644 index a12c0c3b..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/LocationRelations.cs +++ /dev/null @@ -1,93 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Location. - public partial class LocationRelations - { - /// CTor - public LocationRelations() - { - } - - /// Gets all relations of the LocationEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductInventoryEntityUsingLocationId); - toReturn.Add(this.WorkOrderRoutingEntityUsingLocationId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between LocationEntity and ProductInventoryEntity over the 1:n relation they have, using the relation between the fields: - /// Location.LocationId - ProductInventory.LocationId - /// - public virtual IEntityRelation ProductInventoryEntityUsingLocationId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductInventories" , true); - relation.AddEntityFieldPair(LocationFields.LocationId, ProductInventoryFields.LocationId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("LocationEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductInventoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between LocationEntity and WorkOrderRoutingEntity over the 1:n relation they have, using the relation between the fields: - /// Location.LocationId - WorkOrderRouting.LocationId - /// - public virtual IEntityRelation WorkOrderRoutingEntityUsingLocationId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "WorkOrderRoutings" , true); - relation.AddEntityFieldPair(LocationFields.LocationId, WorkOrderRoutingFields.LocationId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("LocationEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderRoutingEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticLocationRelations - { - internal static readonly IEntityRelation ProductInventoryEntityUsingLocationIdStatic = new LocationRelations().ProductInventoryEntityUsingLocationId; - internal static readonly IEntityRelation WorkOrderRoutingEntityUsingLocationIdStatic = new LocationRelations().WorkOrderRoutingEntityUsingLocationId; - - /// CTor - static StaticLocationRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/PasswordRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/PasswordRelations.cs deleted file mode 100644 index 062e24c5..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/PasswordRelations.cs +++ /dev/null @@ -1,80 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Password. - public partial class PasswordRelations - { - /// CTor - public PasswordRelations() - { - } - - /// Gets all relations of the PasswordEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.PersonEntityUsingBusinessEntityId); - return toReturn; - } - - #region Class Property Declarations - - - /// Returns a new IEntityRelation object, between PasswordEntity and PersonEntity over the 1:1 relation they have, using the relation between the fields: - /// Password.BusinessEntityId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Person", false); - - - - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, PasswordFields.BusinessEntityId); - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PasswordEntity", true); - return relation; - } - } - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticPasswordRelations - { - internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new PasswordRelations().PersonEntityUsingBusinessEntityId; - - /// CTor - static StaticPasswordRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/PersonPhoneRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/PersonPhoneRelations.cs deleted file mode 100644 index 040ba34b..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/PersonPhoneRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: PersonPhone. - public partial class PersonPhoneRelations - { - /// CTor - public PersonPhoneRelations() - { - } - - /// Gets all relations of the PersonPhoneEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.PersonEntityUsingBusinessEntityId); - toReturn.Add(this.PhoneNumberTypeEntityUsingPhoneNumberTypeId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between PersonPhoneEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: - /// PersonPhone.BusinessEntityId - Person.BusinessEntityId - /// - public virtual IEntityRelation PersonEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Person", false); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, PersonPhoneFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonPhoneEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between PersonPhoneEntity and PhoneNumberTypeEntity over the m:1 relation they have, using the relation between the fields: - /// PersonPhone.PhoneNumberTypeId - PhoneNumberType.PhoneNumberTypeId - /// - public virtual IEntityRelation PhoneNumberTypeEntityUsingPhoneNumberTypeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "PhoneNumberType", false); - relation.AddEntityFieldPair(PhoneNumberTypeFields.PhoneNumberTypeId, PersonPhoneFields.PhoneNumberTypeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PhoneNumberTypeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonPhoneEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticPersonPhoneRelations - { - internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new PersonPhoneRelations().PersonEntityUsingBusinessEntityId; - internal static readonly IEntityRelation PhoneNumberTypeEntityUsingPhoneNumberTypeIdStatic = new PersonPhoneRelations().PhoneNumberTypeEntityUsingPhoneNumberTypeId; - - /// CTor - static StaticPersonPhoneRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/PersonRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/PersonRelations.cs deleted file mode 100644 index a95f7ac9..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/PersonRelations.cs +++ /dev/null @@ -1,206 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Person. - public partial class PersonRelations - { - /// CTor - public PersonRelations() - { - } - - /// Gets all relations of the PersonEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BusinessEntityContactEntityUsingPersonId); - toReturn.Add(this.ContactCreditCardEntityUsingContactId); - toReturn.Add(this.CustomerEntityUsingPersonId); - toReturn.Add(this.EmailAddressEntityUsingBusinessEntityId); - toReturn.Add(this.PersonPhoneEntityUsingBusinessEntityId); - toReturn.Add(this.BusinessEntityEntityUsingBusinessEntityId); - toReturn.Add(this.EmployeeEntityUsingEmployeeId); - toReturn.Add(this.PasswordEntityUsingBusinessEntityId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between PersonEntity and BusinessEntityContactEntity over the 1:n relation they have, using the relation between the fields: - /// Person.BusinessEntityId - BusinessEntityContact.PersonId - /// - public virtual IEntityRelation BusinessEntityContactEntityUsingPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BusinessEntityContacts" , true); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, BusinessEntityContactFields.PersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityContactEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between PersonEntity and ContactCreditCardEntity over the 1:n relation they have, using the relation between the fields: - /// Person.BusinessEntityId - ContactCreditCard.ContactId - /// - public virtual IEntityRelation ContactCreditCardEntityUsingContactId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ContactCreditCards" , true); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, ContactCreditCardFields.ContactId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ContactCreditCardEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between PersonEntity and CustomerEntity over the 1:n relation they have, using the relation between the fields: - /// Person.BusinessEntityId - Customer.PersonId - /// - public virtual IEntityRelation CustomerEntityUsingPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Customers" , true); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, CustomerFields.PersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between PersonEntity and EmailAddressEntity over the 1:n relation they have, using the relation between the fields: - /// Person.BusinessEntityId - EmailAddress.BusinessEntityId - /// - public virtual IEntityRelation EmailAddressEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "EmailAddresses" , true); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, EmailAddressFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmailAddressEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between PersonEntity and PersonPhoneEntity over the 1:n relation they have, using the relation between the fields: - /// Person.BusinessEntityId - PersonPhone.BusinessEntityId - /// - public virtual IEntityRelation PersonPhoneEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "PersonPhones" , true); - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, PersonPhoneFields.BusinessEntityId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonPhoneEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between PersonEntity and BusinessEntityEntity over the 1:1 relation they have, using the relation between the fields: - /// Person.BusinessEntityId - BusinessEntity.BusinessEntityId - /// - public virtual IEntityRelation BusinessEntityEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "BusinessEntity", false); - - - - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, PersonFields.BusinessEntityId); - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - return relation; - } - } - - /// Returns a new IEntityRelation object, between PersonEntity and EmployeeEntity over the 1:1 relation they have, using the relation between the fields: - /// Person.BusinessEntityId - Employee.EmployeeId - /// - public virtual IEntityRelation EmployeeEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Employee", true); - - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, EmployeeFields.EmployeeId); - - - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between PersonEntity and PasswordEntity over the 1:1 relation they have, using the relation between the fields: - /// Person.BusinessEntityId - Password.BusinessEntityId - /// - public virtual IEntityRelation PasswordEntityUsingBusinessEntityId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Password", true); - - relation.AddEntityFieldPair(PersonFields.BusinessEntityId, PasswordFields.BusinessEntityId); - - - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PasswordEntity", false); - return relation; - } - } - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticPersonRelations - { - internal static readonly IEntityRelation BusinessEntityContactEntityUsingPersonIdStatic = new PersonRelations().BusinessEntityContactEntityUsingPersonId; - internal static readonly IEntityRelation ContactCreditCardEntityUsingContactIdStatic = new PersonRelations().ContactCreditCardEntityUsingContactId; - internal static readonly IEntityRelation CustomerEntityUsingPersonIdStatic = new PersonRelations().CustomerEntityUsingPersonId; - internal static readonly IEntityRelation EmailAddressEntityUsingBusinessEntityIdStatic = new PersonRelations().EmailAddressEntityUsingBusinessEntityId; - internal static readonly IEntityRelation PersonPhoneEntityUsingBusinessEntityIdStatic = new PersonRelations().PersonPhoneEntityUsingBusinessEntityId; - internal static readonly IEntityRelation BusinessEntityEntityUsingBusinessEntityIdStatic = new PersonRelations().BusinessEntityEntityUsingBusinessEntityId; - internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new PersonRelations().EmployeeEntityUsingEmployeeId; - internal static readonly IEntityRelation PasswordEntityUsingBusinessEntityIdStatic = new PersonRelations().PasswordEntityUsingBusinessEntityId; - - /// CTor - static StaticPersonRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/PhoneNumberTypeRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/PhoneNumberTypeRelations.cs deleted file mode 100644 index 5f710ef4..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/PhoneNumberTypeRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: PhoneNumberType. - public partial class PhoneNumberTypeRelations - { - /// CTor - public PhoneNumberTypeRelations() - { - } - - /// Gets all relations of the PhoneNumberTypeEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.PersonPhoneEntityUsingPhoneNumberTypeId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between PhoneNumberTypeEntity and PersonPhoneEntity over the 1:n relation they have, using the relation between the fields: - /// PhoneNumberType.PhoneNumberTypeId - PersonPhone.PhoneNumberTypeId - /// - public virtual IEntityRelation PersonPhoneEntityUsingPhoneNumberTypeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "PersonPhones" , true); - relation.AddEntityFieldPair(PhoneNumberTypeFields.PhoneNumberTypeId, PersonPhoneFields.PhoneNumberTypeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PhoneNumberTypeEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PersonPhoneEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticPhoneNumberTypeRelations - { - internal static readonly IEntityRelation PersonPhoneEntityUsingPhoneNumberTypeIdStatic = new PhoneNumberTypeRelations().PersonPhoneEntityUsingPhoneNumberTypeId; - - /// CTor - static StaticPhoneNumberTypeRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductCategoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductCategoryRelations.cs deleted file mode 100644 index 2318e7ad..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductCategoryRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductCategory. - public partial class ProductCategoryRelations - { - /// CTor - public ProductCategoryRelations() - { - } - - /// Gets all relations of the ProductCategoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductSubcategoryEntityUsingProductCategoryId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ProductCategoryEntity and ProductSubcategoryEntity over the 1:n relation they have, using the relation between the fields: - /// ProductCategory.ProductCategoryId - ProductSubcategory.ProductCategoryId - /// - public virtual IEntityRelation ProductSubcategoryEntityUsingProductCategoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductSubcategories" , true); - relation.AddEntityFieldPair(ProductCategoryFields.ProductCategoryId, ProductSubcategoryFields.ProductCategoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductCategoryEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductSubcategoryEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductCategoryRelations - { - internal static readonly IEntityRelation ProductSubcategoryEntityUsingProductCategoryIdStatic = new ProductCategoryRelations().ProductSubcategoryEntityUsingProductCategoryId; - - /// CTor - static StaticProductCategoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductCostHistoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductCostHistoryRelations.cs deleted file mode 100644 index 4b3a5e7f..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductCostHistoryRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductCostHistory. - public partial class ProductCostHistoryRelations - { - /// CTor - public ProductCostHistoryRelations() - { - } - - /// Gets all relations of the ProductCostHistoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductCostHistoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ProductCostHistory.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductCostHistoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductCostHistoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductCostHistoryRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductCostHistoryRelations().ProductEntityUsingProductId; - - /// CTor - static StaticProductCostHistoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductDescriptionRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductDescriptionRelations.cs deleted file mode 100644 index da8578af..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductDescriptionRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductDescription. - public partial class ProductDescriptionRelations - { - /// CTor - public ProductDescriptionRelations() - { - } - - /// Gets all relations of the ProductDescriptionEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductModelProductDescriptionCultureEntityUsingProductDescriptionId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ProductDescriptionEntity and ProductModelProductDescriptionCultureEntity over the 1:n relation they have, using the relation between the fields: - /// ProductDescription.ProductDescriptionId - ProductModelProductDescriptionCulture.ProductDescriptionId - /// - public virtual IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductDescriptionId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductModelProductDescriptionCultures" , true); - relation.AddEntityFieldPair(ProductDescriptionFields.ProductDescriptionId, ProductModelProductDescriptionCultureFields.ProductDescriptionId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductDescriptionEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelProductDescriptionCultureEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductDescriptionRelations - { - internal static readonly IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductDescriptionIdStatic = new ProductDescriptionRelations().ProductModelProductDescriptionCultureEntityUsingProductDescriptionId; - - /// CTor - static StaticProductDescriptionRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductDocumentRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductDocumentRelations.cs deleted file mode 100644 index 830b791c..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductDocumentRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductDocument. - public partial class ProductDocumentRelations - { - /// CTor - public ProductDocumentRelations() - { - } - - /// Gets all relations of the ProductDocumentEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.DocumentEntityUsingDocumentNode); - toReturn.Add(this.ProductEntityUsingProductId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductDocumentEntity and DocumentEntity over the m:1 relation they have, using the relation between the fields: - /// ProductDocument.DocumentNode - Document.DocumentNode - /// - public virtual IEntityRelation DocumentEntityUsingDocumentNode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Document", false); - relation.AddEntityFieldPair(DocumentFields.DocumentNode, ProductDocumentFields.DocumentNode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("DocumentEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductDocumentEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductDocumentEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ProductDocument.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductDocumentFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductDocumentEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductDocumentRelations - { - internal static readonly IEntityRelation DocumentEntityUsingDocumentNodeStatic = new ProductDocumentRelations().DocumentEntityUsingDocumentNode; - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductDocumentRelations().ProductEntityUsingProductId; - - /// CTor - static StaticProductDocumentRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductInventoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductInventoryRelations.cs deleted file mode 100644 index 338635be..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductInventoryRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductInventory. - public partial class ProductInventoryRelations - { - /// CTor - public ProductInventoryRelations() - { - } - - /// Gets all relations of the ProductInventoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.LocationEntityUsingLocationId); - toReturn.Add(this.ProductEntityUsingProductId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductInventoryEntity and LocationEntity over the m:1 relation they have, using the relation between the fields: - /// ProductInventory.LocationId - Location.LocationId - /// - public virtual IEntityRelation LocationEntityUsingLocationId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Location", false); - relation.AddEntityFieldPair(LocationFields.LocationId, ProductInventoryFields.LocationId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("LocationEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductInventoryEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductInventoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ProductInventory.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductInventoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductInventoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductInventoryRelations - { - internal static readonly IEntityRelation LocationEntityUsingLocationIdStatic = new ProductInventoryRelations().LocationEntityUsingLocationId; - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductInventoryRelations().ProductEntityUsingProductId; - - /// CTor - static StaticProductInventoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductListPriceHistoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductListPriceHistoryRelations.cs deleted file mode 100644 index b7953783..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductListPriceHistoryRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductListPriceHistory. - public partial class ProductListPriceHistoryRelations - { - /// CTor - public ProductListPriceHistoryRelations() - { - } - - /// Gets all relations of the ProductListPriceHistoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductListPriceHistoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ProductListPriceHistory.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductListPriceHistoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductListPriceHistoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductListPriceHistoryRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductListPriceHistoryRelations().ProductEntityUsingProductId; - - /// CTor - static StaticProductListPriceHistoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelIllustrationRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelIllustrationRelations.cs deleted file mode 100644 index fc174b2a..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelIllustrationRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductModelIllustration. - public partial class ProductModelIllustrationRelations - { - /// CTor - public ProductModelIllustrationRelations() - { - } - - /// Gets all relations of the ProductModelIllustrationEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.IllustrationEntityUsingIllustrationId); - toReturn.Add(this.ProductModelEntityUsingProductModelId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductModelIllustrationEntity and IllustrationEntity over the m:1 relation they have, using the relation between the fields: - /// ProductModelIllustration.IllustrationId - Illustration.IllustrationId - /// - public virtual IEntityRelation IllustrationEntityUsingIllustrationId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Illustration", false); - relation.AddEntityFieldPair(IllustrationFields.IllustrationId, ProductModelIllustrationFields.IllustrationId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("IllustrationEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelIllustrationEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductModelIllustrationEntity and ProductModelEntity over the m:1 relation they have, using the relation between the fields: - /// ProductModelIllustration.ProductModelId - ProductModel.ProductModelId - /// - public virtual IEntityRelation ProductModelEntityUsingProductModelId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProductModel", false); - relation.AddEntityFieldPair(ProductModelFields.ProductModelId, ProductModelIllustrationFields.ProductModelId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelIllustrationEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductModelIllustrationRelations - { - internal static readonly IEntityRelation IllustrationEntityUsingIllustrationIdStatic = new ProductModelIllustrationRelations().IllustrationEntityUsingIllustrationId; - internal static readonly IEntityRelation ProductModelEntityUsingProductModelIdStatic = new ProductModelIllustrationRelations().ProductModelEntityUsingProductModelId; - - /// CTor - static StaticProductModelIllustrationRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelProductDescriptionCultureRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelProductDescriptionCultureRelations.cs deleted file mode 100644 index 3a4dd885..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelProductDescriptionCultureRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductModelProductDescriptionCulture. - public partial class ProductModelProductDescriptionCultureRelations - { - /// CTor - public ProductModelProductDescriptionCultureRelations() - { - } - - /// Gets all relations of the ProductModelProductDescriptionCultureEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.CultureEntityUsingCultureId); - toReturn.Add(this.ProductDescriptionEntityUsingProductDescriptionId); - toReturn.Add(this.ProductModelEntityUsingProductModelId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductModelProductDescriptionCultureEntity and CultureEntity over the m:1 relation they have, using the relation between the fields: - /// ProductModelProductDescriptionCulture.CultureId - Culture.CultureId - /// - public virtual IEntityRelation CultureEntityUsingCultureId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Culture", false); - relation.AddEntityFieldPair(CultureFields.CultureId, ProductModelProductDescriptionCultureFields.CultureId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CultureEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelProductDescriptionCultureEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductModelProductDescriptionCultureEntity and ProductDescriptionEntity over the m:1 relation they have, using the relation between the fields: - /// ProductModelProductDescriptionCulture.ProductDescriptionId - ProductDescription.ProductDescriptionId - /// - public virtual IEntityRelation ProductDescriptionEntityUsingProductDescriptionId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProductDescription", false); - relation.AddEntityFieldPair(ProductDescriptionFields.ProductDescriptionId, ProductModelProductDescriptionCultureFields.ProductDescriptionId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductDescriptionEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelProductDescriptionCultureEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductModelProductDescriptionCultureEntity and ProductModelEntity over the m:1 relation they have, using the relation between the fields: - /// ProductModelProductDescriptionCulture.ProductModelId - ProductModel.ProductModelId - /// - public virtual IEntityRelation ProductModelEntityUsingProductModelId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProductModel", false); - relation.AddEntityFieldPair(ProductModelFields.ProductModelId, ProductModelProductDescriptionCultureFields.ProductModelId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelProductDescriptionCultureEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductModelProductDescriptionCultureRelations - { - internal static readonly IEntityRelation CultureEntityUsingCultureIdStatic = new ProductModelProductDescriptionCultureRelations().CultureEntityUsingCultureId; - internal static readonly IEntityRelation ProductDescriptionEntityUsingProductDescriptionIdStatic = new ProductModelProductDescriptionCultureRelations().ProductDescriptionEntityUsingProductDescriptionId; - internal static readonly IEntityRelation ProductModelEntityUsingProductModelIdStatic = new ProductModelProductDescriptionCultureRelations().ProductModelEntityUsingProductModelId; - - /// CTor - static StaticProductModelProductDescriptionCultureRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelRelations.cs deleted file mode 100644 index 967a549f..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductModelRelations.cs +++ /dev/null @@ -1,110 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductModel. - public partial class ProductModelRelations - { - /// CTor - public ProductModelRelations() - { - } - - /// Gets all relations of the ProductModelEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductModelId); - toReturn.Add(this.ProductModelIllustrationEntityUsingProductModelId); - toReturn.Add(this.ProductModelProductDescriptionCultureEntityUsingProductModelId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ProductModelEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: - /// ProductModel.ProductModelId - Product.ProductModelId - /// - public virtual IEntityRelation ProductEntityUsingProductModelId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Products" , true); - relation.AddEntityFieldPair(ProductModelFields.ProductModelId, ProductFields.ProductModelId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductModelEntity and ProductModelIllustrationEntity over the 1:n relation they have, using the relation between the fields: - /// ProductModel.ProductModelId - ProductModelIllustration.ProductModelId - /// - public virtual IEntityRelation ProductModelIllustrationEntityUsingProductModelId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductModelIllustrations" , true); - relation.AddEntityFieldPair(ProductModelFields.ProductModelId, ProductModelIllustrationFields.ProductModelId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelIllustrationEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductModelEntity and ProductModelProductDescriptionCultureEntity over the 1:n relation they have, using the relation between the fields: - /// ProductModel.ProductModelId - ProductModelProductDescriptionCulture.ProductModelId - /// - public virtual IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductModelId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductModelProductDescriptionCultures" , true); - relation.AddEntityFieldPair(ProductModelFields.ProductModelId, ProductModelProductDescriptionCultureFields.ProductModelId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelProductDescriptionCultureEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductModelRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductModelIdStatic = new ProductModelRelations().ProductEntityUsingProductModelId; - internal static readonly IEntityRelation ProductModelIllustrationEntityUsingProductModelIdStatic = new ProductModelRelations().ProductModelIllustrationEntityUsingProductModelId; - internal static readonly IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductModelIdStatic = new ProductModelRelations().ProductModelProductDescriptionCultureEntityUsingProductModelId; - - /// CTor - static StaticProductModelRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductPhotoRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductPhotoRelations.cs deleted file mode 100644 index d9aad010..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductPhotoRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductPhoto. - public partial class ProductPhotoRelations - { - /// CTor - public ProductPhotoRelations() - { - } - - /// Gets all relations of the ProductPhotoEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductProductPhotoEntityUsingProductPhotoId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ProductPhotoEntity and ProductProductPhotoEntity over the 1:n relation they have, using the relation between the fields: - /// ProductPhoto.ProductPhotoId - ProductProductPhoto.ProductPhotoId - /// - public virtual IEntityRelation ProductProductPhotoEntityUsingProductPhotoId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductProductPhotos" , true); - relation.AddEntityFieldPair(ProductPhotoFields.ProductPhotoId, ProductProductPhotoFields.ProductPhotoId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductPhotoEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductProductPhotoEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductPhotoRelations - { - internal static readonly IEntityRelation ProductProductPhotoEntityUsingProductPhotoIdStatic = new ProductPhotoRelations().ProductProductPhotoEntityUsingProductPhotoId; - - /// CTor - static StaticProductPhotoRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductProductPhotoRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductProductPhotoRelations.cs deleted file mode 100644 index 966bfea0..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductProductPhotoRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductProductPhoto. - public partial class ProductProductPhotoRelations - { - /// CTor - public ProductProductPhotoRelations() - { - } - - /// Gets all relations of the ProductProductPhotoEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - toReturn.Add(this.ProductPhotoEntityUsingProductPhotoId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductProductPhotoEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ProductProductPhoto.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductProductPhotoFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductProductPhotoEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductProductPhotoEntity and ProductPhotoEntity over the m:1 relation they have, using the relation between the fields: - /// ProductProductPhoto.ProductPhotoId - ProductPhoto.ProductPhotoId - /// - public virtual IEntityRelation ProductPhotoEntityUsingProductPhotoId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProductPhoto", false); - relation.AddEntityFieldPair(ProductPhotoFields.ProductPhotoId, ProductProductPhotoFields.ProductPhotoId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductPhotoEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductProductPhotoEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductProductPhotoRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductProductPhotoRelations().ProductEntityUsingProductId; - internal static readonly IEntityRelation ProductPhotoEntityUsingProductPhotoIdStatic = new ProductProductPhotoRelations().ProductPhotoEntityUsingProductPhotoId; - - /// CTor - static StaticProductProductPhotoRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductRelations.cs deleted file mode 100644 index 2398f262..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductRelations.cs +++ /dev/null @@ -1,361 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Product. - public partial class ProductRelations - { - /// CTor - public ProductRelations() - { - } - - /// Gets all relations of the ProductEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BillOfMaterialEntityUsingComponentId); - toReturn.Add(this.BillOfMaterialEntityUsingProductAssemblyId); - toReturn.Add(this.ProductCostHistoryEntityUsingProductId); - toReturn.Add(this.ProductDocumentEntityUsingProductId); - toReturn.Add(this.ProductInventoryEntityUsingProductId); - toReturn.Add(this.ProductListPriceHistoryEntityUsingProductId); - toReturn.Add(this.ProductProductPhotoEntityUsingProductId); - toReturn.Add(this.ProductReviewEntityUsingProductId); - toReturn.Add(this.ProductVendorEntityUsingProductId); - toReturn.Add(this.PurchaseOrderDetailEntityUsingProductId); - toReturn.Add(this.ShoppingCartItemEntityUsingProductId); - toReturn.Add(this.SpecialOfferProductEntityUsingProductId); - toReturn.Add(this.TransactionHistoryEntityUsingProductId); - toReturn.Add(this.WorkOrderEntityUsingProductId); - toReturn.Add(this.ProductModelEntityUsingProductModelId); - toReturn.Add(this.ProductSubcategoryEntityUsingProductSubcategoryId); - toReturn.Add(this.UnitMeasureEntityUsingSizeUnitMeasureCode); - toReturn.Add(this.UnitMeasureEntityUsingWeightUnitMeasureCode); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ProductEntity and BillOfMaterialEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - BillOfMaterial.ComponentId - /// - public virtual IEntityRelation BillOfMaterialEntityUsingComponentId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BillOfMaterials" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, BillOfMaterialFields.ComponentId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BillOfMaterialEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and BillOfMaterialEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - BillOfMaterial.ProductAssemblyId - /// - public virtual IEntityRelation BillOfMaterialEntityUsingProductAssemblyId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BillOfMaterials_" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, BillOfMaterialFields.ProductAssemblyId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BillOfMaterialEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ProductCostHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ProductCostHistory.ProductId - /// - public virtual IEntityRelation ProductCostHistoryEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductCostHistories" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductCostHistoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductCostHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ProductDocumentEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ProductDocument.ProductId - /// - public virtual IEntityRelation ProductDocumentEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductDocuments" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductDocumentFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductDocumentEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ProductInventoryEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ProductInventory.ProductId - /// - public virtual IEntityRelation ProductInventoryEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductInventories" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductInventoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductInventoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ProductListPriceHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ProductListPriceHistory.ProductId - /// - public virtual IEntityRelation ProductListPriceHistoryEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductListPriceHistories" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductListPriceHistoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductListPriceHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ProductProductPhotoEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ProductProductPhoto.ProductId - /// - public virtual IEntityRelation ProductProductPhotoEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductProductPhotos" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductProductPhotoFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductProductPhotoEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ProductReviewEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ProductReview.ProductId - /// - public virtual IEntityRelation ProductReviewEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductReviews" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductReviewFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductReviewEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ProductVendorEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ProductVendor.ProductId - /// - public virtual IEntityRelation ProductVendorEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductVendors" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductVendorFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductVendorEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and PurchaseOrderDetailEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - PurchaseOrderDetail.ProductId - /// - public virtual IEntityRelation PurchaseOrderDetailEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "PurchaseOrderDetails" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, PurchaseOrderDetailFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderDetailEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and ShoppingCartItemEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - ShoppingCartItem.ProductId - /// - public virtual IEntityRelation ShoppingCartItemEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ShoppingCartItems" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, ShoppingCartItemFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShoppingCartItemEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and SpecialOfferProductEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - SpecialOfferProduct.ProductId - /// - public virtual IEntityRelation SpecialOfferProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SpecialOfferProducts" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, SpecialOfferProductFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferProductEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and TransactionHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - TransactionHistory.ProductId - /// - public virtual IEntityRelation TransactionHistoryEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "TransactionHistories" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, TransactionHistoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("TransactionHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ProductEntity and WorkOrderEntity over the 1:n relation they have, using the relation between the fields: - /// Product.ProductId - WorkOrder.ProductId - /// - public virtual IEntityRelation WorkOrderEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "WorkOrders" , true); - relation.AddEntityFieldPair(ProductFields.ProductId, WorkOrderFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between ProductEntity and ProductModelEntity over the m:1 relation they have, using the relation between the fields: - /// Product.ProductModelId - ProductModel.ProductModelId - /// - public virtual IEntityRelation ProductModelEntityUsingProductModelId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProductModel", false); - relation.AddEntityFieldPair(ProductModelFields.ProductModelId, ProductFields.ProductModelId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductModelEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductEntity and ProductSubcategoryEntity over the m:1 relation they have, using the relation between the fields: - /// Product.ProductSubcategoryId - ProductSubcategory.ProductSubcategoryId - /// - public virtual IEntityRelation ProductSubcategoryEntityUsingProductSubcategoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProductSubcategory", false); - relation.AddEntityFieldPair(ProductSubcategoryFields.ProductSubcategoryId, ProductFields.ProductSubcategoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductSubcategoryEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: - /// Product.SizeUnitMeasureCode - UnitMeasure.UnitMeasureCode - /// - public virtual IEntityRelation UnitMeasureEntityUsingSizeUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "UnitMeasure", false); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, ProductFields.SizeUnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: - /// Product.WeightUnitMeasureCode - UnitMeasure.UnitMeasureCode - /// - public virtual IEntityRelation UnitMeasureEntityUsingWeightUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "UnitMeasure_", false); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, ProductFields.WeightUnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductRelations - { - internal static readonly IEntityRelation BillOfMaterialEntityUsingComponentIdStatic = new ProductRelations().BillOfMaterialEntityUsingComponentId; - internal static readonly IEntityRelation BillOfMaterialEntityUsingProductAssemblyIdStatic = new ProductRelations().BillOfMaterialEntityUsingProductAssemblyId; - internal static readonly IEntityRelation ProductCostHistoryEntityUsingProductIdStatic = new ProductRelations().ProductCostHistoryEntityUsingProductId; - internal static readonly IEntityRelation ProductDocumentEntityUsingProductIdStatic = new ProductRelations().ProductDocumentEntityUsingProductId; - internal static readonly IEntityRelation ProductInventoryEntityUsingProductIdStatic = new ProductRelations().ProductInventoryEntityUsingProductId; - internal static readonly IEntityRelation ProductListPriceHistoryEntityUsingProductIdStatic = new ProductRelations().ProductListPriceHistoryEntityUsingProductId; - internal static readonly IEntityRelation ProductProductPhotoEntityUsingProductIdStatic = new ProductRelations().ProductProductPhotoEntityUsingProductId; - internal static readonly IEntityRelation ProductReviewEntityUsingProductIdStatic = new ProductRelations().ProductReviewEntityUsingProductId; - internal static readonly IEntityRelation ProductVendorEntityUsingProductIdStatic = new ProductRelations().ProductVendorEntityUsingProductId; - internal static readonly IEntityRelation PurchaseOrderDetailEntityUsingProductIdStatic = new ProductRelations().PurchaseOrderDetailEntityUsingProductId; - internal static readonly IEntityRelation ShoppingCartItemEntityUsingProductIdStatic = new ProductRelations().ShoppingCartItemEntityUsingProductId; - internal static readonly IEntityRelation SpecialOfferProductEntityUsingProductIdStatic = new ProductRelations().SpecialOfferProductEntityUsingProductId; - internal static readonly IEntityRelation TransactionHistoryEntityUsingProductIdStatic = new ProductRelations().TransactionHistoryEntityUsingProductId; - internal static readonly IEntityRelation WorkOrderEntityUsingProductIdStatic = new ProductRelations().WorkOrderEntityUsingProductId; - internal static readonly IEntityRelation ProductModelEntityUsingProductModelIdStatic = new ProductRelations().ProductModelEntityUsingProductModelId; - internal static readonly IEntityRelation ProductSubcategoryEntityUsingProductSubcategoryIdStatic = new ProductRelations().ProductSubcategoryEntityUsingProductSubcategoryId; - internal static readonly IEntityRelation UnitMeasureEntityUsingSizeUnitMeasureCodeStatic = new ProductRelations().UnitMeasureEntityUsingSizeUnitMeasureCode; - internal static readonly IEntityRelation UnitMeasureEntityUsingWeightUnitMeasureCodeStatic = new ProductRelations().UnitMeasureEntityUsingWeightUnitMeasureCode; - - /// CTor - static StaticProductRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductReviewRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductReviewRelations.cs deleted file mode 100644 index e66f0144..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductReviewRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductReview. - public partial class ProductReviewRelations - { - /// CTor - public ProductReviewRelations() - { - } - - /// Gets all relations of the ProductReviewEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductReviewEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ProductReview.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductReviewFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductReviewEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductReviewRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductReviewRelations().ProductEntityUsingProductId; - - /// CTor - static StaticProductReviewRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductSubcategoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductSubcategoryRelations.cs deleted file mode 100644 index 4bb8cc27..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductSubcategoryRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductSubcategory. - public partial class ProductSubcategoryRelations - { - /// CTor - public ProductSubcategoryRelations() - { - } - - /// Gets all relations of the ProductSubcategoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductSubcategoryId); - toReturn.Add(this.ProductCategoryEntityUsingProductCategoryId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ProductSubcategoryEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: - /// ProductSubcategory.ProductSubcategoryId - Product.ProductSubcategoryId - /// - public virtual IEntityRelation ProductEntityUsingProductSubcategoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Products" , true); - relation.AddEntityFieldPair(ProductSubcategoryFields.ProductSubcategoryId, ProductFields.ProductSubcategoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductSubcategoryEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between ProductSubcategoryEntity and ProductCategoryEntity over the m:1 relation they have, using the relation between the fields: - /// ProductSubcategory.ProductCategoryId - ProductCategory.ProductCategoryId - /// - public virtual IEntityRelation ProductCategoryEntityUsingProductCategoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProductCategory", false); - relation.AddEntityFieldPair(ProductCategoryFields.ProductCategoryId, ProductSubcategoryFields.ProductCategoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductCategoryEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductSubcategoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductSubcategoryRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductSubcategoryIdStatic = new ProductSubcategoryRelations().ProductEntityUsingProductSubcategoryId; - internal static readonly IEntityRelation ProductCategoryEntityUsingProductCategoryIdStatic = new ProductSubcategoryRelations().ProductCategoryEntityUsingProductCategoryId; - - /// CTor - static StaticProductSubcategoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductVendorRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ProductVendorRelations.cs deleted file mode 100644 index df8e6463..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ProductVendorRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ProductVendor. - public partial class ProductVendorRelations - { - /// CTor - public ProductVendorRelations() - { - } - - /// Gets all relations of the ProductVendorEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - toReturn.Add(this.UnitMeasureEntityUsingUnitMeasureCode); - toReturn.Add(this.VendorEntityUsingVendorId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ProductVendorEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ProductVendor.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ProductVendorFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductVendorEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductVendorEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: - /// ProductVendor.UnitMeasureCode - UnitMeasure.UnitMeasureCode - /// - public virtual IEntityRelation UnitMeasureEntityUsingUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "UnitMeasure", false); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, ProductVendorFields.UnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductVendorEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between ProductVendorEntity and VendorEntity over the m:1 relation they have, using the relation between the fields: - /// ProductVendor.VendorId - Vendor.VendorId - /// - public virtual IEntityRelation VendorEntityUsingVendorId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Vendor", false); - relation.AddEntityFieldPair(VendorFields.VendorId, ProductVendorFields.VendorId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("VendorEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductVendorEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticProductVendorRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductVendorRelations().ProductEntityUsingProductId; - internal static readonly IEntityRelation UnitMeasureEntityUsingUnitMeasureCodeStatic = new ProductVendorRelations().UnitMeasureEntityUsingUnitMeasureCode; - internal static readonly IEntityRelation VendorEntityUsingVendorIdStatic = new ProductVendorRelations().VendorEntityUsingVendorId; - - /// CTor - static StaticProductVendorRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderDetailRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderDetailRelations.cs deleted file mode 100644 index cd859e03..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderDetailRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: PurchaseOrderDetail. - public partial class PurchaseOrderDetailRelations - { - /// CTor - public PurchaseOrderDetailRelations() - { - } - - /// Gets all relations of the PurchaseOrderDetailEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - toReturn.Add(this.PurchaseOrderHeaderEntityUsingPurchaseOrderId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between PurchaseOrderDetailEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// PurchaseOrderDetail.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, PurchaseOrderDetailFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderDetailEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between PurchaseOrderDetailEntity and PurchaseOrderHeaderEntity over the m:1 relation they have, using the relation between the fields: - /// PurchaseOrderDetail.PurchaseOrderId - PurchaseOrderHeader.PurchaseOrderId - /// - public virtual IEntityRelation PurchaseOrderHeaderEntityUsingPurchaseOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "PurchaseOrderHeader", false); - relation.AddEntityFieldPair(PurchaseOrderHeaderFields.PurchaseOrderId, PurchaseOrderDetailFields.PurchaseOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderDetailEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticPurchaseOrderDetailRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new PurchaseOrderDetailRelations().ProductEntityUsingProductId; - internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingPurchaseOrderIdStatic = new PurchaseOrderDetailRelations().PurchaseOrderHeaderEntityUsingPurchaseOrderId; - - /// CTor - static StaticPurchaseOrderDetailRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderHeaderRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderHeaderRelations.cs deleted file mode 100644 index 18db473d..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/PurchaseOrderHeaderRelations.cs +++ /dev/null @@ -1,124 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: PurchaseOrderHeader. - public partial class PurchaseOrderHeaderRelations - { - /// CTor - public PurchaseOrderHeaderRelations() - { - } - - /// Gets all relations of the PurchaseOrderHeaderEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.PurchaseOrderDetailEntityUsingPurchaseOrderId); - toReturn.Add(this.EmployeeEntityUsingEmployeeId); - toReturn.Add(this.ShipMethodEntityUsingShipMethodId); - toReturn.Add(this.VendorEntityUsingVendorId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and PurchaseOrderDetailEntity over the 1:n relation they have, using the relation between the fields: - /// PurchaseOrderHeader.PurchaseOrderId - PurchaseOrderDetail.PurchaseOrderId - /// - public virtual IEntityRelation PurchaseOrderDetailEntityUsingPurchaseOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "PurchaseOrderDetails" , true); - relation.AddEntityFieldPair(PurchaseOrderHeaderFields.PurchaseOrderId, PurchaseOrderDetailFields.PurchaseOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderDetailEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: - /// PurchaseOrderHeader.EmployeeId - Employee.EmployeeId - /// - public virtual IEntityRelation EmployeeEntityUsingEmployeeId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Employee", false); - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, PurchaseOrderHeaderFields.EmployeeId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and ShipMethodEntity over the m:1 relation they have, using the relation between the fields: - /// PurchaseOrderHeader.ShipMethodId - ShipMethod.ShipMethodId - /// - public virtual IEntityRelation ShipMethodEntityUsingShipMethodId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ShipMethod", false); - relation.AddEntityFieldPair(ShipMethodFields.ShipMethodId, PurchaseOrderHeaderFields.ShipMethodId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShipMethodEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and VendorEntity over the m:1 relation they have, using the relation between the fields: - /// PurchaseOrderHeader.VendorId - Vendor.VendorId - /// - public virtual IEntityRelation VendorEntityUsingVendorId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Vendor", false); - relation.AddEntityFieldPair(VendorFields.VendorId, PurchaseOrderHeaderFields.VendorId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("VendorEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticPurchaseOrderHeaderRelations - { - internal static readonly IEntityRelation PurchaseOrderDetailEntityUsingPurchaseOrderIdStatic = new PurchaseOrderHeaderRelations().PurchaseOrderDetailEntityUsingPurchaseOrderId; - internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new PurchaseOrderHeaderRelations().EmployeeEntityUsingEmployeeId; - internal static readonly IEntityRelation ShipMethodEntityUsingShipMethodIdStatic = new PurchaseOrderHeaderRelations().ShipMethodEntityUsingShipMethodId; - internal static readonly IEntityRelation VendorEntityUsingVendorIdStatic = new PurchaseOrderHeaderRelations().VendorEntityUsingVendorId; - - /// CTor - static StaticPurchaseOrderHeaderRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderDetailRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderDetailRelations.cs deleted file mode 100644 index 24360712..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderDetailRelations.cs +++ /dev/null @@ -1,94 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesOrderDetail. - public partial class SalesOrderDetailRelations - { - /// CTor - public SalesOrderDetailRelations() - { - } - - /// Gets all relations of the SalesOrderDetailEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaderEntityUsingSalesOrderId); - toReturn.Add(this.SpecialOfferProductEntityUsingProductIdSpecialOfferId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between SalesOrderDetailEntity and SalesOrderHeaderEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderDetail.SalesOrderId - SalesOrderHeader.SalesOrderId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingSalesOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesOrderHeader", false); - relation.AddEntityFieldPair(SalesOrderHeaderFields.SalesOrderId, SalesOrderDetailFields.SalesOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderDetailEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderDetailEntity and SpecialOfferProductEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderDetail.ProductId - SpecialOfferProduct.ProductId - /// SalesOrderDetail.SpecialOfferId - SpecialOfferProduct.SpecialOfferId - /// - public virtual IEntityRelation SpecialOfferProductEntityUsingProductIdSpecialOfferId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SpecialOfferProduct", false); - relation.AddEntityFieldPair(SpecialOfferProductFields.ProductId, SalesOrderDetailFields.ProductId); - relation.AddEntityFieldPair(SpecialOfferProductFields.SpecialOfferId, SalesOrderDetailFields.SpecialOfferId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderDetailEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesOrderDetailRelations - { - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingSalesOrderIdStatic = new SalesOrderDetailRelations().SalesOrderHeaderEntityUsingSalesOrderId; - internal static readonly IEntityRelation SpecialOfferProductEntityUsingProductIdSpecialOfferIdStatic = new SalesOrderDetailRelations().SpecialOfferProductEntityUsingProductIdSpecialOfferId; - - /// CTor - static StaticSalesOrderDetailRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderRelations.cs deleted file mode 100644 index 6e86f3f0..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderRelations.cs +++ /dev/null @@ -1,221 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesOrderHeader. - public partial class SalesOrderHeaderRelations - { - /// CTor - public SalesOrderHeaderRelations() - { - } - - /// Gets all relations of the SalesOrderHeaderEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderDetailEntityUsingSalesOrderId); - toReturn.Add(this.SalesOrderHeaderSalesReasonEntityUsingSalesOrderId); - toReturn.Add(this.AddressEntityUsingBillToAddressId); - toReturn.Add(this.AddressEntityUsingShipToAddressId); - toReturn.Add(this.CreditCardEntityUsingCreditCardId); - toReturn.Add(this.CurrencyRateEntityUsingCurrencyRateId); - toReturn.Add(this.CustomerEntityUsingCustomerId); - toReturn.Add(this.SalesPersonEntityUsingSalesPersonId); - toReturn.Add(this.SalesTerritoryEntityUsingTerritoryId); - toReturn.Add(this.ShipMethodEntityUsingShipMethodId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesOrderDetailEntity over the 1:n relation they have, using the relation between the fields: - /// SalesOrderHeader.SalesOrderId - SalesOrderDetail.SalesOrderId - /// - public virtual IEntityRelation SalesOrderDetailEntityUsingSalesOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderDetails" , true); - relation.AddEntityFieldPair(SalesOrderHeaderFields.SalesOrderId, SalesOrderDetailFields.SalesOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderDetailEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesOrderHeaderSalesReasonEntity over the 1:n relation they have, using the relation between the fields: - /// SalesOrderHeader.SalesOrderId - SalesOrderHeaderSalesReason.SalesOrderId - /// - public virtual IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaderSalesReasons" , true); - relation.AddEntityFieldPair(SalesOrderHeaderFields.SalesOrderId, SalesOrderHeaderSalesReasonFields.SalesOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderSalesReasonEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and AddressEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.BillToAddressId - Address.AddressId - /// - public virtual IEntityRelation AddressEntityUsingBillToAddressId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Address", false); - relation.AddEntityFieldPair(AddressFields.AddressId, SalesOrderHeaderFields.BillToAddressId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and AddressEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.ShipToAddressId - Address.AddressId - /// - public virtual IEntityRelation AddressEntityUsingShipToAddressId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Address_", false); - relation.AddEntityFieldPair(AddressFields.AddressId, SalesOrderHeaderFields.ShipToAddressId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and CreditCardEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.CreditCardId - CreditCard.CreditCardId - /// - public virtual IEntityRelation CreditCardEntityUsingCreditCardId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "CreditCard", false); - relation.AddEntityFieldPair(CreditCardFields.CreditCardId, SalesOrderHeaderFields.CreditCardId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CreditCardEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and CurrencyRateEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.CurrencyRateId - CurrencyRate.CurrencyRateId - /// - public virtual IEntityRelation CurrencyRateEntityUsingCurrencyRateId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "CurrencyRate", false); - relation.AddEntityFieldPair(CurrencyRateFields.CurrencyRateId, SalesOrderHeaderFields.CurrencyRateId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CurrencyRateEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and CustomerEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.CustomerId - Customer.CustomerId - /// - public virtual IEntityRelation CustomerEntityUsingCustomerId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Customer", false); - relation.AddEntityFieldPair(CustomerFields.CustomerId, SalesOrderHeaderFields.CustomerId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.SalesPersonId - SalesPerson.SalesPersonId - /// - public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesPerson", false); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, SalesOrderHeaderFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.TerritoryId - SalesTerritory.TerritoryId - /// - public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesTerritory", false); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, SalesOrderHeaderFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and ShipMethodEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeader.ShipMethodId - ShipMethod.ShipMethodId - /// - public virtual IEntityRelation ShipMethodEntityUsingShipMethodId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ShipMethod", false); - relation.AddEntityFieldPair(ShipMethodFields.ShipMethodId, SalesOrderHeaderFields.ShipMethodId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShipMethodEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesOrderHeaderRelations - { - internal static readonly IEntityRelation SalesOrderDetailEntityUsingSalesOrderIdStatic = new SalesOrderHeaderRelations().SalesOrderDetailEntityUsingSalesOrderId; - internal static readonly IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesOrderIdStatic = new SalesOrderHeaderRelations().SalesOrderHeaderSalesReasonEntityUsingSalesOrderId; - internal static readonly IEntityRelation AddressEntityUsingBillToAddressIdStatic = new SalesOrderHeaderRelations().AddressEntityUsingBillToAddressId; - internal static readonly IEntityRelation AddressEntityUsingShipToAddressIdStatic = new SalesOrderHeaderRelations().AddressEntityUsingShipToAddressId; - internal static readonly IEntityRelation CreditCardEntityUsingCreditCardIdStatic = new SalesOrderHeaderRelations().CreditCardEntityUsingCreditCardId; - internal static readonly IEntityRelation CurrencyRateEntityUsingCurrencyRateIdStatic = new SalesOrderHeaderRelations().CurrencyRateEntityUsingCurrencyRateId; - internal static readonly IEntityRelation CustomerEntityUsingCustomerIdStatic = new SalesOrderHeaderRelations().CustomerEntityUsingCustomerId; - internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new SalesOrderHeaderRelations().SalesPersonEntityUsingSalesPersonId; - internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new SalesOrderHeaderRelations().SalesTerritoryEntityUsingTerritoryId; - internal static readonly IEntityRelation ShipMethodEntityUsingShipMethodIdStatic = new SalesOrderHeaderRelations().ShipMethodEntityUsingShipMethodId; - - /// CTor - static StaticSalesOrderHeaderRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderSalesReasonRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderSalesReasonRelations.cs deleted file mode 100644 index 82378db1..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesOrderHeaderSalesReasonRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesOrderHeaderSalesReason. - public partial class SalesOrderHeaderSalesReasonRelations - { - /// CTor - public SalesOrderHeaderSalesReasonRelations() - { - } - - /// Gets all relations of the SalesOrderHeaderSalesReasonEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaderEntityUsingSalesOrderId); - toReturn.Add(this.SalesReasonEntityUsingSalesReasonId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between SalesOrderHeaderSalesReasonEntity and SalesOrderHeaderEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeaderSalesReason.SalesOrderId - SalesOrderHeader.SalesOrderId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingSalesOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesOrderHeader", false); - relation.AddEntityFieldPair(SalesOrderHeaderFields.SalesOrderId, SalesOrderHeaderSalesReasonFields.SalesOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderSalesReasonEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesOrderHeaderSalesReasonEntity and SalesReasonEntity over the m:1 relation they have, using the relation between the fields: - /// SalesOrderHeaderSalesReason.SalesReasonId - SalesReason.SalesReasonId - /// - public virtual IEntityRelation SalesReasonEntityUsingSalesReasonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesReason", false); - relation.AddEntityFieldPair(SalesReasonFields.SalesReasonId, SalesOrderHeaderSalesReasonFields.SalesReasonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesReasonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderSalesReasonEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesOrderHeaderSalesReasonRelations - { - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingSalesOrderIdStatic = new SalesOrderHeaderSalesReasonRelations().SalesOrderHeaderEntityUsingSalesOrderId; - internal static readonly IEntityRelation SalesReasonEntityUsingSalesReasonIdStatic = new SalesOrderHeaderSalesReasonRelations().SalesReasonEntityUsingSalesReasonId; - - /// CTor - static StaticSalesOrderHeaderSalesReasonRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonQuotaHistoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonQuotaHistoryRelations.cs deleted file mode 100644 index bf6496f0..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonQuotaHistoryRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesPersonQuotaHistory. - public partial class SalesPersonQuotaHistoryRelations - { - /// CTor - public SalesPersonQuotaHistoryRelations() - { - } - - /// Gets all relations of the SalesPersonQuotaHistoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesPersonEntityUsingSalesPersonId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between SalesPersonQuotaHistoryEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: - /// SalesPersonQuotaHistory.SalesPersonId - SalesPerson.SalesPersonId - /// - public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesPerson", false); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, SalesPersonQuotaHistoryFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonQuotaHistoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesPersonQuotaHistoryRelations - { - internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new SalesPersonQuotaHistoryRelations().SalesPersonEntityUsingSalesPersonId; - - /// CTor - static StaticSalesPersonQuotaHistoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonRelations.cs deleted file mode 100644 index 607ad2b7..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesPersonRelations.cs +++ /dev/null @@ -1,163 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesPerson. - public partial class SalesPersonRelations - { - /// CTor - public SalesPersonRelations() - { - } - - /// Gets all relations of the SalesPersonEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaderEntityUsingSalesPersonId); - toReturn.Add(this.SalesPersonQuotaHistoryEntityUsingSalesPersonId); - toReturn.Add(this.SalesTerritoryHistoryEntityUsingSalesPersonId); - toReturn.Add(this.StoreEntityUsingSalesPersonId); - toReturn.Add(this.EmployeeEntityUsingSalesPersonId); - toReturn.Add(this.SalesTerritoryEntityUsingTerritoryId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// SalesPerson.SalesPersonId - SalesOrderHeader.SalesPersonId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders" , true); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, SalesOrderHeaderFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesPersonQuotaHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// SalesPerson.SalesPersonId - SalesPersonQuotaHistory.SalesPersonId - /// - public virtual IEntityRelation SalesPersonQuotaHistoryEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesPersonQuotaHistories" , true); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, SalesPersonQuotaHistoryFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonQuotaHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesTerritoryHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// SalesPerson.SalesPersonId - SalesTerritoryHistory.SalesPersonId - /// - public virtual IEntityRelation SalesTerritoryHistoryEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesTerritoryHistories" , true); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, SalesTerritoryHistoryFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesPersonEntity and StoreEntity over the 1:n relation they have, using the relation between the fields: - /// SalesPerson.SalesPersonId - Store.SalesPersonId - /// - public virtual IEntityRelation StoreEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Stores" , true); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, StoreFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StoreEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesPersonEntity and EmployeeEntity over the 1:1 relation they have, using the relation between the fields: - /// SalesPerson.SalesPersonId - Employee.EmployeeId - /// - public virtual IEntityRelation EmployeeEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "Employee", false); - - - - relation.AddEntityFieldPair(EmployeeFields.EmployeeId, SalesPersonFields.SalesPersonId); - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", true); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: - /// SalesPerson.TerritoryId - SalesTerritory.TerritoryId - /// - public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesTerritory", false); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, SalesPersonFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesPersonRelations - { - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingSalesPersonIdStatic = new SalesPersonRelations().SalesOrderHeaderEntityUsingSalesPersonId; - internal static readonly IEntityRelation SalesPersonQuotaHistoryEntityUsingSalesPersonIdStatic = new SalesPersonRelations().SalesPersonQuotaHistoryEntityUsingSalesPersonId; - internal static readonly IEntityRelation SalesTerritoryHistoryEntityUsingSalesPersonIdStatic = new SalesPersonRelations().SalesTerritoryHistoryEntityUsingSalesPersonId; - internal static readonly IEntityRelation StoreEntityUsingSalesPersonIdStatic = new SalesPersonRelations().StoreEntityUsingSalesPersonId; - internal static readonly IEntityRelation EmployeeEntityUsingSalesPersonIdStatic = new SalesPersonRelations().EmployeeEntityUsingSalesPersonId; - internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new SalesPersonRelations().SalesTerritoryEntityUsingTerritoryId; - - /// CTor - static StaticSalesPersonRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesReasonRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesReasonRelations.cs deleted file mode 100644 index c11945a8..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesReasonRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesReason. - public partial class SalesReasonRelations - { - /// CTor - public SalesReasonRelations() - { - } - - /// Gets all relations of the SalesReasonEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderHeaderSalesReasonEntityUsingSalesReasonId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between SalesReasonEntity and SalesOrderHeaderSalesReasonEntity over the 1:n relation they have, using the relation between the fields: - /// SalesReason.SalesReasonId - SalesOrderHeaderSalesReason.SalesReasonId - /// - public virtual IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesReasonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaderSalesReasons" , true); - relation.AddEntityFieldPair(SalesReasonFields.SalesReasonId, SalesOrderHeaderSalesReasonFields.SalesReasonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesReasonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderSalesReasonEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesReasonRelations - { - internal static readonly IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesReasonIdStatic = new SalesReasonRelations().SalesOrderHeaderSalesReasonEntityUsingSalesReasonId; - - /// CTor - static StaticSalesReasonRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTaxRateRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTaxRateRelations.cs deleted file mode 100644 index 78b666ee..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTaxRateRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesTaxRate. - public partial class SalesTaxRateRelations - { - /// CTor - public SalesTaxRateRelations() - { - } - - /// Gets all relations of the SalesTaxRateEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.StateProvinceEntityUsingStateProvinceId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between SalesTaxRateEntity and StateProvinceEntity over the m:1 relation they have, using the relation between the fields: - /// SalesTaxRate.StateProvinceId - StateProvince.StateProvinceId - /// - public virtual IEntityRelation StateProvinceEntityUsingStateProvinceId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "StateProvince", false); - relation.AddEntityFieldPair(StateProvinceFields.StateProvinceId, SalesTaxRateFields.StateProvinceId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTaxRateEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesTaxRateRelations - { - internal static readonly IEntityRelation StateProvinceEntityUsingStateProvinceIdStatic = new SalesTaxRateRelations().StateProvinceEntityUsingStateProvinceId; - - /// CTor - static StaticSalesTaxRateRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryHistoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryHistoryRelations.cs deleted file mode 100644 index 778c7f36..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryHistoryRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesTerritoryHistory. - public partial class SalesTerritoryHistoryRelations - { - /// CTor - public SalesTerritoryHistoryRelations() - { - } - - /// Gets all relations of the SalesTerritoryHistoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesPersonEntityUsingSalesPersonId); - toReturn.Add(this.SalesTerritoryEntityUsingTerritoryId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between SalesTerritoryHistoryEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: - /// SalesTerritoryHistory.SalesPersonId - SalesPerson.SalesPersonId - /// - public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesPerson", false); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, SalesTerritoryHistoryFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryHistoryEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SalesTerritoryHistoryEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: - /// SalesTerritoryHistory.TerritoryId - SalesTerritory.TerritoryId - /// - public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesTerritory", false); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, SalesTerritoryHistoryFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryHistoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesTerritoryHistoryRelations - { - internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new SalesTerritoryHistoryRelations().SalesPersonEntityUsingSalesPersonId; - internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new SalesTerritoryHistoryRelations().SalesTerritoryEntityUsingTerritoryId; - - /// CTor - static StaticSalesTerritoryHistoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryRelations.cs deleted file mode 100644 index 15fb20ee..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SalesTerritoryRelations.cs +++ /dev/null @@ -1,160 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SalesTerritory. - public partial class SalesTerritoryRelations - { - /// CTor - public SalesTerritoryRelations() - { - } - - /// Gets all relations of the SalesTerritoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.CustomerEntityUsingTerritoryId); - toReturn.Add(this.SalesOrderHeaderEntityUsingTerritoryId); - toReturn.Add(this.SalesPersonEntityUsingTerritoryId); - toReturn.Add(this.SalesTerritoryHistoryEntityUsingTerritoryId); - toReturn.Add(this.StateProvinceEntityUsingTerritoryId); - toReturn.Add(this.CountryRegionEntityUsingCountryRegionCode); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between SalesTerritoryEntity and CustomerEntity over the 1:n relation they have, using the relation between the fields: - /// SalesTerritory.TerritoryId - Customer.TerritoryId - /// - public virtual IEntityRelation CustomerEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Customers" , true); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, CustomerFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesTerritoryEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// SalesTerritory.TerritoryId - SalesOrderHeader.TerritoryId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders" , true); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, SalesOrderHeaderFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesTerritoryEntity and SalesPersonEntity over the 1:n relation they have, using the relation between the fields: - /// SalesTerritory.TerritoryId - SalesPerson.TerritoryId - /// - public virtual IEntityRelation SalesPersonEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesPeople" , true); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, SalesPersonFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesTerritoryEntity and SalesTerritoryHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// SalesTerritory.TerritoryId - SalesTerritoryHistory.TerritoryId - /// - public virtual IEntityRelation SalesTerritoryHistoryEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesTerritoryHistories" , true); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, SalesTerritoryHistoryFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryHistoryEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between SalesTerritoryEntity and StateProvinceEntity over the 1:n relation they have, using the relation between the fields: - /// SalesTerritory.TerritoryId - StateProvince.TerritoryId - /// - public virtual IEntityRelation StateProvinceEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "StateProvinces" , true); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, StateProvinceFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between SalesTerritoryEntity and CountryRegionEntity over the m:1 relation they have, using the relation between the fields: - /// SalesTerritory.CountryRegionCode - CountryRegion.CountryRegionCode - /// - public virtual IEntityRelation CountryRegionEntityUsingCountryRegionCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "CountryRegion", false); - relation.AddEntityFieldPair(CountryRegionFields.CountryRegionCode, SalesTerritoryFields.CountryRegionCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSalesTerritoryRelations - { - internal static readonly IEntityRelation CustomerEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().CustomerEntityUsingTerritoryId; - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().SalesOrderHeaderEntityUsingTerritoryId; - internal static readonly IEntityRelation SalesPersonEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().SalesPersonEntityUsingTerritoryId; - internal static readonly IEntityRelation SalesTerritoryHistoryEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().SalesTerritoryHistoryEntityUsingTerritoryId; - internal static readonly IEntityRelation StateProvinceEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().StateProvinceEntityUsingTerritoryId; - internal static readonly IEntityRelation CountryRegionEntityUsingCountryRegionCodeStatic = new SalesTerritoryRelations().CountryRegionEntityUsingCountryRegionCode; - - /// CTor - static StaticSalesTerritoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ScrapReasonRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ScrapReasonRelations.cs deleted file mode 100644 index 05508373..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ScrapReasonRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ScrapReason. - public partial class ScrapReasonRelations - { - /// CTor - public ScrapReasonRelations() - { - } - - /// Gets all relations of the ScrapReasonEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.WorkOrderEntityUsingScrapReasonId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ScrapReasonEntity and WorkOrderEntity over the 1:n relation they have, using the relation between the fields: - /// ScrapReason.ScrapReasonId - WorkOrder.ScrapReasonId - /// - public virtual IEntityRelation WorkOrderEntityUsingScrapReasonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "WorkOrders" , true); - relation.AddEntityFieldPair(ScrapReasonFields.ScrapReasonId, WorkOrderFields.ScrapReasonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ScrapReasonEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticScrapReasonRelations - { - internal static readonly IEntityRelation WorkOrderEntityUsingScrapReasonIdStatic = new ScrapReasonRelations().WorkOrderEntityUsingScrapReasonId; - - /// CTor - static StaticScrapReasonRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ShiftRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ShiftRelations.cs deleted file mode 100644 index f3cdb62d..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ShiftRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Shift. - public partial class ShiftRelations - { - /// CTor - public ShiftRelations() - { - } - - /// Gets all relations of the ShiftEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.EmployeeDepartmentHistoryEntityUsingShiftId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ShiftEntity and EmployeeDepartmentHistoryEntity over the 1:n relation they have, using the relation between the fields: - /// Shift.ShiftId - EmployeeDepartmentHistory.ShiftId - /// - public virtual IEntityRelation EmployeeDepartmentHistoryEntityUsingShiftId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "EmployeeDepartmentHistories" , true); - relation.AddEntityFieldPair(ShiftFields.ShiftId, EmployeeDepartmentHistoryFields.ShiftId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShiftEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("EmployeeDepartmentHistoryEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticShiftRelations - { - internal static readonly IEntityRelation EmployeeDepartmentHistoryEntityUsingShiftIdStatic = new ShiftRelations().EmployeeDepartmentHistoryEntityUsingShiftId; - - /// CTor - static StaticShiftRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ShipMethodRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ShipMethodRelations.cs deleted file mode 100644 index 8961cf9e..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ShipMethodRelations.cs +++ /dev/null @@ -1,93 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ShipMethod. - public partial class ShipMethodRelations - { - /// CTor - public ShipMethodRelations() - { - } - - /// Gets all relations of the ShipMethodEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.PurchaseOrderHeaderEntityUsingShipMethodId); - toReturn.Add(this.SalesOrderHeaderEntityUsingShipMethodId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between ShipMethodEntity and PurchaseOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// ShipMethod.ShipMethodId - PurchaseOrderHeader.ShipMethodId - /// - public virtual IEntityRelation PurchaseOrderHeaderEntityUsingShipMethodId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "PurchaseOrderHeaders" , true); - relation.AddEntityFieldPair(ShipMethodFields.ShipMethodId, PurchaseOrderHeaderFields.ShipMethodId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShipMethodEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between ShipMethodEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// ShipMethod.ShipMethodId - SalesOrderHeader.ShipMethodId - /// - public virtual IEntityRelation SalesOrderHeaderEntityUsingShipMethodId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderHeaders" , true); - relation.AddEntityFieldPair(ShipMethodFields.ShipMethodId, SalesOrderHeaderFields.ShipMethodId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShipMethodEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderHeaderEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticShipMethodRelations - { - internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingShipMethodIdStatic = new ShipMethodRelations().PurchaseOrderHeaderEntityUsingShipMethodId; - internal static readonly IEntityRelation SalesOrderHeaderEntityUsingShipMethodIdStatic = new ShipMethodRelations().SalesOrderHeaderEntityUsingShipMethodId; - - /// CTor - static StaticShipMethodRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/ShoppingCartItemRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/ShoppingCartItemRelations.cs deleted file mode 100644 index bc8d26a0..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/ShoppingCartItemRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: ShoppingCartItem. - public partial class ShoppingCartItemRelations - { - /// CTor - public ShoppingCartItemRelations() - { - } - - /// Gets all relations of the ShoppingCartItemEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between ShoppingCartItemEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// ShoppingCartItem.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, ShoppingCartItemFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ShoppingCartItemEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticShoppingCartItemRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ShoppingCartItemRelations().ProductEntityUsingProductId; - - /// CTor - static StaticShoppingCartItemRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferProductRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferProductRelations.cs deleted file mode 100644 index bd04c4bf..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferProductRelations.cs +++ /dev/null @@ -1,110 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SpecialOfferProduct. - public partial class SpecialOfferProductRelations - { - /// CTor - public SpecialOfferProductRelations() - { - } - - /// Gets all relations of the SpecialOfferProductEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SalesOrderDetailEntityUsingProductIdSpecialOfferId); - toReturn.Add(this.ProductEntityUsingProductId); - toReturn.Add(this.SpecialOfferEntityUsingSpecialOfferId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between SpecialOfferProductEntity and SalesOrderDetailEntity over the 1:n relation they have, using the relation between the fields: - /// SpecialOfferProduct.ProductId - SalesOrderDetail.ProductId - /// SpecialOfferProduct.SpecialOfferId - SalesOrderDetail.SpecialOfferId - /// - public virtual IEntityRelation SalesOrderDetailEntityUsingProductIdSpecialOfferId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesOrderDetails" , true); - relation.AddEntityFieldPair(SpecialOfferProductFields.ProductId, SalesOrderDetailFields.ProductId); - relation.AddEntityFieldPair(SpecialOfferProductFields.SpecialOfferId, SalesOrderDetailFields.SpecialOfferId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferProductEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesOrderDetailEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between SpecialOfferProductEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// SpecialOfferProduct.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, SpecialOfferProductFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferProductEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between SpecialOfferProductEntity and SpecialOfferEntity over the m:1 relation they have, using the relation between the fields: - /// SpecialOfferProduct.SpecialOfferId - SpecialOffer.SpecialOfferId - /// - public virtual IEntityRelation SpecialOfferEntityUsingSpecialOfferId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SpecialOffer", false); - relation.AddEntityFieldPair(SpecialOfferFields.SpecialOfferId, SpecialOfferProductFields.SpecialOfferId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferProductEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSpecialOfferProductRelations - { - internal static readonly IEntityRelation SalesOrderDetailEntityUsingProductIdSpecialOfferIdStatic = new SpecialOfferProductRelations().SalesOrderDetailEntityUsingProductIdSpecialOfferId; - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new SpecialOfferProductRelations().ProductEntityUsingProductId; - internal static readonly IEntityRelation SpecialOfferEntityUsingSpecialOfferIdStatic = new SpecialOfferProductRelations().SpecialOfferEntityUsingSpecialOfferId; - - /// CTor - static StaticSpecialOfferProductRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferRelations.cs deleted file mode 100644 index ee1a1138..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/SpecialOfferRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: SpecialOffer. - public partial class SpecialOfferRelations - { - /// CTor - public SpecialOfferRelations() - { - } - - /// Gets all relations of the SpecialOfferEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.SpecialOfferProductEntityUsingSpecialOfferId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between SpecialOfferEntity and SpecialOfferProductEntity over the 1:n relation they have, using the relation between the fields: - /// SpecialOffer.SpecialOfferId - SpecialOfferProduct.SpecialOfferId - /// - public virtual IEntityRelation SpecialOfferProductEntityUsingSpecialOfferId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SpecialOfferProducts" , true); - relation.AddEntityFieldPair(SpecialOfferFields.SpecialOfferId, SpecialOfferProductFields.SpecialOfferId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SpecialOfferProductEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticSpecialOfferRelations - { - internal static readonly IEntityRelation SpecialOfferProductEntityUsingSpecialOfferIdStatic = new SpecialOfferRelations().SpecialOfferProductEntityUsingSpecialOfferId; - - /// CTor - static StaticSpecialOfferRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/StateProvinceRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/StateProvinceRelations.cs deleted file mode 100644 index 679c6483..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/StateProvinceRelations.cs +++ /dev/null @@ -1,125 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: StateProvince. - public partial class StateProvinceRelations - { - /// CTor - public StateProvinceRelations() - { - } - - /// Gets all relations of the StateProvinceEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.AddressEntityUsingStateProvinceId); - toReturn.Add(this.SalesTaxRateEntityUsingStateProvinceId); - toReturn.Add(this.CountryRegionEntityUsingCountryRegionCode); - toReturn.Add(this.SalesTerritoryEntityUsingTerritoryId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between StateProvinceEntity and AddressEntity over the 1:n relation they have, using the relation between the fields: - /// StateProvince.StateProvinceId - Address.StateProvinceId - /// - public virtual IEntityRelation AddressEntityUsingStateProvinceId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Addresses" , true); - relation.AddEntityFieldPair(StateProvinceFields.StateProvinceId, AddressFields.StateProvinceId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AddressEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between StateProvinceEntity and SalesTaxRateEntity over the 1:n relation they have, using the relation between the fields: - /// StateProvince.StateProvinceId - SalesTaxRate.StateProvinceId - /// - public virtual IEntityRelation SalesTaxRateEntityUsingStateProvinceId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "SalesTaxRates" , true); - relation.AddEntityFieldPair(StateProvinceFields.StateProvinceId, SalesTaxRateFields.StateProvinceId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTaxRateEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between StateProvinceEntity and CountryRegionEntity over the m:1 relation they have, using the relation between the fields: - /// StateProvince.CountryRegionCode - CountryRegion.CountryRegionCode - /// - public virtual IEntityRelation CountryRegionEntityUsingCountryRegionCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "CountryRegion", false); - relation.AddEntityFieldPair(CountryRegionFields.CountryRegionCode, StateProvinceFields.CountryRegionCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CountryRegionEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between StateProvinceEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: - /// StateProvince.TerritoryId - SalesTerritory.TerritoryId - /// - public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesTerritory", false); - relation.AddEntityFieldPair(SalesTerritoryFields.TerritoryId, StateProvinceFields.TerritoryId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesTerritoryEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StateProvinceEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticStateProvinceRelations - { - internal static readonly IEntityRelation AddressEntityUsingStateProvinceIdStatic = new StateProvinceRelations().AddressEntityUsingStateProvinceId; - internal static readonly IEntityRelation SalesTaxRateEntityUsingStateProvinceIdStatic = new StateProvinceRelations().SalesTaxRateEntityUsingStateProvinceId; - internal static readonly IEntityRelation CountryRegionEntityUsingCountryRegionCodeStatic = new StateProvinceRelations().CountryRegionEntityUsingCountryRegionCode; - internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new StateProvinceRelations().SalesTerritoryEntityUsingTerritoryId; - - /// CTor - static StaticStateProvinceRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/StoreRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/StoreRelations.cs deleted file mode 100644 index 78330032..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/StoreRelations.cs +++ /dev/null @@ -1,112 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Store. - public partial class StoreRelations - { - /// CTor - public StoreRelations() - { - } - - /// Gets all relations of the StoreEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.CustomerEntityUsingStoreId); - toReturn.Add(this.BusinessEntityEntityUsingCustomerId); - toReturn.Add(this.SalesPersonEntityUsingSalesPersonId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between StoreEntity and CustomerEntity over the 1:n relation they have, using the relation between the fields: - /// Store.CustomerId - Customer.StoreId - /// - public virtual IEntityRelation CustomerEntityUsingStoreId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Customers" , true); - relation.AddEntityFieldPair(StoreFields.CustomerId, CustomerFields.StoreId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StoreEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between StoreEntity and BusinessEntityEntity over the 1:1 relation they have, using the relation between the fields: - /// Store.CustomerId - BusinessEntity.BusinessEntityId - /// - public virtual IEntityRelation BusinessEntityEntityUsingCustomerId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "BusinessEntity", false); - - - - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, StoreFields.CustomerId); - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StoreEntity", true); - return relation; - } - } - - /// Returns a new IEntityRelation object, between StoreEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: - /// Store.SalesPersonId - SalesPerson.SalesPersonId - /// - public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "SalesPerson", false); - relation.AddEntityFieldPair(SalesPersonFields.SalesPersonId, StoreFields.SalesPersonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("SalesPersonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("StoreEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticStoreRelations - { - internal static readonly IEntityRelation CustomerEntityUsingStoreIdStatic = new StoreRelations().CustomerEntityUsingStoreId; - internal static readonly IEntityRelation BusinessEntityEntityUsingCustomerIdStatic = new StoreRelations().BusinessEntityEntityUsingCustomerId; - internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new StoreRelations().SalesPersonEntityUsingSalesPersonId; - - /// CTor - static StaticStoreRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryArchiveRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryArchiveRelations.cs deleted file mode 100644 index ec57dd4c..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryArchiveRelations.cs +++ /dev/null @@ -1,60 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: TransactionHistoryArchive. - public partial class TransactionHistoryArchiveRelations - { - /// CTor - public TransactionHistoryArchiveRelations() - { - } - - /// Gets all relations of the TransactionHistoryArchiveEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - return toReturn; - } - - #region Class Property Declarations - - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticTransactionHistoryArchiveRelations - { - - /// CTor - static StaticTransactionHistoryArchiveRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryRelations.cs deleted file mode 100644 index d63b6490..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/TransactionHistoryRelations.cs +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: TransactionHistory. - public partial class TransactionHistoryRelations - { - /// CTor - public TransactionHistoryRelations() - { - } - - /// Gets all relations of the TransactionHistoryEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductEntityUsingProductId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between TransactionHistoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// TransactionHistory.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, TransactionHistoryFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("TransactionHistoryEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticTransactionHistoryRelations - { - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new TransactionHistoryRelations().ProductEntityUsingProductId; - - /// CTor - static StaticTransactionHistoryRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/UnitMeasureRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/UnitMeasureRelations.cs deleted file mode 100644 index 0b76bc34..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/UnitMeasureRelations.cs +++ /dev/null @@ -1,127 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: UnitMeasure. - public partial class UnitMeasureRelations - { - /// CTor - public UnitMeasureRelations() - { - } - - /// Gets all relations of the UnitMeasureEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.BillOfMaterialEntityUsingUnitMeasureCode); - toReturn.Add(this.ProductEntityUsingSizeUnitMeasureCode); - toReturn.Add(this.ProductEntityUsingWeightUnitMeasureCode); - toReturn.Add(this.ProductVendorEntityUsingUnitMeasureCode); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between UnitMeasureEntity and BillOfMaterialEntity over the 1:n relation they have, using the relation between the fields: - /// UnitMeasure.UnitMeasureCode - BillOfMaterial.UnitMeasureCode - /// - public virtual IEntityRelation BillOfMaterialEntityUsingUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "BillOfMaterials" , true); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, BillOfMaterialFields.UnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BillOfMaterialEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between UnitMeasureEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: - /// UnitMeasure.UnitMeasureCode - Product.SizeUnitMeasureCode - /// - public virtual IEntityRelation ProductEntityUsingSizeUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Products" , true); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, ProductFields.SizeUnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between UnitMeasureEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: - /// UnitMeasure.UnitMeasureCode - Product.WeightUnitMeasureCode - /// - public virtual IEntityRelation ProductEntityUsingWeightUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "Products_" , true); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, ProductFields.WeightUnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between UnitMeasureEntity and ProductVendorEntity over the 1:n relation they have, using the relation between the fields: - /// UnitMeasure.UnitMeasureCode - ProductVendor.UnitMeasureCode - /// - public virtual IEntityRelation ProductVendorEntityUsingUnitMeasureCode - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductVendors" , true); - relation.AddEntityFieldPair(UnitMeasureFields.UnitMeasureCode, ProductVendorFields.UnitMeasureCode); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UnitMeasureEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductVendorEntity", false); - return relation; - } - } - - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticUnitMeasureRelations - { - internal static readonly IEntityRelation BillOfMaterialEntityUsingUnitMeasureCodeStatic = new UnitMeasureRelations().BillOfMaterialEntityUsingUnitMeasureCode; - internal static readonly IEntityRelation ProductEntityUsingSizeUnitMeasureCodeStatic = new UnitMeasureRelations().ProductEntityUsingSizeUnitMeasureCode; - internal static readonly IEntityRelation ProductEntityUsingWeightUnitMeasureCodeStatic = new UnitMeasureRelations().ProductEntityUsingWeightUnitMeasureCode; - internal static readonly IEntityRelation ProductVendorEntityUsingUnitMeasureCodeStatic = new UnitMeasureRelations().ProductVendorEntityUsingUnitMeasureCode; - - /// CTor - static StaticUnitMeasureRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/VendorRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/VendorRelations.cs deleted file mode 100644 index 6c84b281..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/VendorRelations.cs +++ /dev/null @@ -1,113 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: Vendor. - public partial class VendorRelations - { - /// CTor - public VendorRelations() - { - } - - /// Gets all relations of the VendorEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.ProductVendorEntityUsingVendorId); - toReturn.Add(this.PurchaseOrderHeaderEntityUsingVendorId); - toReturn.Add(this.BusinessEntityEntityUsingVendorId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between VendorEntity and ProductVendorEntity over the 1:n relation they have, using the relation between the fields: - /// Vendor.VendorId - ProductVendor.VendorId - /// - public virtual IEntityRelation ProductVendorEntityUsingVendorId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "ProductVendors" , true); - relation.AddEntityFieldPair(VendorFields.VendorId, ProductVendorFields.VendorId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("VendorEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductVendorEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between VendorEntity and PurchaseOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: - /// Vendor.VendorId - PurchaseOrderHeader.VendorId - /// - public virtual IEntityRelation PurchaseOrderHeaderEntityUsingVendorId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "PurchaseOrderHeaders" , true); - relation.AddEntityFieldPair(VendorFields.VendorId, PurchaseOrderHeaderFields.VendorId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("VendorEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PurchaseOrderHeaderEntity", false); - return relation; - } - } - - /// Returns a new IEntityRelation object, between VendorEntity and BusinessEntityEntity over the 1:1 relation they have, using the relation between the fields: - /// Vendor.VendorId - BusinessEntity.BusinessEntityId - /// - public virtual IEntityRelation BusinessEntityEntityUsingVendorId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "BusinessEntity", false); - - - - relation.AddEntityFieldPair(BusinessEntityFields.BusinessEntityId, VendorFields.VendorId); - - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("BusinessEntityEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("VendorEntity", true); - return relation; - } - } - - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticVendorRelations - { - internal static readonly IEntityRelation ProductVendorEntityUsingVendorIdStatic = new VendorRelations().ProductVendorEntityUsingVendorId; - internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingVendorIdStatic = new VendorRelations().PurchaseOrderHeaderEntityUsingVendorId; - internal static readonly IEntityRelation BusinessEntityEntityUsingVendorIdStatic = new VendorRelations().BusinessEntityEntityUsingVendorId; - - /// CTor - static StaticVendorRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRelations.cs deleted file mode 100644 index 77abb9d0..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRelations.cs +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: WorkOrder. - public partial class WorkOrderRelations - { - /// CTor - public WorkOrderRelations() - { - } - - /// Gets all relations of the WorkOrderEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.WorkOrderRoutingEntityUsingWorkOrderId); - toReturn.Add(this.ProductEntityUsingProductId); - toReturn.Add(this.ScrapReasonEntityUsingScrapReasonId); - return toReturn; - } - - #region Class Property Declarations - - /// Returns a new IEntityRelation object, between WorkOrderEntity and WorkOrderRoutingEntity over the 1:n relation they have, using the relation between the fields: - /// WorkOrder.WorkOrderId - WorkOrderRouting.WorkOrderId - /// - public virtual IEntityRelation WorkOrderRoutingEntityUsingWorkOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "WorkOrderRoutings" , true); - relation.AddEntityFieldPair(WorkOrderFields.WorkOrderId, WorkOrderRoutingFields.WorkOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderEntity", true); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderRoutingEntity", false); - return relation; - } - } - - - /// Returns a new IEntityRelation object, between WorkOrderEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: - /// WorkOrder.ProductId - Product.ProductId - /// - public virtual IEntityRelation ProductEntityUsingProductId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Product", false); - relation.AddEntityFieldPair(ProductFields.ProductId, WorkOrderFields.ProductId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProductEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between WorkOrderEntity and ScrapReasonEntity over the m:1 relation they have, using the relation between the fields: - /// WorkOrder.ScrapReasonId - ScrapReason.ScrapReasonId - /// - public virtual IEntityRelation ScrapReasonEntityUsingScrapReasonId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ScrapReason", false); - relation.AddEntityFieldPair(ScrapReasonFields.ScrapReasonId, WorkOrderFields.ScrapReasonId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ScrapReasonEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticWorkOrderRelations - { - internal static readonly IEntityRelation WorkOrderRoutingEntityUsingWorkOrderIdStatic = new WorkOrderRelations().WorkOrderRoutingEntityUsingWorkOrderId; - internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new WorkOrderRelations().ProductEntityUsingProductId; - internal static readonly IEntityRelation ScrapReasonEntityUsingScrapReasonIdStatic = new WorkOrderRelations().ScrapReasonEntityUsingScrapReasonId; - - /// CTor - static StaticWorkOrderRelations() - { - } - } -} diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRoutingRelations.cs b/LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRoutingRelations.cs deleted file mode 100644 index adf578a3..00000000 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/WorkOrderRoutingRelations.cs +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. -////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 -// Code is generated on: -// Code is generated using templates: SD.TemplateBindings.SharedTemplates -// Templates vendor: Solutions Design. -// Templates version: -////////////////////////////////////////////////////////////// -using System; -using System.Collections; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using SD.LLBLGen.Pro.ORMSupportClasses; - -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses -{ - /// Implements the relations factory for the entity: WorkOrderRouting. - public partial class WorkOrderRoutingRelations - { - /// CTor - public WorkOrderRoutingRelations() - { - } - - /// Gets all relations of the WorkOrderRoutingEntity as a list of IEntityRelation objects. - /// a list of IEntityRelation objects - public virtual List GetAllRelations() - { - List toReturn = new List(); - toReturn.Add(this.LocationEntityUsingLocationId); - toReturn.Add(this.WorkOrderEntityUsingWorkOrderId); - return toReturn; - } - - #region Class Property Declarations - - - - /// Returns a new IEntityRelation object, between WorkOrderRoutingEntity and LocationEntity over the m:1 relation they have, using the relation between the fields: - /// WorkOrderRouting.LocationId - Location.LocationId - /// - public virtual IEntityRelation LocationEntityUsingLocationId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Location", false); - relation.AddEntityFieldPair(LocationFields.LocationId, WorkOrderRoutingFields.LocationId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("LocationEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderRoutingEntity", true); - return relation; - } - } - /// Returns a new IEntityRelation object, between WorkOrderRoutingEntity and WorkOrderEntity over the m:1 relation they have, using the relation between the fields: - /// WorkOrderRouting.WorkOrderId - WorkOrder.WorkOrderId - /// - public virtual IEntityRelation WorkOrderEntityUsingWorkOrderId - { - get - { - IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "WorkOrder", false); - relation.AddEntityFieldPair(WorkOrderFields.WorkOrderId, WorkOrderRoutingFields.WorkOrderId); - relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderEntity", false); - relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WorkOrderRoutingEntity", true); - return relation; - } - } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } - /// stub, not used in this entity, only for TargetPerEntity entities. - public virtual IEntityRelation GetSuperTypeRelation() { return null;} - #endregion - - #region Included Code - - #endregion - } - - /// Static class which is used for providing relationship instances which are re-used internally for syncing - internal static class StaticWorkOrderRoutingRelations - { - internal static readonly IEntityRelation LocationEntityUsingLocationIdStatic = new WorkOrderRoutingRelations().LocationEntityUsingLocationId; - internal static readonly IEntityRelation WorkOrderEntityUsingWorkOrderIdStatic = new WorkOrderRoutingRelations().WorkOrderEntityUsingWorkOrderId; - - /// CTor - static StaticWorkOrderRoutingRelations() - { - } - } -} diff --git a/LLBLGen53/AW.llblgenproj b/LLBLGen54/AW.llblgenproj similarity index 99% rename from LLBLGen53/AW.llblgenproj rename to LLBLGen54/AW.llblgenproj index 85952760..d774af58 100644 --- a/LLBLGen53/AW.llblgenproj +++ b/LLBLGen54/AW.llblgenproj @@ -1,6 +1,6 @@  - - + + @@ -16,7 +16,6 @@ - @@ -92,12 +91,12 @@ - + - + @@ -109,6 +108,27 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/LLBLGen54/DatabaseGeneric/AdventureWorks.Dal.Adapter.v54.csproj b/LLBLGen54/DatabaseGeneric/AdventureWorks.Dal.Adapter.v54.csproj new file mode 100644 index 00000000..8773912a --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/AdventureWorks.Dal.Adapter.v54.csproj @@ -0,0 +1,302 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {E293317E-71F0-41C0-B004-BB30D5E04B47} + Library + Properties + AdventureWorks.Dal.Adapter.v54 + AdventureWorks.Dal.Adapter.v54 + v4.6.2 + 512 + + + + true + full + false + DatabaseGeneric\bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + DatabaseGeneric\bin\Release\ + TRACE + prompt + 4 + + + + False + ..\..\ReferencedAssemblies\Microsoft.SqlServer.Types.dll + + + ..\..\ReferencedAssemblies\SD.LLBLGen.Pro.ORMSupportClasses.dll + + + + + + + + + + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + LLBLGen Pro + + + + \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/AssemblyInfo.cs b/LLBLGen54/DatabaseGeneric/AssemblyInfo.cs similarity index 100% rename from LLBLGen53/DatabaseGeneric/AssemblyInfo.cs rename to LLBLGen54/DatabaseGeneric/AssemblyInfo.cs diff --git a/LLBLGen54/DatabaseGeneric/ConstantsEnums.cs b/LLBLGen54/DatabaseGeneric/ConstantsEnums.cs new file mode 100644 index 00000000..f6a01694 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/ConstantsEnums.cs @@ -0,0 +1,345 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +////////////////////////////////////////////////////////////// +using System; + +namespace AdventureWorks.Dal.Adapter.v54 +{ + /// Index enum to fast-access Typed View EntityFields in the IEntityFields collection for the typed view : Soh. + public enum SohFieldIndex + { + ///SalesOrderId + SalesOrderId, + ///RevisionNumber + RevisionNumber, + ///OrderDate + OrderDate, + ///DueDate + DueDate, + ///ShipDate + ShipDate, + ///Status + Status, + ///OnlineOrderFlag + OnlineOrderFlag, + ///SalesOrderNumber + SalesOrderNumber, + ///PurchaseOrderNumber + PurchaseOrderNumber, + ///AccountNumber + AccountNumber, + ///CustomerId + CustomerId, + ///SalesPersonId + SalesPersonId, + ///TerritoryId + TerritoryId, + ///BillToAddressId + BillToAddressId, + ///ShipToAddressId + ShipToAddressId, + ///ShipMethodId + ShipMethodId, + ///CreditCardId + CreditCardId, + ///CreditCardApprovalCode + CreditCardApprovalCode, + ///CurrencyRateId + CurrencyRateId, + ///SubTotal + SubTotal, + ///TaxAmt + TaxAmt, + ///Freight + Freight, + ///TotalDue + TotalDue, + ///Comment + Comment, + ///Rowguid + Rowguid, + ///ModifiedDate + ModifiedDate, + /// + AmountOfFields + } + /// Index enum to fast-access Typed View EntityFields in the IEntityFields collection for the typed view : SohLinqPoco. + public enum SohLinqPocoFieldIndex + { + ///SalesOrderId + SalesOrderId, + ///RevisionNumber + RevisionNumber, + ///OrderDate + OrderDate, + ///DueDate + DueDate, + ///ShipDate + ShipDate, + ///Status + Status, + ///OnlineOrderFlag + OnlineOrderFlag, + ///SalesOrderNumber + SalesOrderNumber, + ///PurchaseOrderNumber + PurchaseOrderNumber, + ///AccountNumber + AccountNumber, + ///CustomerId + CustomerId, + ///SalesPersonId + SalesPersonId, + ///TerritoryId + TerritoryId, + ///BillToAddressId + BillToAddressId, + ///ShipToAddressId + ShipToAddressId, + ///ShipMethodId + ShipMethodId, + ///CreditCardId + CreditCardId, + ///CreditCardApprovalCode + CreditCardApprovalCode, + ///CurrencyRateId + CurrencyRateId, + ///SubTotal + SubTotal, + ///TaxAmt + TaxAmt, + ///Freight + Freight, + ///TotalDue + TotalDue, + ///Comment + Comment, + ///Rowguid + Rowguid, + ///ModifiedDate + ModifiedDate, + /// + AmountOfFields + } + /// Index enum to fast-access Typed View EntityFields in the IEntityFields collection for the typed view : SohQuerySpecPoco. + public enum SohQuerySpecPocoFieldIndex + { + ///SalesOrderId + SalesOrderId, + ///RevisionNumber + RevisionNumber, + ///OrderDate + OrderDate, + ///DueDate + DueDate, + ///ShipDate + ShipDate, + ///Status + Status, + ///OnlineOrderFlag + OnlineOrderFlag, + ///SalesOrderNumber + SalesOrderNumber, + ///PurchaseOrderNumber + PurchaseOrderNumber, + ///AccountNumber + AccountNumber, + ///CustomerId + CustomerId, + ///SalesPersonId + SalesPersonId, + ///TerritoryId + TerritoryId, + ///BillToAddressId + BillToAddressId, + ///ShipToAddressId + ShipToAddressId, + ///ShipMethodId + ShipMethodId, + ///CreditCardId + CreditCardId, + ///CreditCardApprovalCode + CreditCardApprovalCode, + ///CurrencyRateId + CurrencyRateId, + ///SubTotal + SubTotal, + ///TaxAmt + TaxAmt, + ///Freight + Freight, + ///TotalDue + TotalDue, + ///Comment + Comment, + ///Rowguid + Rowguid, + ///ModifiedDate + ModifiedDate, + /// + AmountOfFields + } + + + /// Enum definition for all the entity types defined in this namespace. Used by the entityfields factory. + public enum EntityType + { + ///Address + AddressEntity, + ///AddressType + AddressTypeEntity, + ///BillOfMaterial + BillOfMaterialEntity, + ///BusinessEntity + BusinessEntityEntity, + ///BusinessEntityAddress + BusinessEntityAddressEntity, + ///BusinessEntityContact + BusinessEntityContactEntity, + ///ContactCreditCard + ContactCreditCardEntity, + ///ContactType + ContactTypeEntity, + ///CountryRegion + CountryRegionEntity, + ///CountryRegionCurrency + CountryRegionCurrencyEntity, + ///CreditCard + CreditCardEntity, + ///Culture + CultureEntity, + ///Currency + CurrencyEntity, + ///CurrencyRate + CurrencyRateEntity, + ///Customer + CustomerEntity, + ///Department + DepartmentEntity, + ///Document + DocumentEntity, + ///EmailAddress + EmailAddressEntity, + ///Employee + EmployeeEntity, + ///EmployeeDepartmentHistory + EmployeeDepartmentHistoryEntity, + ///EmployeePayHistory + EmployeePayHistoryEntity, + ///Illustration + IllustrationEntity, + ///JobCandidate + JobCandidateEntity, + ///Location + LocationEntity, + ///Password + PasswordEntity, + ///Person + PersonEntity, + ///PersonPhone + PersonPhoneEntity, + ///PhoneNumberType + PhoneNumberTypeEntity, + ///Product + ProductEntity, + ///ProductCategory + ProductCategoryEntity, + ///ProductCostHistory + ProductCostHistoryEntity, + ///ProductDescription + ProductDescriptionEntity, + ///ProductDocument + ProductDocumentEntity, + ///ProductInventory + ProductInventoryEntity, + ///ProductListPriceHistory + ProductListPriceHistoryEntity, + ///ProductModel + ProductModelEntity, + ///ProductModelIllustration + ProductModelIllustrationEntity, + ///ProductModelProductDescriptionCulture + ProductModelProductDescriptionCultureEntity, + ///ProductPhoto + ProductPhotoEntity, + ///ProductProductPhoto + ProductProductPhotoEntity, + ///ProductReview + ProductReviewEntity, + ///ProductSubcategory + ProductSubcategoryEntity, + ///ProductVendor + ProductVendorEntity, + ///PurchaseOrderDetail + PurchaseOrderDetailEntity, + ///PurchaseOrderHeader + PurchaseOrderHeaderEntity, + ///SalesOrderDetail + SalesOrderDetailEntity, + ///SalesOrderHeader + SalesOrderHeaderEntity, + ///SalesOrderHeaderSalesReason + SalesOrderHeaderSalesReasonEntity, + ///SalesPerson + SalesPersonEntity, + ///SalesPersonQuotaHistory + SalesPersonQuotaHistoryEntity, + ///SalesReason + SalesReasonEntity, + ///SalesTaxRate + SalesTaxRateEntity, + ///SalesTerritory + SalesTerritoryEntity, + ///SalesTerritoryHistory + SalesTerritoryHistoryEntity, + ///ScrapReason + ScrapReasonEntity, + ///Shift + ShiftEntity, + ///ShipMethod + ShipMethodEntity, + ///ShoppingCartItem + ShoppingCartItemEntity, + ///SpecialOffer + SpecialOfferEntity, + ///SpecialOfferProduct + SpecialOfferProductEntity, + ///StateProvince + StateProvinceEntity, + ///Store + StoreEntity, + ///TransactionHistory + TransactionHistoryEntity, + ///TransactionHistoryArchive + TransactionHistoryArchiveEntity, + ///UnitMeasure + UnitMeasureEntity, + ///Vendor + VendorEntity, + ///WorkOrder + WorkOrderEntity, + ///WorkOrderRouting + WorkOrderRoutingEntity + } + + /// Enum definition for all the typed view types defined in this namespace. Used by the entityfields factory. + public enum TypedViewType + { + ///Soh + SohTypedView, + ///SohLinqPoco + SohLinqPocoTypedView, + ///SohQuerySpecPoco + SohQuerySpecPocoTypedView + } + + + // __LLBLGENPRO_USER_CODE_REGION_START CustomUserConstants + // __LLBLGENPRO_USER_CODE_REGION_END + +} + diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/AddressEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/AddressEntity.cs new file mode 100644 index 00000000..0a7129a4 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/AddressEntity.cs @@ -0,0 +1,342 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Address'.

+ [Serializable] + public partial class AddressEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _businessEntityAddresses; + private EntityCollection _salesOrderHeaders; + private EntityCollection _salesOrderHeaders_; + private StateProvinceEntity _stateProvince; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static AddressEntityStaticMetaData _staticMetaData = new AddressEntityStaticMetaData(); + private static AddressRelations _relationsFactory = new AddressRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name StateProvince + public static readonly string StateProvince = "StateProvince"; + /// Member name BusinessEntityAddresses + public static readonly string BusinessEntityAddresses = "BusinessEntityAddresses"; + /// Member name SalesOrderHeaders + public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; + /// Member name SalesOrderHeaders_ + public static readonly string SalesOrderHeaders_ = "SalesOrderHeaders_"; + } + + /// Static meta-data storage for navigator related information + protected class AddressEntityStaticMetaData : EntityStaticMetaDataBase + { + public AddressEntityStaticMetaData() + { + SetEntityCoreInfo("AddressEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity, typeof(AddressEntity), typeof(AddressEntityFactory), false); + AddNavigatorMetaData>("BusinessEntityAddresses", a => a._businessEntityAddresses, (a, b) => a._businessEntityAddresses = b, a => a.BusinessEntityAddresses, () => new AddressRelations().BusinessEntityAddressEntityUsingAddressId, typeof(BusinessEntityAddressEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityAddressEntity); + AddNavigatorMetaData>("SalesOrderHeaders", a => a._salesOrderHeaders, (a, b) => a._salesOrderHeaders = b, a => a.SalesOrderHeaders, () => new AddressRelations().SalesOrderHeaderEntityUsingBillToAddressId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData>("SalesOrderHeaders_", a => a._salesOrderHeaders_, (a, b) => a._salesOrderHeaders_ = b, a => a.SalesOrderHeaders_, () => new AddressRelations().SalesOrderHeaderEntityUsingShipToAddressId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData("StateProvince", "Addresses", (a, b) => a._stateProvince = b, a => a._stateProvince, (a, b) => a.StateProvince = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticAddressRelations.StateProvinceEntityUsingStateProvinceIdStatic, ()=>new AddressRelations().StateProvinceEntityUsingStateProvinceId, null, new int[] { (int)AddressFieldIndex.StateProvinceId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity); + } + } + + /// Static ctor + static AddressEntity() + { + } + + /// CTor + public AddressEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public AddressEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this AddressEntity + public AddressEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Address which data should be fetched into this Address object + public AddressEntity(System.Int32 addressId) : this(addressId, null) + { + } + + /// CTor + /// PK value for Address which data should be fetched into this Address object + /// The custom validator object for this AddressEntity + public AddressEntity(System.Int32 addressId, IValidator validator) + { + InitClassEmpty(validator, null); + this.AddressId = addressId; + } + + /// Private CTor for deserialization + /// + /// + protected AddressEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityAddress' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityAddresses() { return CreateRelationInfoForNavigator("BusinessEntityAddresses"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() { return CreateRelationInfoForNavigator("SalesOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders_() { return CreateRelationInfoForNavigator("SalesOrderHeaders_"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'StateProvince' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoStateProvince() { return CreateRelationInfoForNavigator("StateProvince"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this AddressEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static AddressRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityAddress' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntityAddresses { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntityAddresses", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders_ { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders_", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathStateProvince { get { return _staticMetaData.GetPrefetchPathElement("StateProvince", CommonEntityBase.CreateEntityCollection()); } } + + /// The AddressId property of the Entity Address

+ /// Mapped on table field: "Address"."AddressID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 AddressId + { + get { return (System.Int32)GetValue((int)AddressFieldIndex.AddressId, true); } + set { SetValue((int)AddressFieldIndex.AddressId, value); } } + + /// The AddressLine1 property of the Entity Address

+ /// Mapped on table field: "Address"."AddressLine1".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 60.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String AddressLine1 + { + get { return (System.String)GetValue((int)AddressFieldIndex.AddressLine1, true); } + set { SetValue((int)AddressFieldIndex.AddressLine1, value); } + } + + /// The AddressLine2 property of the Entity Address

+ /// Mapped on table field: "Address"."AddressLine2".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 60.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String AddressLine2 + { + get { return (System.String)GetValue((int)AddressFieldIndex.AddressLine2, true); } + set { SetValue((int)AddressFieldIndex.AddressLine2, value); } + } + + /// The City property of the Entity Address

+ /// Mapped on table field: "Address"."City".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 30.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String City + { + get { return (System.String)GetValue((int)AddressFieldIndex.City, true); } + set { SetValue((int)AddressFieldIndex.City, value); } + } + + /// The ModifiedDate property of the Entity Address

+ /// Mapped on table field: "Address"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)AddressFieldIndex.ModifiedDate, true); } + set { SetValue((int)AddressFieldIndex.ModifiedDate, value); } + } + + /// The PostalCode property of the Entity Address

+ /// Mapped on table field: "Address"."PostalCode".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String PostalCode + { + get { return (System.String)GetValue((int)AddressFieldIndex.PostalCode, true); } + set { SetValue((int)AddressFieldIndex.PostalCode, value); } + } + + /// The Rowguid property of the Entity Address

+ /// Mapped on table field: "Address"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)AddressFieldIndex.Rowguid, true); } + set { SetValue((int)AddressFieldIndex.Rowguid, value); } + } + + /// The SpatialLocation property of the Entity Address

+ /// Mapped on table field: "Address"."SpatialLocation".
Table field type characteristics (type, precision, scale, length): Udt, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Microsoft.SqlServer.Types.SqlGeography SpatialLocation + { + get { return (Microsoft.SqlServer.Types.SqlGeography)GetValue((int)AddressFieldIndex.SpatialLocation, true); } + set { SetValue((int)AddressFieldIndex.SpatialLocation, value); } + } + + /// The StateProvinceId property of the Entity Address

+ /// Mapped on table field: "Address"."StateProvinceID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 StateProvinceId + { + get { return (System.Int32)GetValue((int)AddressFieldIndex.StateProvinceId, true); } + set { SetValue((int)AddressFieldIndex.StateProvinceId, value); } + } + + /// Gets the EntityCollection with the related entities of type 'BusinessEntityAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BusinessEntityAddressEntity))] + public virtual EntityCollection BusinessEntityAddresses { get { return GetOrCreateEntityCollection("Address", true, false, ref _businessEntityAddresses); } } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders { get { return GetOrCreateEntityCollection("Address", true, false, ref _salesOrderHeaders); } } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders_ { get { return GetOrCreateEntityCollection("Address_", true, false, ref _salesOrderHeaders_); } } + + /// Gets / sets related entity of type 'StateProvinceEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual StateProvinceEntity StateProvince + { + get { return _stateProvince; } + set { SetSingleRelatedEntityNavigator(value, "StateProvince"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum AddressFieldIndex + { + ///AddressId. + AddressId, + ///AddressLine1. + AddressLine1, + ///AddressLine2. + AddressLine2, + ///City. + City, + ///ModifiedDate. + ModifiedDate, + ///PostalCode. + PostalCode, + ///Rowguid. + Rowguid, + ///SpatialLocation. + SpatialLocation, + ///StateProvinceId. + StateProvinceId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Address. + public partial class AddressRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between AddressEntity and BusinessEntityAddressEntity over the 1:n relation they have, using the relation between the fields: Address.AddressId - BusinessEntityAddress.AddressId + public virtual IEntityRelation BusinessEntityAddressEntityUsingAddressId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BusinessEntityAddresses", true, new[] { AddressFields.AddressId, BusinessEntityAddressFields.AddressId }); } + } + + /// Returns a new IEntityRelation object, between AddressEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: Address.AddressId - SalesOrderHeader.BillToAddressId + public virtual IEntityRelation SalesOrderHeaderEntityUsingBillToAddressId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders", true, new[] { AddressFields.AddressId, SalesOrderHeaderFields.BillToAddressId }); } + } + + /// Returns a new IEntityRelation object, between AddressEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: Address.AddressId - SalesOrderHeader.ShipToAddressId + public virtual IEntityRelation SalesOrderHeaderEntityUsingShipToAddressId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders_", true, new[] { AddressFields.AddressId, SalesOrderHeaderFields.ShipToAddressId }); } + } + + /// Returns a new IEntityRelation object, between AddressEntity and StateProvinceEntity over the m:1 relation they have, using the relation between the fields: Address.StateProvinceId - StateProvince.StateProvinceId + public virtual IEntityRelation StateProvinceEntityUsingStateProvinceId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "StateProvince", false, new[] { StateProvinceFields.StateProvinceId, AddressFields.StateProvinceId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticAddressRelations + { + internal static readonly IEntityRelation BusinessEntityAddressEntityUsingAddressIdStatic = new AddressRelations().BusinessEntityAddressEntityUsingAddressId; + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingBillToAddressIdStatic = new AddressRelations().SalesOrderHeaderEntityUsingBillToAddressId; + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingShipToAddressIdStatic = new AddressRelations().SalesOrderHeaderEntityUsingShipToAddressId; + internal static readonly IEntityRelation StateProvinceEntityUsingStateProvinceIdStatic = new AddressRelations().StateProvinceEntityUsingStateProvinceId; + + /// CTor + static StaticAddressRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs new file mode 100644 index 00000000..08db58c2 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs @@ -0,0 +1,219 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'AddressType'.

+ [Serializable] + public partial class AddressTypeEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _businessEntityAddresses; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static AddressTypeEntityStaticMetaData _staticMetaData = new AddressTypeEntityStaticMetaData(); + private static AddressTypeRelations _relationsFactory = new AddressTypeRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name BusinessEntityAddresses + public static readonly string BusinessEntityAddresses = "BusinessEntityAddresses"; + } + + /// Static meta-data storage for navigator related information + protected class AddressTypeEntityStaticMetaData : EntityStaticMetaDataBase + { + public AddressTypeEntityStaticMetaData() + { + SetEntityCoreInfo("AddressTypeEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.AddressTypeEntity, typeof(AddressTypeEntity), typeof(AddressTypeEntityFactory), false); + AddNavigatorMetaData>("BusinessEntityAddresses", a => a._businessEntityAddresses, (a, b) => a._businessEntityAddresses = b, a => a.BusinessEntityAddresses, () => new AddressTypeRelations().BusinessEntityAddressEntityUsingAddressTypeId, typeof(BusinessEntityAddressEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityAddressEntity); + } + } + + /// Static ctor + static AddressTypeEntity() + { + } + + /// CTor + public AddressTypeEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public AddressTypeEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this AddressTypeEntity + public AddressTypeEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for AddressType which data should be fetched into this AddressType object + public AddressTypeEntity(System.Int32 addressTypeId) : this(addressTypeId, null) + { + } + + /// CTor + /// PK value for AddressType which data should be fetched into this AddressType object + /// The custom validator object for this AddressTypeEntity + public AddressTypeEntity(System.Int32 addressTypeId, IValidator validator) + { + InitClassEmpty(validator, null); + this.AddressTypeId = addressTypeId; + } + + /// Private CTor for deserialization + /// + /// + protected AddressTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityAddress' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityAddresses() { return CreateRelationInfoForNavigator("BusinessEntityAddresses"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this AddressTypeEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static AddressTypeRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityAddress' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntityAddresses { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntityAddresses", CommonEntityBase.CreateEntityCollection()); } } + + /// The AddressTypeId property of the Entity AddressType

+ /// Mapped on table field: "AddressType"."AddressTypeID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 AddressTypeId + { + get { return (System.Int32)GetValue((int)AddressTypeFieldIndex.AddressTypeId, true); } + set { SetValue((int)AddressTypeFieldIndex.AddressTypeId, value); } } + + /// The ModifiedDate property of the Entity AddressType

+ /// Mapped on table field: "AddressType"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)AddressTypeFieldIndex.ModifiedDate, true); } + set { SetValue((int)AddressTypeFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity AddressType

+ /// Mapped on table field: "AddressType"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)AddressTypeFieldIndex.Name, true); } + set { SetValue((int)AddressTypeFieldIndex.Name, value); } + } + + /// The Rowguid property of the Entity AddressType

+ /// Mapped on table field: "AddressType"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)AddressTypeFieldIndex.Rowguid, true); } + set { SetValue((int)AddressTypeFieldIndex.Rowguid, value); } + } + + /// Gets the EntityCollection with the related entities of type 'BusinessEntityAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BusinessEntityAddressEntity))] + public virtual EntityCollection BusinessEntityAddresses { get { return GetOrCreateEntityCollection("AddressType", true, false, ref _businessEntityAddresses); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum AddressTypeFieldIndex + { + ///AddressTypeId. + AddressTypeId, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: AddressType. + public partial class AddressTypeRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between AddressTypeEntity and BusinessEntityAddressEntity over the 1:n relation they have, using the relation between the fields: AddressType.AddressTypeId - BusinessEntityAddress.AddressTypeId + public virtual IEntityRelation BusinessEntityAddressEntityUsingAddressTypeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BusinessEntityAddresses", true, new[] { AddressTypeFields.AddressTypeId, BusinessEntityAddressFields.AddressTypeId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticAddressTypeRelations + { + internal static readonly IEntityRelation BusinessEntityAddressEntityUsingAddressTypeIdStatic = new AddressTypeRelations().BusinessEntityAddressEntityUsingAddressTypeId; + + /// CTor + static StaticAddressTypeRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs new file mode 100644 index 00000000..cca7dd8c --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/BillOfMaterialEntity.cs @@ -0,0 +1,328 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'BillOfMaterial'.

+ [Serializable] + public partial class BillOfMaterialEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + private ProductEntity _product_; + private UnitMeasureEntity _unitMeasure; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static BillOfMaterialEntityStaticMetaData _staticMetaData = new BillOfMaterialEntityStaticMetaData(); + private static BillOfMaterialRelations _relationsFactory = new BillOfMaterialRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + /// Member name Product_ + public static readonly string Product_ = "Product_"; + /// Member name UnitMeasure + public static readonly string UnitMeasure = "UnitMeasure"; + } + + /// Static meta-data storage for navigator related information + protected class BillOfMaterialEntityStaticMetaData : EntityStaticMetaDataBase + { + public BillOfMaterialEntityStaticMetaData() + { + SetEntityCoreInfo("BillOfMaterialEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BillOfMaterialEntity, typeof(BillOfMaterialEntity), typeof(BillOfMaterialEntityFactory), false); + AddNavigatorMetaData("Product", "BillOfMaterials", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBillOfMaterialRelations.ProductEntityUsingComponentIdStatic, ()=>new BillOfMaterialRelations().ProductEntityUsingComponentId, null, new int[] { (int)BillOfMaterialFieldIndex.ComponentId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("Product_", "BillOfMaterials_", (a, b) => a._product_ = b, a => a._product_, (a, b) => a.Product_ = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBillOfMaterialRelations.ProductEntityUsingProductAssemblyIdStatic, ()=>new BillOfMaterialRelations().ProductEntityUsingProductAssemblyId, null, new int[] { (int)BillOfMaterialFieldIndex.ProductAssemblyId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("UnitMeasure", "BillOfMaterials", (a, b) => a._unitMeasure = b, a => a._unitMeasure, (a, b) => a.UnitMeasure = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBillOfMaterialRelations.UnitMeasureEntityUsingUnitMeasureCodeStatic, ()=>new BillOfMaterialRelations().UnitMeasureEntityUsingUnitMeasureCode, null, new int[] { (int)BillOfMaterialFieldIndex.UnitMeasureCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity); + } + } + + /// Static ctor + static BillOfMaterialEntity() + { + } + + /// CTor + public BillOfMaterialEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public BillOfMaterialEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this BillOfMaterialEntity + public BillOfMaterialEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for BillOfMaterial which data should be fetched into this BillOfMaterial object + public BillOfMaterialEntity(System.Int32 billOfMaterialsId) : this(billOfMaterialsId, null) + { + } + + /// CTor + /// PK value for BillOfMaterial which data should be fetched into this BillOfMaterial object + /// The custom validator object for this BillOfMaterialEntity + public BillOfMaterialEntity(System.Int32 billOfMaterialsId, IValidator validator) + { + InitClassEmpty(validator, null); + this.BillOfMaterialsId = billOfMaterialsId; + } + + /// Private CTor for deserialization + /// + /// + protected BillOfMaterialEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct_() { return CreateRelationInfoForNavigator("Product_"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure() { return CreateRelationInfoForNavigator("UnitMeasure"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this BillOfMaterialEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static BillOfMaterialRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct_ { get { return _staticMetaData.GetPrefetchPathElement("Product_", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathUnitMeasure { get { return _staticMetaData.GetPrefetchPathElement("UnitMeasure", CommonEntityBase.CreateEntityCollection()); } } + + /// The BillOfMaterialsId property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."BillOfMaterialsID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 BillOfMaterialsId + { + get { return (System.Int32)GetValue((int)BillOfMaterialFieldIndex.BillOfMaterialsId, true); } + set { SetValue((int)BillOfMaterialFieldIndex.BillOfMaterialsId, value); } } + + /// The Bomlevel property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."BOMLevel".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 Bomlevel + { + get { return (System.Int16)GetValue((int)BillOfMaterialFieldIndex.Bomlevel, true); } + set { SetValue((int)BillOfMaterialFieldIndex.Bomlevel, value); } + } + + /// The ComponentId property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."ComponentID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ComponentId + { + get { return (System.Int32)GetValue((int)BillOfMaterialFieldIndex.ComponentId, true); } + set { SetValue((int)BillOfMaterialFieldIndex.ComponentId, value); } + } + + /// The EndDate property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."EndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable EndDate + { + get { return (Nullable)GetValue((int)BillOfMaterialFieldIndex.EndDate, false); } + set { SetValue((int)BillOfMaterialFieldIndex.EndDate, value); } + } + + /// The ModifiedDate property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)BillOfMaterialFieldIndex.ModifiedDate, true); } + set { SetValue((int)BillOfMaterialFieldIndex.ModifiedDate, value); } + } + + /// The PerAssemblyQty property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."PerAssemblyQty".
Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal PerAssemblyQty + { + get { return (System.Decimal)GetValue((int)BillOfMaterialFieldIndex.PerAssemblyQty, true); } + set { SetValue((int)BillOfMaterialFieldIndex.PerAssemblyQty, value); } + } + + /// The ProductAssemblyId property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."ProductAssemblyID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ProductAssemblyId + { + get { return (Nullable)GetValue((int)BillOfMaterialFieldIndex.ProductAssemblyId, false); } + set { SetValue((int)BillOfMaterialFieldIndex.ProductAssemblyId, value); } + } + + /// The StartDate property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."StartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime StartDate + { + get { return (System.DateTime)GetValue((int)BillOfMaterialFieldIndex.StartDate, true); } + set { SetValue((int)BillOfMaterialFieldIndex.StartDate, value); } + } + + /// The UnitMeasureCode property of the Entity BillOfMaterial

+ /// Mapped on table field: "BillOfMaterials"."UnitMeasureCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String UnitMeasureCode + { + get { return (System.String)GetValue((int)BillOfMaterialFieldIndex.UnitMeasureCode, true); } + set { SetValue((int)BillOfMaterialFieldIndex.UnitMeasureCode, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product_ + { + get { return _product_; } + set { SetSingleRelatedEntityNavigator(value, "Product_"); } + } + + /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual UnitMeasureEntity UnitMeasure + { + get { return _unitMeasure; } + set { SetSingleRelatedEntityNavigator(value, "UnitMeasure"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum BillOfMaterialFieldIndex + { + ///BillOfMaterialsId. + BillOfMaterialsId, + ///Bomlevel. + Bomlevel, + ///ComponentId. + ComponentId, + ///EndDate. + EndDate, + ///ModifiedDate. + ModifiedDate, + ///PerAssemblyQty. + PerAssemblyQty, + ///ProductAssemblyId. + ProductAssemblyId, + ///StartDate. + StartDate, + ///UnitMeasureCode. + UnitMeasureCode, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: BillOfMaterial. + public partial class BillOfMaterialRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between BillOfMaterialEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: BillOfMaterial.ComponentId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingComponentId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, BillOfMaterialFields.ComponentId }); } + } + + /// Returns a new IEntityRelation object, between BillOfMaterialEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: BillOfMaterial.ProductAssemblyId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductAssemblyId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product_", false, new[] { ProductFields.ProductId, BillOfMaterialFields.ProductAssemblyId }); } + } + + /// Returns a new IEntityRelation object, between BillOfMaterialEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: BillOfMaterial.UnitMeasureCode - UnitMeasure.UnitMeasureCode + public virtual IEntityRelation UnitMeasureEntityUsingUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "UnitMeasure", false, new[] { UnitMeasureFields.UnitMeasureCode, BillOfMaterialFields.UnitMeasureCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticBillOfMaterialRelations + { + internal static readonly IEntityRelation ProductEntityUsingComponentIdStatic = new BillOfMaterialRelations().ProductEntityUsingComponentId; + internal static readonly IEntityRelation ProductEntityUsingProductAssemblyIdStatic = new BillOfMaterialRelations().ProductEntityUsingProductAssemblyId; + internal static readonly IEntityRelation UnitMeasureEntityUsingUnitMeasureCodeStatic = new BillOfMaterialRelations().UnitMeasureEntityUsingUnitMeasureCode; + + /// CTor + static StaticBillOfMaterialRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs new file mode 100644 index 00000000..eb8d6137 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityAddressEntity.cs @@ -0,0 +1,295 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'BusinessEntityAddress'.

+ [Serializable] + public partial class BusinessEntityAddressEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private AddressEntity _address; + private AddressTypeEntity _addressType; + private BusinessEntityEntity _businessEntity; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static BusinessEntityAddressEntityStaticMetaData _staticMetaData = new BusinessEntityAddressEntityStaticMetaData(); + private static BusinessEntityAddressRelations _relationsFactory = new BusinessEntityAddressRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Address + public static readonly string Address = "Address"; + /// Member name AddressType + public static readonly string AddressType = "AddressType"; + /// Member name BusinessEntity + public static readonly string BusinessEntity = "BusinessEntity"; + } + + /// Static meta-data storage for navigator related information + protected class BusinessEntityAddressEntityStaticMetaData : EntityStaticMetaDataBase + { + public BusinessEntityAddressEntityStaticMetaData() + { + SetEntityCoreInfo("BusinessEntityAddressEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityAddressEntity, typeof(BusinessEntityAddressEntity), typeof(BusinessEntityAddressEntityFactory), false); + AddNavigatorMetaData("Address", "BusinessEntityAddresses", (a, b) => a._address = b, a => a._address, (a, b) => a.Address = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityAddressRelations.AddressEntityUsingAddressIdStatic, ()=>new BusinessEntityAddressRelations().AddressEntityUsingAddressId, null, new int[] { (int)BusinessEntityAddressFieldIndex.AddressId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity); + AddNavigatorMetaData("AddressType", "BusinessEntityAddresses", (a, b) => a._addressType = b, a => a._addressType, (a, b) => a.AddressType = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityAddressRelations.AddressTypeEntityUsingAddressTypeIdStatic, ()=>new BusinessEntityAddressRelations().AddressTypeEntityUsingAddressTypeId, null, new int[] { (int)BusinessEntityAddressFieldIndex.AddressTypeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.AddressTypeEntity); + AddNavigatorMetaData("BusinessEntity", "BusinessEntityAddresses", (a, b) => a._businessEntity = b, a => a._businessEntity, (a, b) => a.BusinessEntity = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityAddressRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, ()=>new BusinessEntityAddressRelations().BusinessEntityEntityUsingBusinessEntityId, null, new int[] { (int)BusinessEntityAddressFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity); + } + } + + /// Static ctor + static BusinessEntityAddressEntity() + { + } + + /// CTor + public BusinessEntityAddressEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public BusinessEntityAddressEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this BusinessEntityAddressEntity + public BusinessEntityAddressEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object + /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object + /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object + public BusinessEntityAddressEntity(System.Int32 addressId, System.Int32 addressTypeId, System.Int32 businessEntityId) : this(addressId, addressTypeId, businessEntityId, null) + { + } + + /// CTor + /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object + /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object + /// PK value for BusinessEntityAddress which data should be fetched into this BusinessEntityAddress object + /// The custom validator object for this BusinessEntityAddressEntity + public BusinessEntityAddressEntity(System.Int32 addressId, System.Int32 addressTypeId, System.Int32 businessEntityId, IValidator validator) + { + InitClassEmpty(validator, null); + this.AddressId = addressId; + this.AddressTypeId = addressTypeId; + this.BusinessEntityId = businessEntityId; + } + + /// Private CTor for deserialization + /// + /// + protected BusinessEntityAddressEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Address' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoAddress() { return CreateRelationInfoForNavigator("Address"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'AddressType' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoAddressType() { return CreateRelationInfoForNavigator("AddressType"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() { return CreateRelationInfoForNavigator("BusinessEntity"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this BusinessEntityAddressEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static BusinessEntityAddressRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathAddress { get { return _staticMetaData.GetPrefetchPathElement("Address", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'AddressType' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathAddressType { get { return _staticMetaData.GetPrefetchPathElement("AddressType", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntity { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntity", CommonEntityBase.CreateEntityCollection()); } } + + /// The AddressId property of the Entity BusinessEntityAddress

+ /// Mapped on table field: "BusinessEntityAddress"."AddressID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 AddressId + { + get { return (System.Int32)GetValue((int)BusinessEntityAddressFieldIndex.AddressId, true); } + set { SetValue((int)BusinessEntityAddressFieldIndex.AddressId, value); } + } + + /// The AddressTypeId property of the Entity BusinessEntityAddress

+ /// Mapped on table field: "BusinessEntityAddress"."AddressTypeID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 AddressTypeId + { + get { return (System.Int32)GetValue((int)BusinessEntityAddressFieldIndex.AddressTypeId, true); } + set { SetValue((int)BusinessEntityAddressFieldIndex.AddressTypeId, value); } + } + + /// The BusinessEntityId property of the Entity BusinessEntityAddress

+ /// Mapped on table field: "BusinessEntityAddress"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 BusinessEntityId + { + get { return (System.Int32)GetValue((int)BusinessEntityAddressFieldIndex.BusinessEntityId, true); } + set { SetValue((int)BusinessEntityAddressFieldIndex.BusinessEntityId, value); } + } + + /// The ModifiedDate property of the Entity BusinessEntityAddress

+ /// Mapped on table field: "BusinessEntityAddress"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)BusinessEntityAddressFieldIndex.ModifiedDate, true); } + set { SetValue((int)BusinessEntityAddressFieldIndex.ModifiedDate, value); } + } + + /// The Rowguid property of the Entity BusinessEntityAddress

+ /// Mapped on table field: "BusinessEntityAddress"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)BusinessEntityAddressFieldIndex.Rowguid, true); } + set { SetValue((int)BusinessEntityAddressFieldIndex.Rowguid, value); } + } + + /// Gets / sets related entity of type 'AddressEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual AddressEntity Address + { + get { return _address; } + set { SetSingleRelatedEntityNavigator(value, "Address"); } + } + + /// Gets / sets related entity of type 'AddressTypeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual AddressTypeEntity AddressType + { + get { return _addressType; } + set { SetSingleRelatedEntityNavigator(value, "AddressType"); } + } + + /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual BusinessEntityEntity BusinessEntity + { + get { return _businessEntity; } + set { SetSingleRelatedEntityNavigator(value, "BusinessEntity"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum BusinessEntityAddressFieldIndex + { + ///AddressId. + AddressId, + ///AddressTypeId. + AddressTypeId, + ///BusinessEntityId. + BusinessEntityId, + ///ModifiedDate. + ModifiedDate, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: BusinessEntityAddress. + public partial class BusinessEntityAddressRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between BusinessEntityAddressEntity and AddressEntity over the m:1 relation they have, using the relation between the fields: BusinessEntityAddress.AddressId - Address.AddressId + public virtual IEntityRelation AddressEntityUsingAddressId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Address", false, new[] { AddressFields.AddressId, BusinessEntityAddressFields.AddressId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityAddressEntity and AddressTypeEntity over the m:1 relation they have, using the relation between the fields: BusinessEntityAddress.AddressTypeId - AddressType.AddressTypeId + public virtual IEntityRelation AddressTypeEntityUsingAddressTypeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "AddressType", false, new[] { AddressTypeFields.AddressTypeId, BusinessEntityAddressFields.AddressTypeId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityAddressEntity and BusinessEntityEntity over the m:1 relation they have, using the relation between the fields: BusinessEntityAddress.BusinessEntityId - BusinessEntity.BusinessEntityId + public virtual IEntityRelation BusinessEntityEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "BusinessEntity", false, new[] { BusinessEntityFields.BusinessEntityId, BusinessEntityAddressFields.BusinessEntityId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticBusinessEntityAddressRelations + { + internal static readonly IEntityRelation AddressEntityUsingAddressIdStatic = new BusinessEntityAddressRelations().AddressEntityUsingAddressId; + internal static readonly IEntityRelation AddressTypeEntityUsingAddressTypeIdStatic = new BusinessEntityAddressRelations().AddressTypeEntityUsingAddressTypeId; + internal static readonly IEntityRelation BusinessEntityEntityUsingBusinessEntityIdStatic = new BusinessEntityAddressRelations().BusinessEntityEntityUsingBusinessEntityId; + + /// CTor + static StaticBusinessEntityAddressRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs new file mode 100644 index 00000000..6a52f53d --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityContactEntity.cs @@ -0,0 +1,295 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'BusinessEntityContact'.

+ [Serializable] + public partial class BusinessEntityContactEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private BusinessEntityEntity _businessEntity; + private ContactTypeEntity _contactType; + private PersonEntity _person; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static BusinessEntityContactEntityStaticMetaData _staticMetaData = new BusinessEntityContactEntityStaticMetaData(); + private static BusinessEntityContactRelations _relationsFactory = new BusinessEntityContactRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name BusinessEntity + public static readonly string BusinessEntity = "BusinessEntity"; + /// Member name ContactType + public static readonly string ContactType = "ContactType"; + /// Member name Person + public static readonly string Person = "Person"; + } + + /// Static meta-data storage for navigator related information + protected class BusinessEntityContactEntityStaticMetaData : EntityStaticMetaDataBase + { + public BusinessEntityContactEntityStaticMetaData() + { + SetEntityCoreInfo("BusinessEntityContactEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityContactEntity, typeof(BusinessEntityContactEntity), typeof(BusinessEntityContactEntityFactory), false); + AddNavigatorMetaData("BusinessEntity", "BusinessEntityContacts", (a, b) => a._businessEntity = b, a => a._businessEntity, (a, b) => a.BusinessEntity = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityContactRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, ()=>new BusinessEntityContactRelations().BusinessEntityEntityUsingBusinessEntityId, null, new int[] { (int)BusinessEntityContactFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity); + AddNavigatorMetaData("ContactType", "BusinessEntityContacts", (a, b) => a._contactType = b, a => a._contactType, (a, b) => a.ContactType = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityContactRelations.ContactTypeEntityUsingContactTypeIdStatic, ()=>new BusinessEntityContactRelations().ContactTypeEntityUsingContactTypeId, null, new int[] { (int)BusinessEntityContactFieldIndex.ContactTypeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ContactTypeEntity); + AddNavigatorMetaData("Person", "BusinessEntityContacts", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityContactRelations.PersonEntityUsingPersonIdStatic, ()=>new BusinessEntityContactRelations().PersonEntityUsingPersonId, null, new int[] { (int)BusinessEntityContactFieldIndex.PersonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + } + } + + /// Static ctor + static BusinessEntityContactEntity() + { + } + + /// CTor + public BusinessEntityContactEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public BusinessEntityContactEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this BusinessEntityContactEntity + public BusinessEntityContactEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object + /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object + /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object + public BusinessEntityContactEntity(System.Int32 businessEntityId, System.Int32 contactTypeId, System.Int32 personId) : this(businessEntityId, contactTypeId, personId, null) + { + } + + /// CTor + /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object + /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object + /// PK value for BusinessEntityContact which data should be fetched into this BusinessEntityContact object + /// The custom validator object for this BusinessEntityContactEntity + public BusinessEntityContactEntity(System.Int32 businessEntityId, System.Int32 contactTypeId, System.Int32 personId, IValidator validator) + { + InitClassEmpty(validator, null); + this.BusinessEntityId = businessEntityId; + this.ContactTypeId = contactTypeId; + this.PersonId = personId; + } + + /// Private CTor for deserialization + /// + /// + protected BusinessEntityContactEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() { return CreateRelationInfoForNavigator("BusinessEntity"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ContactType' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoContactType() { return CreateRelationInfoForNavigator("ContactType"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this BusinessEntityContactEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static BusinessEntityContactRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntity { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntity", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ContactType' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathContactType { get { return _staticMetaData.GetPrefetchPathElement("ContactType", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// The BusinessEntityId property of the Entity BusinessEntityContact

+ /// Mapped on table field: "BusinessEntityContact"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 BusinessEntityId + { + get { return (System.Int32)GetValue((int)BusinessEntityContactFieldIndex.BusinessEntityId, true); } + set { SetValue((int)BusinessEntityContactFieldIndex.BusinessEntityId, value); } + } + + /// The ContactTypeId property of the Entity BusinessEntityContact

+ /// Mapped on table field: "BusinessEntityContact"."ContactTypeID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ContactTypeId + { + get { return (System.Int32)GetValue((int)BusinessEntityContactFieldIndex.ContactTypeId, true); } + set { SetValue((int)BusinessEntityContactFieldIndex.ContactTypeId, value); } + } + + /// The ModifiedDate property of the Entity BusinessEntityContact

+ /// Mapped on table field: "BusinessEntityContact"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)BusinessEntityContactFieldIndex.ModifiedDate, true); } + set { SetValue((int)BusinessEntityContactFieldIndex.ModifiedDate, value); } + } + + /// The PersonId property of the Entity BusinessEntityContact

+ /// Mapped on table field: "BusinessEntityContact"."PersonID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 PersonId + { + get { return (System.Int32)GetValue((int)BusinessEntityContactFieldIndex.PersonId, true); } + set { SetValue((int)BusinessEntityContactFieldIndex.PersonId, value); } + } + + /// The Rowguid property of the Entity BusinessEntityContact

+ /// Mapped on table field: "BusinessEntityContact"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)BusinessEntityContactFieldIndex.Rowguid, true); } + set { SetValue((int)BusinessEntityContactFieldIndex.Rowguid, value); } + } + + /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual BusinessEntityEntity BusinessEntity + { + get { return _businessEntity; } + set { SetSingleRelatedEntityNavigator(value, "BusinessEntity"); } + } + + /// Gets / sets related entity of type 'ContactTypeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ContactTypeEntity ContactType + { + get { return _contactType; } + set { SetSingleRelatedEntityNavigator(value, "ContactType"); } + } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum BusinessEntityContactFieldIndex + { + ///BusinessEntityId. + BusinessEntityId, + ///ContactTypeId. + ContactTypeId, + ///ModifiedDate. + ModifiedDate, + ///PersonId. + PersonId, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: BusinessEntityContact. + public partial class BusinessEntityContactRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between BusinessEntityContactEntity and BusinessEntityEntity over the m:1 relation they have, using the relation between the fields: BusinessEntityContact.BusinessEntityId - BusinessEntity.BusinessEntityId + public virtual IEntityRelation BusinessEntityEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "BusinessEntity", false, new[] { BusinessEntityFields.BusinessEntityId, BusinessEntityContactFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityContactEntity and ContactTypeEntity over the m:1 relation they have, using the relation between the fields: BusinessEntityContact.ContactTypeId - ContactType.ContactTypeId + public virtual IEntityRelation ContactTypeEntityUsingContactTypeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ContactType", false, new[] { ContactTypeFields.ContactTypeId, BusinessEntityContactFields.ContactTypeId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityContactEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: BusinessEntityContact.PersonId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Person", false, new[] { PersonFields.BusinessEntityId, BusinessEntityContactFields.PersonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticBusinessEntityContactRelations + { + internal static readonly IEntityRelation BusinessEntityEntityUsingBusinessEntityIdStatic = new BusinessEntityContactRelations().BusinessEntityEntityUsingBusinessEntityId; + internal static readonly IEntityRelation ContactTypeEntityUsingContactTypeIdStatic = new BusinessEntityContactRelations().ContactTypeEntityUsingContactTypeId; + internal static readonly IEntityRelation PersonEntityUsingPersonIdStatic = new BusinessEntityContactRelations().PersonEntityUsingPersonId; + + /// CTor + static StaticBusinessEntityContactRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs new file mode 100644 index 00000000..45cc28e6 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/BusinessEntityEntity.cs @@ -0,0 +1,313 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'BusinessEntity'.

+ [Serializable] + public partial class BusinessEntityEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _businessEntityAddresses; + private EntityCollection _businessEntityContacts; + private PersonEntity _person; + private StoreEntity _store; + private VendorEntity _vendor; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static BusinessEntityEntityStaticMetaData _staticMetaData = new BusinessEntityEntityStaticMetaData(); + private static BusinessEntityRelations _relationsFactory = new BusinessEntityRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name BusinessEntityAddresses + public static readonly string BusinessEntityAddresses = "BusinessEntityAddresses"; + /// Member name BusinessEntityContacts + public static readonly string BusinessEntityContacts = "BusinessEntityContacts"; + /// Member name Person + public static readonly string Person = "Person"; + /// Member name Store + public static readonly string Store = "Store"; + /// Member name Vendor + public static readonly string Vendor = "Vendor"; + } + + /// Static meta-data storage for navigator related information + protected class BusinessEntityEntityStaticMetaData : EntityStaticMetaDataBase + { + public BusinessEntityEntityStaticMetaData() + { + SetEntityCoreInfo("BusinessEntityEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity, typeof(BusinessEntityEntity), typeof(BusinessEntityEntityFactory), false); + AddNavigatorMetaData>("BusinessEntityAddresses", a => a._businessEntityAddresses, (a, b) => a._businessEntityAddresses = b, a => a.BusinessEntityAddresses, () => new BusinessEntityRelations().BusinessEntityAddressEntityUsingBusinessEntityId, typeof(BusinessEntityAddressEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityAddressEntity); + AddNavigatorMetaData>("BusinessEntityContacts", a => a._businessEntityContacts, (a, b) => a._businessEntityContacts = b, a => a.BusinessEntityContacts, () => new BusinessEntityRelations().BusinessEntityContactEntityUsingBusinessEntityId, typeof(BusinessEntityContactEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityContactEntity); + AddNavigatorMetaData("Person", "BusinessEntity", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityRelations.PersonEntityUsingBusinessEntityIdStatic, ()=>new BusinessEntityRelations().PersonEntityUsingBusinessEntityId, null, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + AddNavigatorMetaData("Store", "BusinessEntity", (a, b) => a._store = b, a => a._store, (a, b) => a.Store = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityRelations.StoreEntityUsingCustomerIdStatic, ()=>new BusinessEntityRelations().StoreEntityUsingCustomerId, null, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.StoreEntity); + AddNavigatorMetaData("Vendor", "BusinessEntity", (a, b) => a._vendor = b, a => a._vendor, (a, b) => a.Vendor = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticBusinessEntityRelations.VendorEntityUsingVendorIdStatic, ()=>new BusinessEntityRelations().VendorEntityUsingVendorId, null, new int[] { (int)BusinessEntityFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.VendorEntity); + } + } + + /// Static ctor + static BusinessEntityEntity() + { + } + + /// CTor + public BusinessEntityEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public BusinessEntityEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this BusinessEntityEntity + public BusinessEntityEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for BusinessEntity which data should be fetched into this BusinessEntity object + public BusinessEntityEntity(System.Int32 businessEntityId) : this(businessEntityId, null) + { + } + + /// CTor + /// PK value for BusinessEntity which data should be fetched into this BusinessEntity object + /// The custom validator object for this BusinessEntityEntity + public BusinessEntityEntity(System.Int32 businessEntityId, IValidator validator) + { + InitClassEmpty(validator, null); + this.BusinessEntityId = businessEntityId; + } + + /// Private CTor for deserialization + /// + /// + protected BusinessEntityEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityAddress' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityAddresses() { return CreateRelationInfoForNavigator("BusinessEntityAddresses"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityContact' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityContacts() { return CreateRelationInfoForNavigator("BusinessEntityContacts"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Store' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoStore() { return CreateRelationInfoForNavigator("Store"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Vendor' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoVendor() { return CreateRelationInfoForNavigator("Vendor"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this BusinessEntityEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static BusinessEntityRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityAddress' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntityAddresses { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntityAddresses", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityContact' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntityContacts { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntityContacts", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Store' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathStore { get { return _staticMetaData.GetPrefetchPathElement("Store", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Vendor' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathVendor { get { return _staticMetaData.GetPrefetchPathElement("Vendor", CommonEntityBase.CreateEntityCollection()); } } + + /// The BusinessEntityId property of the Entity BusinessEntity

+ /// Mapped on table field: "BusinessEntity"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 BusinessEntityId + { + get { return (System.Int32)GetValue((int)BusinessEntityFieldIndex.BusinessEntityId, true); } + set { SetValue((int)BusinessEntityFieldIndex.BusinessEntityId, value); } } + + /// The ModifiedDate property of the Entity BusinessEntity

+ /// Mapped on table field: "BusinessEntity"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)BusinessEntityFieldIndex.ModifiedDate, true); } + set { SetValue((int)BusinessEntityFieldIndex.ModifiedDate, value); } + } + + /// The Rowguid property of the Entity BusinessEntity

+ /// Mapped on table field: "BusinessEntity"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)BusinessEntityFieldIndex.Rowguid, true); } + set { SetValue((int)BusinessEntityFieldIndex.Rowguid, value); } + } + + /// Gets the EntityCollection with the related entities of type 'BusinessEntityAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BusinessEntityAddressEntity))] + public virtual EntityCollection BusinessEntityAddresses { get { return GetOrCreateEntityCollection("BusinessEntity", true, false, ref _businessEntityAddresses); } } + + /// Gets the EntityCollection with the related entities of type 'BusinessEntityContactEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BusinessEntityContactEntity))] + public virtual EntityCollection BusinessEntityContacts { get { return GetOrCreateEntityCollection("BusinessEntity", true, false, ref _businessEntityContacts); } } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + /// Gets / sets related entity of type 'StoreEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual StoreEntity Store + { + get { return _store; } + set { SetSingleRelatedEntityNavigator(value, "Store"); } + } + + /// Gets / sets related entity of type 'VendorEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual VendorEntity Vendor + { + get { return _vendor; } + set { SetSingleRelatedEntityNavigator(value, "Vendor"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum BusinessEntityFieldIndex + { + ///BusinessEntityId. + BusinessEntityId, + ///ModifiedDate. + ModifiedDate, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: BusinessEntity. + public partial class BusinessEntityRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between BusinessEntityEntity and BusinessEntityAddressEntity over the 1:n relation they have, using the relation between the fields: BusinessEntity.BusinessEntityId - BusinessEntityAddress.BusinessEntityId + public virtual IEntityRelation BusinessEntityAddressEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BusinessEntityAddresses", true, new[] { BusinessEntityFields.BusinessEntityId, BusinessEntityAddressFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityEntity and BusinessEntityContactEntity over the 1:n relation they have, using the relation between the fields: BusinessEntity.BusinessEntityId - BusinessEntityContact.BusinessEntityId + public virtual IEntityRelation BusinessEntityContactEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BusinessEntityContacts", true, new[] { BusinessEntityFields.BusinessEntityId, BusinessEntityContactFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityEntity and PersonEntity over the 1:1 relation they have, using the relation between the fields: BusinessEntity.BusinessEntityId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Person", true, new[] { BusinessEntityFields.BusinessEntityId, PersonFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityEntity and StoreEntity over the 1:1 relation they have, using the relation between the fields: BusinessEntity.BusinessEntityId - Store.CustomerId + public virtual IEntityRelation StoreEntityUsingCustomerId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Store", true, new[] { BusinessEntityFields.BusinessEntityId, StoreFields.CustomerId }); } + } + + /// Returns a new IEntityRelation object, between BusinessEntityEntity and VendorEntity over the 1:1 relation they have, using the relation between the fields: BusinessEntity.BusinessEntityId - Vendor.VendorId + public virtual IEntityRelation VendorEntityUsingVendorId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Vendor", true, new[] { BusinessEntityFields.BusinessEntityId, VendorFields.VendorId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticBusinessEntityRelations + { + internal static readonly IEntityRelation BusinessEntityAddressEntityUsingBusinessEntityIdStatic = new BusinessEntityRelations().BusinessEntityAddressEntityUsingBusinessEntityId; + internal static readonly IEntityRelation BusinessEntityContactEntityUsingBusinessEntityIdStatic = new BusinessEntityRelations().BusinessEntityContactEntityUsingBusinessEntityId; + internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new BusinessEntityRelations().PersonEntityUsingBusinessEntityId; + internal static readonly IEntityRelation StoreEntityUsingCustomerIdStatic = new BusinessEntityRelations().StoreEntityUsingCustomerId; + internal static readonly IEntityRelation VendorEntityUsingVendorIdStatic = new BusinessEntityRelations().VendorEntityUsingVendorId; + + /// CTor + static StaticBusinessEntityRelations() { } + } +} diff --git a/LLBLGen53/DatabaseGeneric/EntityClasses/CommonEntityBase.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CommonEntityBase.cs similarity index 72% rename from LLBLGen53/DatabaseGeneric/EntityClasses/CommonEntityBase.cs rename to LLBLGen54/DatabaseGeneric/EntityClasses/CommonEntityBase.cs index 870a4c0f..6352a987 100644 --- a/LLBLGen53/DatabaseGeneric/EntityClasses/CommonEntityBase.cs +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CommonEntityBase.cs @@ -1,23 +1,17 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. -// Templates version: ////////////////////////////////////////////////////////////// using System; -using System.Collections.Generic; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.RelationClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; using SD.LLBLGen.Pro.ORMSupportClasses; -#if !CF using System.Runtime.Serialization; -#endif -namespace AdventureWorks.Dal.Adapter.v53.EntityClasses + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses { // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces // __LLBLGENPRO_USER_CODE_REGION_END @@ -28,20 +22,11 @@ public abstract partial class CommonEntityBase : EntityBase2 // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces // __LLBLGENPRO_USER_CODE_REGION_END { - #region Class Member Declarations + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - /// CTor - protected CommonEntityBase() - { - } - - /// CTor - protected CommonEntityBase(string name):base(name) - { - } + protected CommonEntityBase() {} /// Protected CTor for deserialization /// @@ -51,20 +36,6 @@ protected CommonEntityBase(SerializationInfo info, StreamingContext context) : b // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END } - - /// Gets the inheritance info provider instance of the project this entity instance is located in. - /// ready to use inheritance info provider instance. - protected override IInheritanceInfoProvider GetInheritanceInfoProvider() - { - return InheritanceInfoProviderSingleton.GetInstance(); - } - - /// Creates the ITypeDefaultValue instance used to provide default values for value types which aren't of type nullable(of T) - /// - protected override ITypeDefaultValue CreateTypeDefaultValueProvider() - { - return new TypeDefaultValue(); - } /// Creates the entity collection and stores it in destination if destination is null /// type of the element to store in the collection @@ -75,7 +46,7 @@ protected override ITypeDefaultValue CreateTypeDefaultValueProvider() /// The destination member variable. /// the collection referred to by destination if destination isn't null, otherwise the newly created collection (which is then stored in destination protected EntityCollection GetOrCreateEntityCollection(string navigatorName, bool setContainingEntityInfo, bool forMN, ref EntityCollection destination) - where T:EntityBase2 , IEntity2 + where T:EntityBase2, IEntity2 { if(destination==null) { @@ -95,15 +66,32 @@ protected override ITypeDefaultValue CreateTypeDefaultValueProvider() } return destination; } - - #region Custom Entity code + /// + protected override IInheritanceInfoProvider GetInheritanceInfoProvider() { return ModelInfoProviderSingleton.GetInstance(); } + + /// + protected override ITypeDefaultValue CreateTypeDefaultValueProvider() { return new TypeDefaultValue(); } + + /// + protected override IEntityCollection2 CreateEntityCollectionForType() { return CommonEntityBase.CreateEntityCollection(); } + + /// Creates the entity collection for the types specified + /// type of the element to store in the collection + protected static EntityCollection CreateEntityCollection() + where T:EntityBase2, IEntity2 + { + return new EntityCollection(EntityFactoryFactory.GetFactory(typeof(T))); + } + + /// + protected override Type LLBLGenProEntityTypeEnumType + { + get { return typeof(AdventureWorks.Dal.Adapter.v54.EntityType); } + } + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included code - #endregion } } diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs new file mode 100644 index 00000000..293a3fb0 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ContactCreditCardEntity.cs @@ -0,0 +1,245 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ContactCreditCard'.

+ [Serializable] + public partial class ContactCreditCardEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private CreditCardEntity _creditCard; + private PersonEntity _person; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ContactCreditCardEntityStaticMetaData _staticMetaData = new ContactCreditCardEntityStaticMetaData(); + private static ContactCreditCardRelations _relationsFactory = new ContactCreditCardRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name CreditCard + public static readonly string CreditCard = "CreditCard"; + /// Member name Person + public static readonly string Person = "Person"; + } + + /// Static meta-data storage for navigator related information + protected class ContactCreditCardEntityStaticMetaData : EntityStaticMetaDataBase + { + public ContactCreditCardEntityStaticMetaData() + { + SetEntityCoreInfo("ContactCreditCardEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ContactCreditCardEntity, typeof(ContactCreditCardEntity), typeof(ContactCreditCardEntityFactory), false); + AddNavigatorMetaData("CreditCard", "ContactCreditCards", (a, b) => a._creditCard = b, a => a._creditCard, (a, b) => a.CreditCard = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticContactCreditCardRelations.CreditCardEntityUsingCreditCardIdStatic, ()=>new ContactCreditCardRelations().CreditCardEntityUsingCreditCardId, null, new int[] { (int)ContactCreditCardFieldIndex.CreditCardId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CreditCardEntity); + AddNavigatorMetaData("Person", "ContactCreditCards", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticContactCreditCardRelations.PersonEntityUsingContactIdStatic, ()=>new ContactCreditCardRelations().PersonEntityUsingContactId, null, new int[] { (int)ContactCreditCardFieldIndex.ContactId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + } + } + + /// Static ctor + static ContactCreditCardEntity() + { + } + + /// CTor + public ContactCreditCardEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ContactCreditCardEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ContactCreditCardEntity + public ContactCreditCardEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object + /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object + public ContactCreditCardEntity(System.Int32 contactId, System.Int32 creditCardId) : this(contactId, creditCardId, null) + { + } + + /// CTor + /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object + /// PK value for ContactCreditCard which data should be fetched into this ContactCreditCard object + /// The custom validator object for this ContactCreditCardEntity + public ContactCreditCardEntity(System.Int32 contactId, System.Int32 creditCardId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ContactId = contactId; + this.CreditCardId = creditCardId; + } + + /// Private CTor for deserialization + /// + /// + protected ContactCreditCardEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CreditCard' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCreditCard() { return CreateRelationInfoForNavigator("CreditCard"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ContactCreditCardEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ContactCreditCardRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CreditCard' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCreditCard { get { return _staticMetaData.GetPrefetchPathElement("CreditCard", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// The ContactId property of the Entity ContactCreditCard

+ /// Mapped on table field: "PersonCreditCard"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ContactId + { + get { return (System.Int32)GetValue((int)ContactCreditCardFieldIndex.ContactId, true); } + set { SetValue((int)ContactCreditCardFieldIndex.ContactId, value); } + } + + /// The CreditCardId property of the Entity ContactCreditCard

+ /// Mapped on table field: "PersonCreditCard"."CreditCardID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 CreditCardId + { + get { return (System.Int32)GetValue((int)ContactCreditCardFieldIndex.CreditCardId, true); } + set { SetValue((int)ContactCreditCardFieldIndex.CreditCardId, value); } + } + + /// The ModifiedDate property of the Entity ContactCreditCard

+ /// Mapped on table field: "PersonCreditCard"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ContactCreditCardFieldIndex.ModifiedDate, true); } + set { SetValue((int)ContactCreditCardFieldIndex.ModifiedDate, value); } + } + + /// Gets / sets related entity of type 'CreditCardEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CreditCardEntity CreditCard + { + get { return _creditCard; } + set { SetSingleRelatedEntityNavigator(value, "CreditCard"); } + } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ContactCreditCardFieldIndex + { + ///ContactId. + ContactId, + ///CreditCardId. + CreditCardId, + ///ModifiedDate. + ModifiedDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ContactCreditCard. + public partial class ContactCreditCardRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ContactCreditCardEntity and CreditCardEntity over the m:1 relation they have, using the relation between the fields: ContactCreditCard.CreditCardId - CreditCard.CreditCardId + public virtual IEntityRelation CreditCardEntityUsingCreditCardId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "CreditCard", false, new[] { CreditCardFields.CreditCardId, ContactCreditCardFields.CreditCardId }); } + } + + /// Returns a new IEntityRelation object, between ContactCreditCardEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: ContactCreditCard.ContactId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingContactId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Person", false, new[] { PersonFields.BusinessEntityId, ContactCreditCardFields.ContactId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticContactCreditCardRelations + { + internal static readonly IEntityRelation CreditCardEntityUsingCreditCardIdStatic = new ContactCreditCardRelations().CreditCardEntityUsingCreditCardId; + internal static readonly IEntityRelation PersonEntityUsingContactIdStatic = new ContactCreditCardRelations().PersonEntityUsingContactId; + + /// CTor + static StaticContactCreditCardRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs new file mode 100644 index 00000000..ea3749f3 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ContactTypeEntity.cs @@ -0,0 +1,209 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ContactType'.

+ [Serializable] + public partial class ContactTypeEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _businessEntityContacts; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ContactTypeEntityStaticMetaData _staticMetaData = new ContactTypeEntityStaticMetaData(); + private static ContactTypeRelations _relationsFactory = new ContactTypeRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name BusinessEntityContacts + public static readonly string BusinessEntityContacts = "BusinessEntityContacts"; + } + + /// Static meta-data storage for navigator related information + protected class ContactTypeEntityStaticMetaData : EntityStaticMetaDataBase + { + public ContactTypeEntityStaticMetaData() + { + SetEntityCoreInfo("ContactTypeEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ContactTypeEntity, typeof(ContactTypeEntity), typeof(ContactTypeEntityFactory), false); + AddNavigatorMetaData>("BusinessEntityContacts", a => a._businessEntityContacts, (a, b) => a._businessEntityContacts = b, a => a.BusinessEntityContacts, () => new ContactTypeRelations().BusinessEntityContactEntityUsingContactTypeId, typeof(BusinessEntityContactEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityContactEntity); + } + } + + /// Static ctor + static ContactTypeEntity() + { + } + + /// CTor + public ContactTypeEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ContactTypeEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ContactTypeEntity + public ContactTypeEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ContactType which data should be fetched into this ContactType object + public ContactTypeEntity(System.Int32 contactTypeId) : this(contactTypeId, null) + { + } + + /// CTor + /// PK value for ContactType which data should be fetched into this ContactType object + /// The custom validator object for this ContactTypeEntity + public ContactTypeEntity(System.Int32 contactTypeId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ContactTypeId = contactTypeId; + } + + /// Private CTor for deserialization + /// + /// + protected ContactTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityContact' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityContacts() { return CreateRelationInfoForNavigator("BusinessEntityContacts"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ContactTypeEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ContactTypeRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityContact' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntityContacts { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntityContacts", CommonEntityBase.CreateEntityCollection()); } } + + /// The ContactTypeId property of the Entity ContactType

+ /// Mapped on table field: "ContactType"."ContactTypeID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ContactTypeId + { + get { return (System.Int32)GetValue((int)ContactTypeFieldIndex.ContactTypeId, true); } + set { SetValue((int)ContactTypeFieldIndex.ContactTypeId, value); } } + + /// The ModifiedDate property of the Entity ContactType

+ /// Mapped on table field: "ContactType"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ContactTypeFieldIndex.ModifiedDate, true); } + set { SetValue((int)ContactTypeFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity ContactType

+ /// Mapped on table field: "ContactType"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ContactTypeFieldIndex.Name, true); } + set { SetValue((int)ContactTypeFieldIndex.Name, value); } + } + + /// Gets the EntityCollection with the related entities of type 'BusinessEntityContactEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BusinessEntityContactEntity))] + public virtual EntityCollection BusinessEntityContacts { get { return GetOrCreateEntityCollection("ContactType", true, false, ref _businessEntityContacts); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ContactTypeFieldIndex + { + ///ContactTypeId. + ContactTypeId, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ContactType. + public partial class ContactTypeRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ContactTypeEntity and BusinessEntityContactEntity over the 1:n relation they have, using the relation between the fields: ContactType.ContactTypeId - BusinessEntityContact.ContactTypeId + public virtual IEntityRelation BusinessEntityContactEntityUsingContactTypeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BusinessEntityContacts", true, new[] { ContactTypeFields.ContactTypeId, BusinessEntityContactFields.ContactTypeId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticContactTypeRelations + { + internal static readonly IEntityRelation BusinessEntityContactEntityUsingContactTypeIdStatic = new ContactTypeRelations().BusinessEntityContactEntityUsingContactTypeId; + + /// CTor + static StaticContactTypeRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs new file mode 100644 index 00000000..299eced4 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionCurrencyEntity.cs @@ -0,0 +1,245 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'CountryRegionCurrency'.

+ [Serializable] + public partial class CountryRegionCurrencyEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private CountryRegionEntity _countryRegion; + private CurrencyEntity _currency; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static CountryRegionCurrencyEntityStaticMetaData _staticMetaData = new CountryRegionCurrencyEntityStaticMetaData(); + private static CountryRegionCurrencyRelations _relationsFactory = new CountryRegionCurrencyRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name CountryRegion + public static readonly string CountryRegion = "CountryRegion"; + /// Member name Currency + public static readonly string Currency = "Currency"; + } + + /// Static meta-data storage for navigator related information + protected class CountryRegionCurrencyEntityStaticMetaData : EntityStaticMetaDataBase + { + public CountryRegionCurrencyEntityStaticMetaData() + { + SetEntityCoreInfo("CountryRegionCurrencyEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionCurrencyEntity, typeof(CountryRegionCurrencyEntity), typeof(CountryRegionCurrencyEntityFactory), false); + AddNavigatorMetaData("CountryRegion", "CountryRegionCurrencies", (a, b) => a._countryRegion = b, a => a._countryRegion, (a, b) => a.CountryRegion = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticCountryRegionCurrencyRelations.CountryRegionEntityUsingCountryRegionCodeStatic, ()=>new CountryRegionCurrencyRelations().CountryRegionEntityUsingCountryRegionCode, null, new int[] { (int)CountryRegionCurrencyFieldIndex.CountryRegionCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionEntity); + AddNavigatorMetaData("Currency", "CountryRegionCurrencies", (a, b) => a._currency = b, a => a._currency, (a, b) => a.Currency = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticCountryRegionCurrencyRelations.CurrencyEntityUsingCurrencyCodeStatic, ()=>new CountryRegionCurrencyRelations().CurrencyEntityUsingCurrencyCode, null, new int[] { (int)CountryRegionCurrencyFieldIndex.CurrencyCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyEntity); + } + } + + /// Static ctor + static CountryRegionCurrencyEntity() + { + } + + /// CTor + public CountryRegionCurrencyEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public CountryRegionCurrencyEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this CountryRegionCurrencyEntity + public CountryRegionCurrencyEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object + /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object + public CountryRegionCurrencyEntity(System.String countryRegionCode, System.String currencyCode) : this(countryRegionCode, currencyCode, null) + { + } + + /// CTor + /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object + /// PK value for CountryRegionCurrency which data should be fetched into this CountryRegionCurrency object + /// The custom validator object for this CountryRegionCurrencyEntity + public CountryRegionCurrencyEntity(System.String countryRegionCode, System.String currencyCode, IValidator validator) + { + InitClassEmpty(validator, null); + this.CountryRegionCode = countryRegionCode; + this.CurrencyCode = currencyCode; + } + + /// Private CTor for deserialization + /// + /// + protected CountryRegionCurrencyEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CountryRegion' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCountryRegion() { return CreateRelationInfoForNavigator("CountryRegion"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Currency' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCurrency() { return CreateRelationInfoForNavigator("Currency"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this CountryRegionCurrencyEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static CountryRegionCurrencyRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegion' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCountryRegion { get { return _staticMetaData.GetPrefetchPathElement("CountryRegion", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Currency' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCurrency { get { return _staticMetaData.GetPrefetchPathElement("Currency", CommonEntityBase.CreateEntityCollection()); } } + + /// The CountryRegionCode property of the Entity CountryRegionCurrency

+ /// Mapped on table field: "CountryRegionCurrency"."CountryRegionCode".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String CountryRegionCode + { + get { return (System.String)GetValue((int)CountryRegionCurrencyFieldIndex.CountryRegionCode, true); } + set { SetValue((int)CountryRegionCurrencyFieldIndex.CountryRegionCode, value); } + } + + /// The CurrencyCode property of the Entity CountryRegionCurrency

+ /// Mapped on table field: "CountryRegionCurrency"."CurrencyCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String CurrencyCode + { + get { return (System.String)GetValue((int)CountryRegionCurrencyFieldIndex.CurrencyCode, true); } + set { SetValue((int)CountryRegionCurrencyFieldIndex.CurrencyCode, value); } + } + + /// The ModifiedDate property of the Entity CountryRegionCurrency

+ /// Mapped on table field: "CountryRegionCurrency"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)CountryRegionCurrencyFieldIndex.ModifiedDate, true); } + set { SetValue((int)CountryRegionCurrencyFieldIndex.ModifiedDate, value); } + } + + /// Gets / sets related entity of type 'CountryRegionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CountryRegionEntity CountryRegion + { + get { return _countryRegion; } + set { SetSingleRelatedEntityNavigator(value, "CountryRegion"); } + } + + /// Gets / sets related entity of type 'CurrencyEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CurrencyEntity Currency + { + get { return _currency; } + set { SetSingleRelatedEntityNavigator(value, "Currency"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum CountryRegionCurrencyFieldIndex + { + ///CountryRegionCode. + CountryRegionCode, + ///CurrencyCode. + CurrencyCode, + ///ModifiedDate. + ModifiedDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: CountryRegionCurrency. + public partial class CountryRegionCurrencyRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between CountryRegionCurrencyEntity and CountryRegionEntity over the m:1 relation they have, using the relation between the fields: CountryRegionCurrency.CountryRegionCode - CountryRegion.CountryRegionCode + public virtual IEntityRelation CountryRegionEntityUsingCountryRegionCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "CountryRegion", false, new[] { CountryRegionFields.CountryRegionCode, CountryRegionCurrencyFields.CountryRegionCode }); } + } + + /// Returns a new IEntityRelation object, between CountryRegionCurrencyEntity and CurrencyEntity over the m:1 relation they have, using the relation between the fields: CountryRegionCurrency.CurrencyCode - Currency.CurrencyCode + public virtual IEntityRelation CurrencyEntityUsingCurrencyCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Currency", false, new[] { CurrencyFields.CurrencyCode, CountryRegionCurrencyFields.CurrencyCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticCountryRegionCurrencyRelations + { + internal static readonly IEntityRelation CountryRegionEntityUsingCountryRegionCodeStatic = new CountryRegionCurrencyRelations().CountryRegionEntityUsingCountryRegionCode; + internal static readonly IEntityRelation CurrencyEntityUsingCurrencyCodeStatic = new CountryRegionCurrencyRelations().CurrencyEntityUsingCurrencyCode; + + /// CTor + static StaticCountryRegionCurrencyRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs new file mode 100644 index 00000000..8d36ba8a --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CountryRegionEntity.cs @@ -0,0 +1,256 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'CountryRegion'.

+ [Serializable] + public partial class CountryRegionEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _countryRegionCurrencies; + private EntityCollection _salesTerritories; + private EntityCollection _stateProvinces; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static CountryRegionEntityStaticMetaData _staticMetaData = new CountryRegionEntityStaticMetaData(); + private static CountryRegionRelations _relationsFactory = new CountryRegionRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name CountryRegionCurrencies + public static readonly string CountryRegionCurrencies = "CountryRegionCurrencies"; + /// Member name SalesTerritories + public static readonly string SalesTerritories = "SalesTerritories"; + /// Member name StateProvinces + public static readonly string StateProvinces = "StateProvinces"; + } + + /// Static meta-data storage for navigator related information + protected class CountryRegionEntityStaticMetaData : EntityStaticMetaDataBase + { + public CountryRegionEntityStaticMetaData() + { + SetEntityCoreInfo("CountryRegionEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionEntity, typeof(CountryRegionEntity), typeof(CountryRegionEntityFactory), false); + AddNavigatorMetaData>("CountryRegionCurrencies", a => a._countryRegionCurrencies, (a, b) => a._countryRegionCurrencies = b, a => a.CountryRegionCurrencies, () => new CountryRegionRelations().CountryRegionCurrencyEntityUsingCountryRegionCode, typeof(CountryRegionCurrencyEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionCurrencyEntity); + AddNavigatorMetaData>("SalesTerritories", a => a._salesTerritories, (a, b) => a._salesTerritories = b, a => a.SalesTerritories, () => new CountryRegionRelations().SalesTerritoryEntityUsingCountryRegionCode, typeof(SalesTerritoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity); + AddNavigatorMetaData>("StateProvinces", a => a._stateProvinces, (a, b) => a._stateProvinces = b, a => a.StateProvinces, () => new CountryRegionRelations().StateProvinceEntityUsingCountryRegionCode, typeof(StateProvinceEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity); + } + } + + /// Static ctor + static CountryRegionEntity() + { + } + + /// CTor + public CountryRegionEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public CountryRegionEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this CountryRegionEntity + public CountryRegionEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for CountryRegion which data should be fetched into this CountryRegion object + public CountryRegionEntity(System.String countryRegionCode) : this(countryRegionCode, null) + { + } + + /// CTor + /// PK value for CountryRegion which data should be fetched into this CountryRegion object + /// The custom validator object for this CountryRegionEntity + public CountryRegionEntity(System.String countryRegionCode, IValidator validator) + { + InitClassEmpty(validator, null); + this.CountryRegionCode = countryRegionCode; + } + + /// Private CTor for deserialization + /// + /// + protected CountryRegionEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CountryRegionCurrency' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCountryRegionCurrencies() { return CreateRelationInfoForNavigator("CountryRegionCurrencies"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTerritory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritories() { return CreateRelationInfoForNavigator("SalesTerritories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'StateProvince' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoStateProvinces() { return CreateRelationInfoForNavigator("StateProvinces"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this CountryRegionEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static CountryRegionRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegionCurrency' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCountryRegionCurrencies { get { return _staticMetaData.GetPrefetchPathElement("CountryRegionCurrencies", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritories { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathStateProvinces { get { return _staticMetaData.GetPrefetchPathElement("StateProvinces", CommonEntityBase.CreateEntityCollection()); } } + + /// The CountryRegionCode property of the Entity CountryRegion

+ /// Mapped on table field: "CountryRegion"."CountryRegionCode".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String CountryRegionCode + { + get { return (System.String)GetValue((int)CountryRegionFieldIndex.CountryRegionCode, true); } + set { SetValue((int)CountryRegionFieldIndex.CountryRegionCode, value); } + } + + /// The ModifiedDate property of the Entity CountryRegion

+ /// Mapped on table field: "CountryRegion"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)CountryRegionFieldIndex.ModifiedDate, true); } + set { SetValue((int)CountryRegionFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity CountryRegion

+ /// Mapped on table field: "CountryRegion"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)CountryRegionFieldIndex.Name, true); } + set { SetValue((int)CountryRegionFieldIndex.Name, value); } + } + + /// Gets the EntityCollection with the related entities of type 'CountryRegionCurrencyEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(CountryRegionCurrencyEntity))] + public virtual EntityCollection CountryRegionCurrencies { get { return GetOrCreateEntityCollection("CountryRegion", true, false, ref _countryRegionCurrencies); } } + + /// Gets the EntityCollection with the related entities of type 'SalesTerritoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesTerritoryEntity))] + public virtual EntityCollection SalesTerritories { get { return GetOrCreateEntityCollection("CountryRegion", true, false, ref _salesTerritories); } } + + /// Gets the EntityCollection with the related entities of type 'StateProvinceEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(StateProvinceEntity))] + public virtual EntityCollection StateProvinces { get { return GetOrCreateEntityCollection("CountryRegion", true, false, ref _stateProvinces); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum CountryRegionFieldIndex + { + ///CountryRegionCode. + CountryRegionCode, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: CountryRegion. + public partial class CountryRegionRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between CountryRegionEntity and CountryRegionCurrencyEntity over the 1:n relation they have, using the relation between the fields: CountryRegion.CountryRegionCode - CountryRegionCurrency.CountryRegionCode + public virtual IEntityRelation CountryRegionCurrencyEntityUsingCountryRegionCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "CountryRegionCurrencies", true, new[] { CountryRegionFields.CountryRegionCode, CountryRegionCurrencyFields.CountryRegionCode }); } + } + + /// Returns a new IEntityRelation object, between CountryRegionEntity and SalesTerritoryEntity over the 1:n relation they have, using the relation between the fields: CountryRegion.CountryRegionCode - SalesTerritory.CountryRegionCode + public virtual IEntityRelation SalesTerritoryEntityUsingCountryRegionCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesTerritories", true, new[] { CountryRegionFields.CountryRegionCode, SalesTerritoryFields.CountryRegionCode }); } + } + + /// Returns a new IEntityRelation object, between CountryRegionEntity and StateProvinceEntity over the 1:n relation they have, using the relation between the fields: CountryRegion.CountryRegionCode - StateProvince.CountryRegionCode + public virtual IEntityRelation StateProvinceEntityUsingCountryRegionCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "StateProvinces", true, new[] { CountryRegionFields.CountryRegionCode, StateProvinceFields.CountryRegionCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticCountryRegionRelations + { + internal static readonly IEntityRelation CountryRegionCurrencyEntityUsingCountryRegionCodeStatic = new CountryRegionRelations().CountryRegionCurrencyEntityUsingCountryRegionCode; + internal static readonly IEntityRelation SalesTerritoryEntityUsingCountryRegionCodeStatic = new CountryRegionRelations().SalesTerritoryEntityUsingCountryRegionCode; + internal static readonly IEntityRelation StateProvinceEntityUsingCountryRegionCodeStatic = new CountryRegionRelations().StateProvinceEntityUsingCountryRegionCode; + + /// CTor + static StaticCountryRegionRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/CreditCardEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CreditCardEntity.cs new file mode 100644 index 00000000..b3685c4d --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CreditCardEntity.cs @@ -0,0 +1,262 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'CreditCard'.

+ [Serializable] + public partial class CreditCardEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _contactCreditCards; + private EntityCollection _salesOrderHeaders; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static CreditCardEntityStaticMetaData _staticMetaData = new CreditCardEntityStaticMetaData(); + private static CreditCardRelations _relationsFactory = new CreditCardRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ContactCreditCards + public static readonly string ContactCreditCards = "ContactCreditCards"; + /// Member name SalesOrderHeaders + public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; + } + + /// Static meta-data storage for navigator related information + protected class CreditCardEntityStaticMetaData : EntityStaticMetaDataBase + { + public CreditCardEntityStaticMetaData() + { + SetEntityCoreInfo("CreditCardEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CreditCardEntity, typeof(CreditCardEntity), typeof(CreditCardEntityFactory), false); + AddNavigatorMetaData>("ContactCreditCards", a => a._contactCreditCards, (a, b) => a._contactCreditCards = b, a => a.ContactCreditCards, () => new CreditCardRelations().ContactCreditCardEntityUsingCreditCardId, typeof(ContactCreditCardEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ContactCreditCardEntity); + AddNavigatorMetaData>("SalesOrderHeaders", a => a._salesOrderHeaders, (a, b) => a._salesOrderHeaders = b, a => a.SalesOrderHeaders, () => new CreditCardRelations().SalesOrderHeaderEntityUsingCreditCardId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + } + } + + /// Static ctor + static CreditCardEntity() + { + } + + /// CTor + public CreditCardEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public CreditCardEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this CreditCardEntity + public CreditCardEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for CreditCard which data should be fetched into this CreditCard object + public CreditCardEntity(System.Int32 creditCardId) : this(creditCardId, null) + { + } + + /// CTor + /// PK value for CreditCard which data should be fetched into this CreditCard object + /// The custom validator object for this CreditCardEntity + public CreditCardEntity(System.Int32 creditCardId, IValidator validator) + { + InitClassEmpty(validator, null); + this.CreditCardId = creditCardId; + } + + /// Private CTor for deserialization + /// + /// + protected CreditCardEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ContactCreditCard' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoContactCreditCards() { return CreateRelationInfoForNavigator("ContactCreditCards"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() { return CreateRelationInfoForNavigator("SalesOrderHeaders"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this CreditCardEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static CreditCardRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ContactCreditCard' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathContactCreditCards { get { return _staticMetaData.GetPrefetchPathElement("ContactCreditCards", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// The CardNumber property of the Entity CreditCard

+ /// Mapped on table field: "CreditCard"."CardNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String CardNumber + { + get { return (System.String)GetValue((int)CreditCardFieldIndex.CardNumber, true); } + set { SetValue((int)CreditCardFieldIndex.CardNumber, value); } + } + + /// The CardType property of the Entity CreditCard

+ /// Mapped on table field: "CreditCard"."CardType".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String CardType + { + get { return (System.String)GetValue((int)CreditCardFieldIndex.CardType, true); } + set { SetValue((int)CreditCardFieldIndex.CardType, value); } + } + + /// The CreditCardId property of the Entity CreditCard

+ /// Mapped on table field: "CreditCard"."CreditCardID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 CreditCardId + { + get { return (System.Int32)GetValue((int)CreditCardFieldIndex.CreditCardId, true); } + set { SetValue((int)CreditCardFieldIndex.CreditCardId, value); } } + + /// The ExpMonth property of the Entity CreditCard

+ /// Mapped on table field: "CreditCard"."ExpMonth".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte ExpMonth + { + get { return (System.Byte)GetValue((int)CreditCardFieldIndex.ExpMonth, true); } + set { SetValue((int)CreditCardFieldIndex.ExpMonth, value); } + } + + /// The ExpYear property of the Entity CreditCard

+ /// Mapped on table field: "CreditCard"."ExpYear".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 ExpYear + { + get { return (System.Int16)GetValue((int)CreditCardFieldIndex.ExpYear, true); } + set { SetValue((int)CreditCardFieldIndex.ExpYear, value); } + } + + /// The ModifiedDate property of the Entity CreditCard

+ /// Mapped on table field: "CreditCard"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)CreditCardFieldIndex.ModifiedDate, true); } + set { SetValue((int)CreditCardFieldIndex.ModifiedDate, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ContactCreditCardEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ContactCreditCardEntity))] + public virtual EntityCollection ContactCreditCards { get { return GetOrCreateEntityCollection("CreditCard", true, false, ref _contactCreditCards); } } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders { get { return GetOrCreateEntityCollection("CreditCard", true, false, ref _salesOrderHeaders); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum CreditCardFieldIndex + { + ///CardNumber. + CardNumber, + ///CardType. + CardType, + ///CreditCardId. + CreditCardId, + ///ExpMonth. + ExpMonth, + ///ExpYear. + ExpYear, + ///ModifiedDate. + ModifiedDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: CreditCard. + public partial class CreditCardRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between CreditCardEntity and ContactCreditCardEntity over the 1:n relation they have, using the relation between the fields: CreditCard.CreditCardId - ContactCreditCard.CreditCardId + public virtual IEntityRelation ContactCreditCardEntityUsingCreditCardId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ContactCreditCards", true, new[] { CreditCardFields.CreditCardId, ContactCreditCardFields.CreditCardId }); } + } + + /// Returns a new IEntityRelation object, between CreditCardEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: CreditCard.CreditCardId - SalesOrderHeader.CreditCardId + public virtual IEntityRelation SalesOrderHeaderEntityUsingCreditCardId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders", true, new[] { CreditCardFields.CreditCardId, SalesOrderHeaderFields.CreditCardId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticCreditCardRelations + { + internal static readonly IEntityRelation ContactCreditCardEntityUsingCreditCardIdStatic = new CreditCardRelations().ContactCreditCardEntityUsingCreditCardId; + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingCreditCardIdStatic = new CreditCardRelations().SalesOrderHeaderEntityUsingCreditCardId; + + /// CTor + static StaticCreditCardRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/CultureEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CultureEntity.cs new file mode 100644 index 00000000..a8d4bae4 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CultureEntity.cs @@ -0,0 +1,210 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Culture'.

+ [Serializable] + public partial class CultureEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productModelProductDescriptionCultures; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static CultureEntityStaticMetaData _staticMetaData = new CultureEntityStaticMetaData(); + private static CultureRelations _relationsFactory = new CultureRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductModelProductDescriptionCultures + public static readonly string ProductModelProductDescriptionCultures = "ProductModelProductDescriptionCultures"; + } + + /// Static meta-data storage for navigator related information + protected class CultureEntityStaticMetaData : EntityStaticMetaDataBase + { + public CultureEntityStaticMetaData() + { + SetEntityCoreInfo("CultureEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CultureEntity, typeof(CultureEntity), typeof(CultureEntityFactory), false); + AddNavigatorMetaData>("ProductModelProductDescriptionCultures", a => a._productModelProductDescriptionCultures, (a, b) => a._productModelProductDescriptionCultures = b, a => a.ProductModelProductDescriptionCultures, () => new CultureRelations().ProductModelProductDescriptionCultureEntityUsingCultureId, typeof(ProductModelProductDescriptionCultureEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelProductDescriptionCultureEntity); + } + } + + /// Static ctor + static CultureEntity() + { + } + + /// CTor + public CultureEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public CultureEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this CultureEntity + public CultureEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Culture which data should be fetched into this Culture object + public CultureEntity(System.String cultureId) : this(cultureId, null) + { + } + + /// CTor + /// PK value for Culture which data should be fetched into this Culture object + /// The custom validator object for this CultureEntity + public CultureEntity(System.String cultureId, IValidator validator) + { + InitClassEmpty(validator, null); + this.CultureId = cultureId; + } + + /// Private CTor for deserialization + /// + /// + protected CultureEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelProductDescriptionCulture' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModelProductDescriptionCultures() { return CreateRelationInfoForNavigator("ProductModelProductDescriptionCultures"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this CultureEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static CultureRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelProductDescriptionCulture' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModelProductDescriptionCultures { get { return _staticMetaData.GetPrefetchPathElement("ProductModelProductDescriptionCultures", CommonEntityBase.CreateEntityCollection()); } } + + /// The CultureId property of the Entity Culture

+ /// Mapped on table field: "Culture"."CultureID".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 6.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String CultureId + { + get { return (System.String)GetValue((int)CultureFieldIndex.CultureId, true); } + set { SetValue((int)CultureFieldIndex.CultureId, value); } + } + + /// The ModifiedDate property of the Entity Culture

+ /// Mapped on table field: "Culture"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)CultureFieldIndex.ModifiedDate, true); } + set { SetValue((int)CultureFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Culture

+ /// Mapped on table field: "Culture"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)CultureFieldIndex.Name, true); } + set { SetValue((int)CultureFieldIndex.Name, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductModelProductDescriptionCultureEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductModelProductDescriptionCultureEntity))] + public virtual EntityCollection ProductModelProductDescriptionCultures { get { return GetOrCreateEntityCollection("Culture", true, false, ref _productModelProductDescriptionCultures); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum CultureFieldIndex + { + ///CultureId. + CultureId, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Culture. + public partial class CultureRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between CultureEntity and ProductModelProductDescriptionCultureEntity over the 1:n relation they have, using the relation between the fields: Culture.CultureId - ProductModelProductDescriptionCulture.CultureId + public virtual IEntityRelation ProductModelProductDescriptionCultureEntityUsingCultureId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductModelProductDescriptionCultures", true, new[] { CultureFields.CultureId, ProductModelProductDescriptionCultureFields.CultureId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticCultureRelations + { + internal static readonly IEntityRelation ProductModelProductDescriptionCultureEntityUsingCultureIdStatic = new CultureRelations().ProductModelProductDescriptionCultureEntityUsingCultureId; + + /// CTor + static StaticCultureRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyEntity.cs new file mode 100644 index 00000000..281b3ba4 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyEntity.cs @@ -0,0 +1,256 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Currency'.

+ [Serializable] + public partial class CurrencyEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _countryRegionCurrencies; + private EntityCollection _currencyRates; + private EntityCollection _currencyRates_; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static CurrencyEntityStaticMetaData _staticMetaData = new CurrencyEntityStaticMetaData(); + private static CurrencyRelations _relationsFactory = new CurrencyRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name CountryRegionCurrencies + public static readonly string CountryRegionCurrencies = "CountryRegionCurrencies"; + /// Member name CurrencyRates + public static readonly string CurrencyRates = "CurrencyRates"; + /// Member name CurrencyRates_ + public static readonly string CurrencyRates_ = "CurrencyRates_"; + } + + /// Static meta-data storage for navigator related information + protected class CurrencyEntityStaticMetaData : EntityStaticMetaDataBase + { + public CurrencyEntityStaticMetaData() + { + SetEntityCoreInfo("CurrencyEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyEntity, typeof(CurrencyEntity), typeof(CurrencyEntityFactory), false); + AddNavigatorMetaData>("CountryRegionCurrencies", a => a._countryRegionCurrencies, (a, b) => a._countryRegionCurrencies = b, a => a.CountryRegionCurrencies, () => new CurrencyRelations().CountryRegionCurrencyEntityUsingCurrencyCode, typeof(CountryRegionCurrencyEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionCurrencyEntity); + AddNavigatorMetaData>("CurrencyRates", a => a._currencyRates, (a, b) => a._currencyRates = b, a => a.CurrencyRates, () => new CurrencyRelations().CurrencyRateEntityUsingFromCurrencyCode, typeof(CurrencyRateEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyRateEntity); + AddNavigatorMetaData>("CurrencyRates_", a => a._currencyRates_, (a, b) => a._currencyRates_ = b, a => a.CurrencyRates_, () => new CurrencyRelations().CurrencyRateEntityUsingToCurrencyCode, typeof(CurrencyRateEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyRateEntity); + } + } + + /// Static ctor + static CurrencyEntity() + { + } + + /// CTor + public CurrencyEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public CurrencyEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this CurrencyEntity + public CurrencyEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Currency which data should be fetched into this Currency object + public CurrencyEntity(System.String currencyCode) : this(currencyCode, null) + { + } + + /// CTor + /// PK value for Currency which data should be fetched into this Currency object + /// The custom validator object for this CurrencyEntity + public CurrencyEntity(System.String currencyCode, IValidator validator) + { + InitClassEmpty(validator, null); + this.CurrencyCode = currencyCode; + } + + /// Private CTor for deserialization + /// + /// + protected CurrencyEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CountryRegionCurrency' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCountryRegionCurrencies() { return CreateRelationInfoForNavigator("CountryRegionCurrencies"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CurrencyRate' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCurrencyRates() { return CreateRelationInfoForNavigator("CurrencyRates"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'CurrencyRate' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCurrencyRates_() { return CreateRelationInfoForNavigator("CurrencyRates_"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this CurrencyEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static CurrencyRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegionCurrency' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCountryRegionCurrencies { get { return _staticMetaData.GetPrefetchPathElement("CountryRegionCurrencies", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CurrencyRate' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCurrencyRates { get { return _staticMetaData.GetPrefetchPathElement("CurrencyRates", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CurrencyRate' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCurrencyRates_ { get { return _staticMetaData.GetPrefetchPathElement("CurrencyRates_", CommonEntityBase.CreateEntityCollection()); } } + + /// The CurrencyCode property of the Entity Currency

+ /// Mapped on table field: "Currency"."CurrencyCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String CurrencyCode + { + get { return (System.String)GetValue((int)CurrencyFieldIndex.CurrencyCode, true); } + set { SetValue((int)CurrencyFieldIndex.CurrencyCode, value); } + } + + /// The ModifiedDate property of the Entity Currency

+ /// Mapped on table field: "Currency"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)CurrencyFieldIndex.ModifiedDate, true); } + set { SetValue((int)CurrencyFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Currency

+ /// Mapped on table field: "Currency"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)CurrencyFieldIndex.Name, true); } + set { SetValue((int)CurrencyFieldIndex.Name, value); } + } + + /// Gets the EntityCollection with the related entities of type 'CountryRegionCurrencyEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(CountryRegionCurrencyEntity))] + public virtual EntityCollection CountryRegionCurrencies { get { return GetOrCreateEntityCollection("Currency", true, false, ref _countryRegionCurrencies); } } + + /// Gets the EntityCollection with the related entities of type 'CurrencyRateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(CurrencyRateEntity))] + public virtual EntityCollection CurrencyRates { get { return GetOrCreateEntityCollection("Currency", true, false, ref _currencyRates); } } + + /// Gets the EntityCollection with the related entities of type 'CurrencyRateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(CurrencyRateEntity))] + public virtual EntityCollection CurrencyRates_ { get { return GetOrCreateEntityCollection("Currency_", true, false, ref _currencyRates_); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum CurrencyFieldIndex + { + ///CurrencyCode. + CurrencyCode, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Currency. + public partial class CurrencyRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between CurrencyEntity and CountryRegionCurrencyEntity over the 1:n relation they have, using the relation between the fields: Currency.CurrencyCode - CountryRegionCurrency.CurrencyCode + public virtual IEntityRelation CountryRegionCurrencyEntityUsingCurrencyCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "CountryRegionCurrencies", true, new[] { CurrencyFields.CurrencyCode, CountryRegionCurrencyFields.CurrencyCode }); } + } + + /// Returns a new IEntityRelation object, between CurrencyEntity and CurrencyRateEntity over the 1:n relation they have, using the relation between the fields: Currency.CurrencyCode - CurrencyRate.FromCurrencyCode + public virtual IEntityRelation CurrencyRateEntityUsingFromCurrencyCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "CurrencyRates", true, new[] { CurrencyFields.CurrencyCode, CurrencyRateFields.FromCurrencyCode }); } + } + + /// Returns a new IEntityRelation object, between CurrencyEntity and CurrencyRateEntity over the 1:n relation they have, using the relation between the fields: Currency.CurrencyCode - CurrencyRate.ToCurrencyCode + public virtual IEntityRelation CurrencyRateEntityUsingToCurrencyCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "CurrencyRates_", true, new[] { CurrencyFields.CurrencyCode, CurrencyRateFields.ToCurrencyCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticCurrencyRelations + { + internal static readonly IEntityRelation CountryRegionCurrencyEntityUsingCurrencyCodeStatic = new CurrencyRelations().CountryRegionCurrencyEntityUsingCurrencyCode; + internal static readonly IEntityRelation CurrencyRateEntityUsingFromCurrencyCodeStatic = new CurrencyRelations().CurrencyRateEntityUsingFromCurrencyCode; + internal static readonly IEntityRelation CurrencyRateEntityUsingToCurrencyCodeStatic = new CurrencyRelations().CurrencyRateEntityUsingToCurrencyCode; + + /// CTor + static StaticCurrencyRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs new file mode 100644 index 00000000..d719ee94 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CurrencyRateEntity.cs @@ -0,0 +1,303 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'CurrencyRate'.

+ [Serializable] + public partial class CurrencyRateEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _salesOrderHeaders; + private CurrencyEntity _currency; + private CurrencyEntity _currency_; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static CurrencyRateEntityStaticMetaData _staticMetaData = new CurrencyRateEntityStaticMetaData(); + private static CurrencyRateRelations _relationsFactory = new CurrencyRateRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Currency + public static readonly string Currency = "Currency"; + /// Member name Currency_ + public static readonly string Currency_ = "Currency_"; + /// Member name SalesOrderHeaders + public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; + } + + /// Static meta-data storage for navigator related information + protected class CurrencyRateEntityStaticMetaData : EntityStaticMetaDataBase + { + public CurrencyRateEntityStaticMetaData() + { + SetEntityCoreInfo("CurrencyRateEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyRateEntity, typeof(CurrencyRateEntity), typeof(CurrencyRateEntityFactory), false); + AddNavigatorMetaData>("SalesOrderHeaders", a => a._salesOrderHeaders, (a, b) => a._salesOrderHeaders = b, a => a.SalesOrderHeaders, () => new CurrencyRateRelations().SalesOrderHeaderEntityUsingCurrencyRateId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData("Currency", "CurrencyRates", (a, b) => a._currency = b, a => a._currency, (a, b) => a.Currency = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticCurrencyRateRelations.CurrencyEntityUsingFromCurrencyCodeStatic, ()=>new CurrencyRateRelations().CurrencyEntityUsingFromCurrencyCode, null, new int[] { (int)CurrencyRateFieldIndex.FromCurrencyCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyEntity); + AddNavigatorMetaData("Currency_", "CurrencyRates_", (a, b) => a._currency_ = b, a => a._currency_, (a, b) => a.Currency_ = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticCurrencyRateRelations.CurrencyEntityUsingToCurrencyCodeStatic, ()=>new CurrencyRateRelations().CurrencyEntityUsingToCurrencyCode, null, new int[] { (int)CurrencyRateFieldIndex.ToCurrencyCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyEntity); + } + } + + /// Static ctor + static CurrencyRateEntity() + { + } + + /// CTor + public CurrencyRateEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public CurrencyRateEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this CurrencyRateEntity + public CurrencyRateEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for CurrencyRate which data should be fetched into this CurrencyRate object + public CurrencyRateEntity(System.Int32 currencyRateId) : this(currencyRateId, null) + { + } + + /// CTor + /// PK value for CurrencyRate which data should be fetched into this CurrencyRate object + /// The custom validator object for this CurrencyRateEntity + public CurrencyRateEntity(System.Int32 currencyRateId, IValidator validator) + { + InitClassEmpty(validator, null); + this.CurrencyRateId = currencyRateId; + } + + /// Private CTor for deserialization + /// + /// + protected CurrencyRateEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() { return CreateRelationInfoForNavigator("SalesOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Currency' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCurrency() { return CreateRelationInfoForNavigator("Currency"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Currency' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCurrency_() { return CreateRelationInfoForNavigator("Currency_"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this CurrencyRateEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static CurrencyRateRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Currency' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCurrency { get { return _staticMetaData.GetPrefetchPathElement("Currency", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Currency' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCurrency_ { get { return _staticMetaData.GetPrefetchPathElement("Currency_", CommonEntityBase.CreateEntityCollection()); } } + + /// The AverageRate property of the Entity CurrencyRate

+ /// Mapped on table field: "CurrencyRate"."AverageRate".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal AverageRate + { + get { return (System.Decimal)GetValue((int)CurrencyRateFieldIndex.AverageRate, true); } + set { SetValue((int)CurrencyRateFieldIndex.AverageRate, value); } + } + + /// The CurrencyRateDate property of the Entity CurrencyRate

+ /// Mapped on table field: "CurrencyRate"."CurrencyRateDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime CurrencyRateDate + { + get { return (System.DateTime)GetValue((int)CurrencyRateFieldIndex.CurrencyRateDate, true); } + set { SetValue((int)CurrencyRateFieldIndex.CurrencyRateDate, value); } + } + + /// The CurrencyRateId property of the Entity CurrencyRate

+ /// Mapped on table field: "CurrencyRate"."CurrencyRateID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 CurrencyRateId + { + get { return (System.Int32)GetValue((int)CurrencyRateFieldIndex.CurrencyRateId, true); } + set { SetValue((int)CurrencyRateFieldIndex.CurrencyRateId, value); } } + + /// The EndOfDayRate property of the Entity CurrencyRate

+ /// Mapped on table field: "CurrencyRate"."EndOfDayRate".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal EndOfDayRate + { + get { return (System.Decimal)GetValue((int)CurrencyRateFieldIndex.EndOfDayRate, true); } + set { SetValue((int)CurrencyRateFieldIndex.EndOfDayRate, value); } + } + + /// The FromCurrencyCode property of the Entity CurrencyRate

+ /// Mapped on table field: "CurrencyRate"."FromCurrencyCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String FromCurrencyCode + { + get { return (System.String)GetValue((int)CurrencyRateFieldIndex.FromCurrencyCode, true); } + set { SetValue((int)CurrencyRateFieldIndex.FromCurrencyCode, value); } + } + + /// The ModifiedDate property of the Entity CurrencyRate

+ /// Mapped on table field: "CurrencyRate"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)CurrencyRateFieldIndex.ModifiedDate, true); } + set { SetValue((int)CurrencyRateFieldIndex.ModifiedDate, value); } + } + + /// The ToCurrencyCode property of the Entity CurrencyRate

+ /// Mapped on table field: "CurrencyRate"."ToCurrencyCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String ToCurrencyCode + { + get { return (System.String)GetValue((int)CurrencyRateFieldIndex.ToCurrencyCode, true); } + set { SetValue((int)CurrencyRateFieldIndex.ToCurrencyCode, value); } + } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders { get { return GetOrCreateEntityCollection("CurrencyRate", true, false, ref _salesOrderHeaders); } } + + /// Gets / sets related entity of type 'CurrencyEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CurrencyEntity Currency + { + get { return _currency; } + set { SetSingleRelatedEntityNavigator(value, "Currency"); } + } + + /// Gets / sets related entity of type 'CurrencyEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CurrencyEntity Currency_ + { + get { return _currency_; } + set { SetSingleRelatedEntityNavigator(value, "Currency_"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum CurrencyRateFieldIndex + { + ///AverageRate. + AverageRate, + ///CurrencyRateDate. + CurrencyRateDate, + ///CurrencyRateId. + CurrencyRateId, + ///EndOfDayRate. + EndOfDayRate, + ///FromCurrencyCode. + FromCurrencyCode, + ///ModifiedDate. + ModifiedDate, + ///ToCurrencyCode. + ToCurrencyCode, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: CurrencyRate. + public partial class CurrencyRateRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between CurrencyRateEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: CurrencyRate.CurrencyRateId - SalesOrderHeader.CurrencyRateId + public virtual IEntityRelation SalesOrderHeaderEntityUsingCurrencyRateId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders", true, new[] { CurrencyRateFields.CurrencyRateId, SalesOrderHeaderFields.CurrencyRateId }); } + } + + /// Returns a new IEntityRelation object, between CurrencyRateEntity and CurrencyEntity over the m:1 relation they have, using the relation between the fields: CurrencyRate.FromCurrencyCode - Currency.CurrencyCode + public virtual IEntityRelation CurrencyEntityUsingFromCurrencyCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Currency", false, new[] { CurrencyFields.CurrencyCode, CurrencyRateFields.FromCurrencyCode }); } + } + + /// Returns a new IEntityRelation object, between CurrencyRateEntity and CurrencyEntity over the m:1 relation they have, using the relation between the fields: CurrencyRate.ToCurrencyCode - Currency.CurrencyCode + public virtual IEntityRelation CurrencyEntityUsingToCurrencyCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Currency_", false, new[] { CurrencyFields.CurrencyCode, CurrencyRateFields.ToCurrencyCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticCurrencyRateRelations + { + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingCurrencyRateIdStatic = new CurrencyRateRelations().SalesOrderHeaderEntityUsingCurrencyRateId; + internal static readonly IEntityRelation CurrencyEntityUsingFromCurrencyCodeStatic = new CurrencyRateRelations().CurrencyEntityUsingFromCurrencyCode; + internal static readonly IEntityRelation CurrencyEntityUsingToCurrencyCodeStatic = new CurrencyRateRelations().CurrencyEntityUsingToCurrencyCode; + + /// CTor + static StaticCurrencyRateRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/CustomerEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/CustomerEntity.cs new file mode 100644 index 00000000..7120b0ba --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/CustomerEntity.cs @@ -0,0 +1,329 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Customer'.

+ [Serializable] + public partial class CustomerEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _salesOrderHeaders; + private PersonEntity _person; + private SalesTerritoryEntity _salesTerritory; + private StoreEntity _store; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static CustomerEntityStaticMetaData _staticMetaData = new CustomerEntityStaticMetaData(); + private static CustomerRelations _relationsFactory = new CustomerRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Person + public static readonly string Person = "Person"; + /// Member name SalesTerritory + public static readonly string SalesTerritory = "SalesTerritory"; + /// Member name Store + public static readonly string Store = "Store"; + /// Member name SalesOrderHeaders + public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; + } + + /// Static meta-data storage for navigator related information + protected class CustomerEntityStaticMetaData : EntityStaticMetaDataBase + { + public CustomerEntityStaticMetaData() + { + SetEntityCoreInfo("CustomerEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity, typeof(CustomerEntity), typeof(CustomerEntityFactory), false); + AddNavigatorMetaData>("SalesOrderHeaders", a => a._salesOrderHeaders, (a, b) => a._salesOrderHeaders = b, a => a.SalesOrderHeaders, () => new CustomerRelations().SalesOrderHeaderEntityUsingCustomerId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData("Person", "Customers", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticCustomerRelations.PersonEntityUsingPersonIdStatic, ()=>new CustomerRelations().PersonEntityUsingPersonId, null, new int[] { (int)CustomerFieldIndex.PersonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + AddNavigatorMetaData("SalesTerritory", "Customers", (a, b) => a._salesTerritory = b, a => a._salesTerritory, (a, b) => a.SalesTerritory = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticCustomerRelations.SalesTerritoryEntityUsingTerritoryIdStatic, ()=>new CustomerRelations().SalesTerritoryEntityUsingTerritoryId, null, new int[] { (int)CustomerFieldIndex.TerritoryId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity); + AddNavigatorMetaData("Store", "Customers", (a, b) => a._store = b, a => a._store, (a, b) => a.Store = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticCustomerRelations.StoreEntityUsingStoreIdStatic, ()=>new CustomerRelations().StoreEntityUsingStoreId, null, new int[] { (int)CustomerFieldIndex.StoreId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.StoreEntity); + } + } + + /// Static ctor + static CustomerEntity() + { + } + + /// CTor + public CustomerEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public CustomerEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this CustomerEntity + public CustomerEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Customer which data should be fetched into this Customer object + public CustomerEntity(System.Int32 customerId) : this(customerId, null) + { + } + + /// CTor + /// PK value for Customer which data should be fetched into this Customer object + /// The custom validator object for this CustomerEntity + public CustomerEntity(System.Int32 customerId, IValidator validator) + { + InitClassEmpty(validator, null); + this.CustomerId = customerId; + } + + /// Private CTor for deserialization + /// + /// + protected CustomerEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() { return CreateRelationInfoForNavigator("SalesOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() { return CreateRelationInfoForNavigator("SalesTerritory"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Store' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoStore() { return CreateRelationInfoForNavigator("Store"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this CustomerEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static CustomerRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritory { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritory", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Store' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathStore { get { return _staticMetaData.GetPrefetchPathElement("Store", CommonEntityBase.CreateEntityCollection()); } } + + /// The AccountNumber property of the Entity Customer

+ /// Mapped on table field: "Customer"."AccountNumber".
Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 10.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String AccountNumber + { + get { return (System.String)GetValue((int)CustomerFieldIndex.AccountNumber, true); } + } + + /// The CustomerId property of the Entity Customer

+ /// Mapped on table field: "Customer"."CustomerID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 CustomerId + { + get { return (System.Int32)GetValue((int)CustomerFieldIndex.CustomerId, true); } + set { SetValue((int)CustomerFieldIndex.CustomerId, value); } } + + /// The ModifiedDate property of the Entity Customer

+ /// Mapped on table field: "Customer"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)CustomerFieldIndex.ModifiedDate, true); } + set { SetValue((int)CustomerFieldIndex.ModifiedDate, value); } + } + + /// The PersonId property of the Entity Customer

+ /// Mapped on table field: "Customer"."PersonID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable PersonId + { + get { return (Nullable)GetValue((int)CustomerFieldIndex.PersonId, false); } + set { SetValue((int)CustomerFieldIndex.PersonId, value); } + } + + /// The Rowguid property of the Entity Customer

+ /// Mapped on table field: "Customer"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)CustomerFieldIndex.Rowguid, true); } + set { SetValue((int)CustomerFieldIndex.Rowguid, value); } + } + + /// The StoreId property of the Entity Customer

+ /// Mapped on table field: "Customer"."StoreID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable StoreId + { + get { return (Nullable)GetValue((int)CustomerFieldIndex.StoreId, false); } + set { SetValue((int)CustomerFieldIndex.StoreId, value); } + } + + /// The TerritoryId property of the Entity Customer

+ /// Mapped on table field: "Customer"."TerritoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable TerritoryId + { + get { return (Nullable)GetValue((int)CustomerFieldIndex.TerritoryId, false); } + set { SetValue((int)CustomerFieldIndex.TerritoryId, value); } + } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders { get { return GetOrCreateEntityCollection("Customer", true, false, ref _salesOrderHeaders); } } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesTerritoryEntity SalesTerritory + { + get { return _salesTerritory; } + set { SetSingleRelatedEntityNavigator(value, "SalesTerritory"); } + } + + /// Gets / sets related entity of type 'StoreEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual StoreEntity Store + { + get { return _store; } + set { SetSingleRelatedEntityNavigator(value, "Store"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum CustomerFieldIndex + { + ///AccountNumber. + AccountNumber, + ///CustomerId. + CustomerId, + ///ModifiedDate. + ModifiedDate, + ///PersonId. + PersonId, + ///Rowguid. + Rowguid, + ///StoreId. + StoreId, + ///TerritoryId. + TerritoryId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Customer. + public partial class CustomerRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between CustomerEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: Customer.CustomerId - SalesOrderHeader.CustomerId + public virtual IEntityRelation SalesOrderHeaderEntityUsingCustomerId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders", true, new[] { CustomerFields.CustomerId, SalesOrderHeaderFields.CustomerId }); } + } + + /// Returns a new IEntityRelation object, between CustomerEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: Customer.PersonId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Person", false, new[] { PersonFields.BusinessEntityId, CustomerFields.PersonId }); } + } + + /// Returns a new IEntityRelation object, between CustomerEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: Customer.TerritoryId - SalesTerritory.TerritoryId + public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesTerritory", false, new[] { SalesTerritoryFields.TerritoryId, CustomerFields.TerritoryId }); } + } + + /// Returns a new IEntityRelation object, between CustomerEntity and StoreEntity over the m:1 relation they have, using the relation between the fields: Customer.StoreId - Store.CustomerId + public virtual IEntityRelation StoreEntityUsingStoreId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Store", false, new[] { StoreFields.CustomerId, CustomerFields.StoreId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticCustomerRelations + { + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingCustomerIdStatic = new CustomerRelations().SalesOrderHeaderEntityUsingCustomerId; + internal static readonly IEntityRelation PersonEntityUsingPersonIdStatic = new CustomerRelations().PersonEntityUsingPersonId; + internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new CustomerRelations().SalesTerritoryEntityUsingTerritoryId; + internal static readonly IEntityRelation StoreEntityUsingStoreIdStatic = new CustomerRelations().StoreEntityUsingStoreId; + + /// CTor + static StaticCustomerRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/DepartmentEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/DepartmentEntity.cs new file mode 100644 index 00000000..97a1ec8f --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/DepartmentEntity.cs @@ -0,0 +1,219 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Department'.

+ [Serializable] + public partial class DepartmentEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _employeeDepartmentHistories; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static DepartmentEntityStaticMetaData _staticMetaData = new DepartmentEntityStaticMetaData(); + private static DepartmentRelations _relationsFactory = new DepartmentRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name EmployeeDepartmentHistories + public static readonly string EmployeeDepartmentHistories = "EmployeeDepartmentHistories"; + } + + /// Static meta-data storage for navigator related information + protected class DepartmentEntityStaticMetaData : EntityStaticMetaDataBase + { + public DepartmentEntityStaticMetaData() + { + SetEntityCoreInfo("DepartmentEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.DepartmentEntity, typeof(DepartmentEntity), typeof(DepartmentEntityFactory), false); + AddNavigatorMetaData>("EmployeeDepartmentHistories", a => a._employeeDepartmentHistories, (a, b) => a._employeeDepartmentHistories = b, a => a.EmployeeDepartmentHistories, () => new DepartmentRelations().EmployeeDepartmentHistoryEntityUsingDepartmentId, typeof(EmployeeDepartmentHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeDepartmentHistoryEntity); + } + } + + /// Static ctor + static DepartmentEntity() + { + } + + /// CTor + public DepartmentEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public DepartmentEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this DepartmentEntity + public DepartmentEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Department which data should be fetched into this Department object + public DepartmentEntity(System.Int16 departmentId) : this(departmentId, null) + { + } + + /// CTor + /// PK value for Department which data should be fetched into this Department object + /// The custom validator object for this DepartmentEntity + public DepartmentEntity(System.Int16 departmentId, IValidator validator) + { + InitClassEmpty(validator, null); + this.DepartmentId = departmentId; + } + + /// Private CTor for deserialization + /// + /// + protected DepartmentEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeeDepartmentHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployeeDepartmentHistories() { return CreateRelationInfoForNavigator("EmployeeDepartmentHistories"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this DepartmentEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static DepartmentRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeeDepartmentHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployeeDepartmentHistories { get { return _staticMetaData.GetPrefetchPathElement("EmployeeDepartmentHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// The DepartmentId property of the Entity Department

+ /// Mapped on table field: "Department"."DepartmentID".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int16 DepartmentId + { + get { return (System.Int16)GetValue((int)DepartmentFieldIndex.DepartmentId, true); } + set { SetValue((int)DepartmentFieldIndex.DepartmentId, value); } } + + /// The GroupName property of the Entity Department

+ /// Mapped on table field: "Department"."GroupName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String GroupName + { + get { return (System.String)GetValue((int)DepartmentFieldIndex.GroupName, true); } + set { SetValue((int)DepartmentFieldIndex.GroupName, value); } + } + + /// The ModifiedDate property of the Entity Department

+ /// Mapped on table field: "Department"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)DepartmentFieldIndex.ModifiedDate, true); } + set { SetValue((int)DepartmentFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Department

+ /// Mapped on table field: "Department"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)DepartmentFieldIndex.Name, true); } + set { SetValue((int)DepartmentFieldIndex.Name, value); } + } + + /// Gets the EntityCollection with the related entities of type 'EmployeeDepartmentHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(EmployeeDepartmentHistoryEntity))] + public virtual EntityCollection EmployeeDepartmentHistories { get { return GetOrCreateEntityCollection("Department", true, false, ref _employeeDepartmentHistories); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum DepartmentFieldIndex + { + ///DepartmentId. + DepartmentId, + ///GroupName. + GroupName, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Department. + public partial class DepartmentRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between DepartmentEntity and EmployeeDepartmentHistoryEntity over the 1:n relation they have, using the relation between the fields: Department.DepartmentId - EmployeeDepartmentHistory.DepartmentId + public virtual IEntityRelation EmployeeDepartmentHistoryEntityUsingDepartmentId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "EmployeeDepartmentHistories", true, new[] { DepartmentFields.DepartmentId, EmployeeDepartmentHistoryFields.DepartmentId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticDepartmentRelations + { + internal static readonly IEntityRelation EmployeeDepartmentHistoryEntityUsingDepartmentIdStatic = new DepartmentRelations().EmployeeDepartmentHistoryEntityUsingDepartmentId; + + /// CTor + static StaticDepartmentRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/DocumentEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/DocumentEntity.cs new file mode 100644 index 00000000..f5c81db1 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/DocumentEntity.cs @@ -0,0 +1,355 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Document'.

+ [Serializable] + public partial class DocumentEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productDocuments; + private EmployeeEntity _employee; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static DocumentEntityStaticMetaData _staticMetaData = new DocumentEntityStaticMetaData(); + private static DocumentRelations _relationsFactory = new DocumentRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Employee + public static readonly string Employee = "Employee"; + /// Member name ProductDocuments + public static readonly string ProductDocuments = "ProductDocuments"; + } + + /// Static meta-data storage for navigator related information + protected class DocumentEntityStaticMetaData : EntityStaticMetaDataBase + { + public DocumentEntityStaticMetaData() + { + SetEntityCoreInfo("DocumentEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.DocumentEntity, typeof(DocumentEntity), typeof(DocumentEntityFactory), false); + AddNavigatorMetaData>("ProductDocuments", a => a._productDocuments, (a, b) => a._productDocuments = b, a => a.ProductDocuments, () => new DocumentRelations().ProductDocumentEntityUsingDocumentNode, typeof(ProductDocumentEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductDocumentEntity); + AddNavigatorMetaData("Employee", "Documents", (a, b) => a._employee = b, a => a._employee, (a, b) => a.Employee = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticDocumentRelations.EmployeeEntityUsingOwnerStatic, ()=>new DocumentRelations().EmployeeEntityUsingOwner, null, new int[] { (int)DocumentFieldIndex.Owner }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity); + } + } + + /// Static ctor + static DocumentEntity() + { + } + + /// CTor + public DocumentEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public DocumentEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this DocumentEntity + public DocumentEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Document which data should be fetched into this Document object + public DocumentEntity(System.String documentNode) : this(documentNode, null) + { + } + + /// CTor + /// PK value for Document which data should be fetched into this Document object + /// The custom validator object for this DocumentEntity + public DocumentEntity(System.String documentNode, IValidator validator) + { + InitClassEmpty(validator, null); + this.DocumentNode = documentNode; + } + + /// Private CTor for deserialization + /// + /// + protected DocumentEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Method which will construct a filter (predicate expression) for the unique constraint defined on the fields: Rowguid . + /// true if succeeded and the contents is read, false otherwise + public IPredicateExpression ConstructFilterForUCRowguid() + { + var filter = new PredicateExpression(); + filter.Add(AdventureWorks.Dal.Adapter.v54.HelperClasses.DocumentFields.Rowguid == this.Fields.GetCurrentValue((int)DocumentFieldIndex.Rowguid)); + return filter; + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductDocument' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductDocuments() { return CreateRelationInfoForNavigator("ProductDocuments"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployee() { return CreateRelationInfoForNavigator("Employee"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this DocumentEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static DocumentRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductDocument' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductDocuments { get { return _staticMetaData.GetPrefetchPathElement("ProductDocuments", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployee { get { return _staticMetaData.GetPrefetchPathElement("Employee", CommonEntityBase.CreateEntityCollection()); } } + + /// The ChangeNumber property of the Entity Document

+ /// Mapped on table field: "Document"."ChangeNumber".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ChangeNumber + { + get { return (System.Int32)GetValue((int)DocumentFieldIndex.ChangeNumber, true); } + set { SetValue((int)DocumentFieldIndex.ChangeNumber, value); } + } + + /// The Document property of the Entity Document

+ /// Mapped on table field: "Document"."Document".
Table field type characteristics (type, precision, scale, length): VarBinary, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.Byte[] Document + { + get { return (System.Byte[])GetValue((int)DocumentFieldIndex.Document, true); } + set { SetValue((int)DocumentFieldIndex.Document, value); } + } + + /// The DocumentLevel property of the Entity Document

+ /// Mapped on table field: "Document"."DocumentLevel".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable DocumentLevel + { + get { return (Nullable)GetValue((int)DocumentFieldIndex.DocumentLevel, false); } + } + + /// The DocumentNode property of the Entity Document

+ /// Mapped on table field: "Document"."DocumentNode".
Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 892.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String DocumentNode + { + get { return (System.String)GetValue((int)DocumentFieldIndex.DocumentNode, true); } + set { SetValue((int)DocumentFieldIndex.DocumentNode, value); } + } + + /// The DocumentSummary property of the Entity Document

+ /// Mapped on table field: "Document"."DocumentSummary".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String DocumentSummary + { + get { return (System.String)GetValue((int)DocumentFieldIndex.DocumentSummary, true); } + set { SetValue((int)DocumentFieldIndex.DocumentSummary, value); } + } + + /// The FileExtension property of the Entity Document

+ /// Mapped on table field: "Document"."FileExtension".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 8.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String FileExtension + { + get { return (System.String)GetValue((int)DocumentFieldIndex.FileExtension, true); } + set { SetValue((int)DocumentFieldIndex.FileExtension, value); } + } + + /// The FileName property of the Entity Document

+ /// Mapped on table field: "Document"."FileName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 400.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String FileName + { + get { return (System.String)GetValue((int)DocumentFieldIndex.FileName, true); } + set { SetValue((int)DocumentFieldIndex.FileName, value); } + } + + /// The FolderFlag property of the Entity Document

+ /// Mapped on table field: "Document"."FolderFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean FolderFlag + { + get { return (System.Boolean)GetValue((int)DocumentFieldIndex.FolderFlag, true); } + set { SetValue((int)DocumentFieldIndex.FolderFlag, value); } + } + + /// The ModifiedDate property of the Entity Document

+ /// Mapped on table field: "Document"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)DocumentFieldIndex.ModifiedDate, true); } + set { SetValue((int)DocumentFieldIndex.ModifiedDate, value); } + } + + /// The Owner property of the Entity Document

+ /// Mapped on table field: "Document"."Owner".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 Owner + { + get { return (System.Int32)GetValue((int)DocumentFieldIndex.Owner, true); } + set { SetValue((int)DocumentFieldIndex.Owner, value); } + } + + /// The Revision property of the Entity Document

+ /// Mapped on table field: "Document"."Revision".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 5.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Revision + { + get { return (System.String)GetValue((int)DocumentFieldIndex.Revision, true); } + set { SetValue((int)DocumentFieldIndex.Revision, value); } + } + + /// The Rowguid property of the Entity Document

+ /// Mapped on table field: "Document"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)DocumentFieldIndex.Rowguid, true); } + set { SetValue((int)DocumentFieldIndex.Rowguid, value); } + } + + /// The Status property of the Entity Document

+ /// Mapped on table field: "Document"."Status".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte Status + { + get { return (System.Byte)GetValue((int)DocumentFieldIndex.Status, true); } + set { SetValue((int)DocumentFieldIndex.Status, value); } + } + + /// The Title property of the Entity Document

+ /// Mapped on table field: "Document"."Title".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Title + { + get { return (System.String)GetValue((int)DocumentFieldIndex.Title, true); } + set { SetValue((int)DocumentFieldIndex.Title, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductDocumentEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductDocumentEntity))] + public virtual EntityCollection ProductDocuments { get { return GetOrCreateEntityCollection("Document", true, false, ref _productDocuments); } } + + /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual EmployeeEntity Employee + { + get { return _employee; } + set { SetSingleRelatedEntityNavigator(value, "Employee"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum DocumentFieldIndex + { + ///ChangeNumber. + ChangeNumber, + ///Document. + Document, + ///DocumentLevel. + DocumentLevel, + ///DocumentNode. + DocumentNode, + ///DocumentSummary. + DocumentSummary, + ///FileExtension. + FileExtension, + ///FileName. + FileName, + ///FolderFlag. + FolderFlag, + ///ModifiedDate. + ModifiedDate, + ///Owner. + Owner, + ///Revision. + Revision, + ///Rowguid. + Rowguid, + ///Status. + Status, + ///Title. + Title, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Document. + public partial class DocumentRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between DocumentEntity and ProductDocumentEntity over the 1:n relation they have, using the relation between the fields: Document.DocumentNode - ProductDocument.DocumentNode + public virtual IEntityRelation ProductDocumentEntityUsingDocumentNode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductDocuments", true, new[] { DocumentFields.DocumentNode, ProductDocumentFields.DocumentNode }); } + } + + /// Returns a new IEntityRelation object, between DocumentEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: Document.Owner - Employee.EmployeeId + public virtual IEntityRelation EmployeeEntityUsingOwner + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Employee", false, new[] { EmployeeFields.EmployeeId, DocumentFields.Owner }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticDocumentRelations + { + internal static readonly IEntityRelation ProductDocumentEntityUsingDocumentNodeStatic = new DocumentRelations().ProductDocumentEntityUsingDocumentNode; + internal static readonly IEntityRelation EmployeeEntityUsingOwnerStatic = new DocumentRelations().EmployeeEntityUsingOwner; + + /// CTor + static StaticDocumentRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs new file mode 100644 index 00000000..58d40ef2 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/EmailAddressEntity.cs @@ -0,0 +1,237 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'EmailAddress'.

+ [Serializable] + public partial class EmailAddressEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private PersonEntity _person; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static EmailAddressEntityStaticMetaData _staticMetaData = new EmailAddressEntityStaticMetaData(); + private static EmailAddressRelations _relationsFactory = new EmailAddressRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Person + public static readonly string Person = "Person"; + } + + /// Static meta-data storage for navigator related information + protected class EmailAddressEntityStaticMetaData : EntityStaticMetaDataBase + { + public EmailAddressEntityStaticMetaData() + { + SetEntityCoreInfo("EmailAddressEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmailAddressEntity, typeof(EmailAddressEntity), typeof(EmailAddressEntityFactory), false); + AddNavigatorMetaData("Person", "EmailAddresses", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticEmailAddressRelations.PersonEntityUsingBusinessEntityIdStatic, ()=>new EmailAddressRelations().PersonEntityUsingBusinessEntityId, null, new int[] { (int)EmailAddressFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + } + } + + /// Static ctor + static EmailAddressEntity() + { + } + + /// CTor + public EmailAddressEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public EmailAddressEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this EmailAddressEntity + public EmailAddressEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for EmailAddress which data should be fetched into this EmailAddress object + /// PK value for EmailAddress which data should be fetched into this EmailAddress object + public EmailAddressEntity(System.Int32 businessEntityId, System.Int32 emailAddressId) : this(businessEntityId, emailAddressId, null) + { + } + + /// CTor + /// PK value for EmailAddress which data should be fetched into this EmailAddress object + /// PK value for EmailAddress which data should be fetched into this EmailAddress object + /// The custom validator object for this EmailAddressEntity + public EmailAddressEntity(System.Int32 businessEntityId, System.Int32 emailAddressId, IValidator validator) + { + InitClassEmpty(validator, null); + this.BusinessEntityId = businessEntityId; + this.EmailAddressId = emailAddressId; + } + + /// Private CTor for deserialization + /// + /// + protected EmailAddressEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this EmailAddressEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static EmailAddressRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// The BusinessEntityId property of the Entity EmailAddress

+ /// Mapped on table field: "EmailAddress"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 BusinessEntityId + { + get { return (System.Int32)GetValue((int)EmailAddressFieldIndex.BusinessEntityId, true); } + set { SetValue((int)EmailAddressFieldIndex.BusinessEntityId, value); } + } + + /// The EmailAddressId property of the Entity EmailAddress

+ /// Mapped on table field: "EmailAddress"."EmailAddressID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 EmailAddressId + { + get { return (System.Int32)GetValue((int)EmailAddressFieldIndex.EmailAddressId, true); } + set { SetValue((int)EmailAddressFieldIndex.EmailAddressId, value); } } + + /// The EmailAddressValue property of the Entity EmailAddress

+ /// Mapped on table field: "EmailAddress"."EmailAddress".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String EmailAddressValue + { + get { return (System.String)GetValue((int)EmailAddressFieldIndex.EmailAddressValue, true); } + set { SetValue((int)EmailAddressFieldIndex.EmailAddressValue, value); } + } + + /// The ModifiedDate property of the Entity EmailAddress

+ /// Mapped on table field: "EmailAddress"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)EmailAddressFieldIndex.ModifiedDate, true); } + set { SetValue((int)EmailAddressFieldIndex.ModifiedDate, value); } + } + + /// The Rowguid property of the Entity EmailAddress

+ /// Mapped on table field: "EmailAddress"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)EmailAddressFieldIndex.Rowguid, true); } + set { SetValue((int)EmailAddressFieldIndex.Rowguid, value); } + } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum EmailAddressFieldIndex + { + ///BusinessEntityId. + BusinessEntityId, + ///EmailAddressId. + EmailAddressId, + ///EmailAddressValue. + EmailAddressValue, + ///ModifiedDate. + ModifiedDate, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: EmailAddress. + public partial class EmailAddressRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between EmailAddressEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: EmailAddress.BusinessEntityId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Person", false, new[] { PersonFields.BusinessEntityId, EmailAddressFields.BusinessEntityId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticEmailAddressRelations + { + internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new EmailAddressRelations().PersonEntityUsingBusinessEntityId; + + /// CTor + static StaticEmailAddressRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs new file mode 100644 index 00000000..dc8b782a --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeDepartmentHistoryEntity.cs @@ -0,0 +1,308 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'EmployeeDepartmentHistory'.

+ [Serializable] + public partial class EmployeeDepartmentHistoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private DepartmentEntity _department; + private EmployeeEntity _employee; + private ShiftEntity _shift; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static EmployeeDepartmentHistoryEntityStaticMetaData _staticMetaData = new EmployeeDepartmentHistoryEntityStaticMetaData(); + private static EmployeeDepartmentHistoryRelations _relationsFactory = new EmployeeDepartmentHistoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Department + public static readonly string Department = "Department"; + /// Member name Employee + public static readonly string Employee = "Employee"; + /// Member name Shift + public static readonly string Shift = "Shift"; + } + + /// Static meta-data storage for navigator related information + protected class EmployeeDepartmentHistoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public EmployeeDepartmentHistoryEntityStaticMetaData() + { + SetEntityCoreInfo("EmployeeDepartmentHistoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeDepartmentHistoryEntity, typeof(EmployeeDepartmentHistoryEntity), typeof(EmployeeDepartmentHistoryEntityFactory), false); + AddNavigatorMetaData("Department", "EmployeeDepartmentHistories", (a, b) => a._department = b, a => a._department, (a, b) => a.Department = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticEmployeeDepartmentHistoryRelations.DepartmentEntityUsingDepartmentIdStatic, ()=>new EmployeeDepartmentHistoryRelations().DepartmentEntityUsingDepartmentId, null, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.DepartmentId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.DepartmentEntity); + AddNavigatorMetaData("Employee", "EmployeeDepartmentHistories", (a, b) => a._employee = b, a => a._employee, (a, b) => a.Employee = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticEmployeeDepartmentHistoryRelations.EmployeeEntityUsingEmployeeIdStatic, ()=>new EmployeeDepartmentHistoryRelations().EmployeeEntityUsingEmployeeId, null, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.EmployeeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity); + AddNavigatorMetaData("Shift", "EmployeeDepartmentHistories", (a, b) => a._shift = b, a => a._shift, (a, b) => a.Shift = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticEmployeeDepartmentHistoryRelations.ShiftEntityUsingShiftIdStatic, ()=>new EmployeeDepartmentHistoryRelations().ShiftEntityUsingShiftId, null, new int[] { (int)EmployeeDepartmentHistoryFieldIndex.ShiftId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ShiftEntity); + } + } + + /// Static ctor + static EmployeeDepartmentHistoryEntity() + { + } + + /// CTor + public EmployeeDepartmentHistoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public EmployeeDepartmentHistoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this EmployeeDepartmentHistoryEntity + public EmployeeDepartmentHistoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + public EmployeeDepartmentHistoryEntity(System.Int16 departmentId, System.Int32 employeeId, System.Byte shiftId, System.DateTime startDate) : this(departmentId, employeeId, shiftId, startDate, null) + { + } + + /// CTor + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + /// PK value for EmployeeDepartmentHistory which data should be fetched into this EmployeeDepartmentHistory object + /// The custom validator object for this EmployeeDepartmentHistoryEntity + public EmployeeDepartmentHistoryEntity(System.Int16 departmentId, System.Int32 employeeId, System.Byte shiftId, System.DateTime startDate, IValidator validator) + { + InitClassEmpty(validator, null); + this.DepartmentId = departmentId; + this.EmployeeId = employeeId; + this.ShiftId = shiftId; + this.StartDate = startDate; + } + + /// Private CTor for deserialization + /// + /// + protected EmployeeDepartmentHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Department' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoDepartment() { return CreateRelationInfoForNavigator("Department"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployee() { return CreateRelationInfoForNavigator("Employee"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Shift' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoShift() { return CreateRelationInfoForNavigator("Shift"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this EmployeeDepartmentHistoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static EmployeeDepartmentHistoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Department' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathDepartment { get { return _staticMetaData.GetPrefetchPathElement("Department", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployee { get { return _staticMetaData.GetPrefetchPathElement("Employee", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Shift' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathShift { get { return _staticMetaData.GetPrefetchPathElement("Shift", CommonEntityBase.CreateEntityCollection()); } } + + /// The DepartmentId property of the Entity EmployeeDepartmentHistory

+ /// Mapped on table field: "EmployeeDepartmentHistory"."DepartmentID".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int16 DepartmentId + { + get { return (System.Int16)GetValue((int)EmployeeDepartmentHistoryFieldIndex.DepartmentId, true); } + set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.DepartmentId, value); } + } + + /// The EmployeeId property of the Entity EmployeeDepartmentHistory

+ /// Mapped on table field: "EmployeeDepartmentHistory"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 EmployeeId + { + get { return (System.Int32)GetValue((int)EmployeeDepartmentHistoryFieldIndex.EmployeeId, true); } + set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.EmployeeId, value); } + } + + /// The EndDate property of the Entity EmployeeDepartmentHistory

+ /// Mapped on table field: "EmployeeDepartmentHistory"."EndDate".
Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable EndDate + { + get { return (Nullable)GetValue((int)EmployeeDepartmentHistoryFieldIndex.EndDate, false); } + set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.EndDate, value); } + } + + /// The ModifiedDate property of the Entity EmployeeDepartmentHistory

+ /// Mapped on table field: "EmployeeDepartmentHistory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)EmployeeDepartmentHistoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.ModifiedDate, value); } + } + + /// The ShiftId property of the Entity EmployeeDepartmentHistory

+ /// Mapped on table field: "EmployeeDepartmentHistory"."ShiftID".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Byte ShiftId + { + get { return (System.Byte)GetValue((int)EmployeeDepartmentHistoryFieldIndex.ShiftId, true); } + set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.ShiftId, value); } + } + + /// The StartDate property of the Entity EmployeeDepartmentHistory

+ /// Mapped on table field: "EmployeeDepartmentHistory"."StartDate".
Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.DateTime StartDate + { + get { return (System.DateTime)GetValue((int)EmployeeDepartmentHistoryFieldIndex.StartDate, true); } + set { SetValue((int)EmployeeDepartmentHistoryFieldIndex.StartDate, value); } + } + + /// Gets / sets related entity of type 'DepartmentEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual DepartmentEntity Department + { + get { return _department; } + set { SetSingleRelatedEntityNavigator(value, "Department"); } + } + + /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual EmployeeEntity Employee + { + get { return _employee; } + set { SetSingleRelatedEntityNavigator(value, "Employee"); } + } + + /// Gets / sets related entity of type 'ShiftEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ShiftEntity Shift + { + get { return _shift; } + set { SetSingleRelatedEntityNavigator(value, "Shift"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum EmployeeDepartmentHistoryFieldIndex + { + ///DepartmentId. + DepartmentId, + ///EmployeeId. + EmployeeId, + ///EndDate. + EndDate, + ///ModifiedDate. + ModifiedDate, + ///ShiftId. + ShiftId, + ///StartDate. + StartDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: EmployeeDepartmentHistory. + public partial class EmployeeDepartmentHistoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between EmployeeDepartmentHistoryEntity and DepartmentEntity over the m:1 relation they have, using the relation between the fields: EmployeeDepartmentHistory.DepartmentId - Department.DepartmentId + public virtual IEntityRelation DepartmentEntityUsingDepartmentId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Department", false, new[] { DepartmentFields.DepartmentId, EmployeeDepartmentHistoryFields.DepartmentId }); } + } + + /// Returns a new IEntityRelation object, between EmployeeDepartmentHistoryEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: EmployeeDepartmentHistory.EmployeeId - Employee.EmployeeId + public virtual IEntityRelation EmployeeEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Employee", false, new[] { EmployeeFields.EmployeeId, EmployeeDepartmentHistoryFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between EmployeeDepartmentHistoryEntity and ShiftEntity over the m:1 relation they have, using the relation between the fields: EmployeeDepartmentHistory.ShiftId - Shift.ShiftId + public virtual IEntityRelation ShiftEntityUsingShiftId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Shift", false, new[] { ShiftFields.ShiftId, EmployeeDepartmentHistoryFields.ShiftId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticEmployeeDepartmentHistoryRelations + { + internal static readonly IEntityRelation DepartmentEntityUsingDepartmentIdStatic = new EmployeeDepartmentHistoryRelations().DepartmentEntityUsingDepartmentId; + internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new EmployeeDepartmentHistoryRelations().EmployeeEntityUsingEmployeeId; + internal static readonly IEntityRelation ShiftEntityUsingShiftIdStatic = new EmployeeDepartmentHistoryRelations().ShiftEntityUsingShiftId; + + /// CTor + static StaticEmployeeDepartmentHistoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeEntity.cs new file mode 100644 index 00000000..758822ef --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeeEntity.cs @@ -0,0 +1,484 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Employee'.

+ [Serializable] + public partial class EmployeeEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _documents; + private EntityCollection _employeeDepartmentHistories; + private EntityCollection _employeePayHistories; + private EntityCollection _jobCandidates; + private EntityCollection _purchaseOrderHeaders; + private PersonEntity _person; + private SalesPersonEntity _salesPerson; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static EmployeeEntityStaticMetaData _staticMetaData = new EmployeeEntityStaticMetaData(); + private static EmployeeRelations _relationsFactory = new EmployeeRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Documents + public static readonly string Documents = "Documents"; + /// Member name EmployeeDepartmentHistories + public static readonly string EmployeeDepartmentHistories = "EmployeeDepartmentHistories"; + /// Member name EmployeePayHistories + public static readonly string EmployeePayHistories = "EmployeePayHistories"; + /// Member name JobCandidates + public static readonly string JobCandidates = "JobCandidates"; + /// Member name PurchaseOrderHeaders + public static readonly string PurchaseOrderHeaders = "PurchaseOrderHeaders"; + /// Member name Person + public static readonly string Person = "Person"; + /// Member name SalesPerson + public static readonly string SalesPerson = "SalesPerson"; + } + + /// Static meta-data storage for navigator related information + protected class EmployeeEntityStaticMetaData : EntityStaticMetaDataBase + { + public EmployeeEntityStaticMetaData() + { + SetEntityCoreInfo("EmployeeEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity, typeof(EmployeeEntity), typeof(EmployeeEntityFactory), false); + AddNavigatorMetaData>("Documents", a => a._documents, (a, b) => a._documents = b, a => a.Documents, () => new EmployeeRelations().DocumentEntityUsingOwner, typeof(DocumentEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.DocumentEntity); + AddNavigatorMetaData>("EmployeeDepartmentHistories", a => a._employeeDepartmentHistories, (a, b) => a._employeeDepartmentHistories = b, a => a.EmployeeDepartmentHistories, () => new EmployeeRelations().EmployeeDepartmentHistoryEntityUsingEmployeeId, typeof(EmployeeDepartmentHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeDepartmentHistoryEntity); + AddNavigatorMetaData>("EmployeePayHistories", a => a._employeePayHistories, (a, b) => a._employeePayHistories = b, a => a.EmployeePayHistories, () => new EmployeeRelations().EmployeePayHistoryEntityUsingEmployeeId, typeof(EmployeePayHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeePayHistoryEntity); + AddNavigatorMetaData>("JobCandidates", a => a._jobCandidates, (a, b) => a._jobCandidates = b, a => a.JobCandidates, () => new EmployeeRelations().JobCandidateEntityUsingEmployeeId, typeof(JobCandidateEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.JobCandidateEntity); + AddNavigatorMetaData>("PurchaseOrderHeaders", a => a._purchaseOrderHeaders, (a, b) => a._purchaseOrderHeaders = b, a => a.PurchaseOrderHeaders, () => new EmployeeRelations().PurchaseOrderHeaderEntityUsingEmployeeId, typeof(PurchaseOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity); + AddNavigatorMetaData("Person", "Employee", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticEmployeeRelations.PersonEntityUsingEmployeeIdStatic, ()=>new EmployeeRelations().PersonEntityUsingEmployeeId, null, new int[] { (int)EmployeeFieldIndex.EmployeeId }, null, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + AddNavigatorMetaData("SalesPerson", "Employee", (a, b) => a._salesPerson = b, a => a._salesPerson, (a, b) => a.SalesPerson = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticEmployeeRelations.SalesPersonEntityUsingSalesPersonIdStatic, ()=>new EmployeeRelations().SalesPersonEntityUsingSalesPersonId, null, new int[] { (int)EmployeeFieldIndex.EmployeeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity); + } + } + + /// Static ctor + static EmployeeEntity() + { + } + + /// CTor + public EmployeeEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public EmployeeEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this EmployeeEntity + public EmployeeEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Employee which data should be fetched into this Employee object + public EmployeeEntity(System.Int32 employeeId) : this(employeeId, null) + { + } + + /// CTor + /// PK value for Employee which data should be fetched into this Employee object + /// The custom validator object for this EmployeeEntity + public EmployeeEntity(System.Int32 employeeId, IValidator validator) + { + InitClassEmpty(validator, null); + this.EmployeeId = employeeId; + } + + /// Private CTor for deserialization + /// + /// + protected EmployeeEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Document' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoDocuments() { return CreateRelationInfoForNavigator("Documents"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeeDepartmentHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployeeDepartmentHistories() { return CreateRelationInfoForNavigator("EmployeeDepartmentHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeePayHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployeePayHistories() { return CreateRelationInfoForNavigator("EmployeePayHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'JobCandidate' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoJobCandidates() { return CreateRelationInfoForNavigator("JobCandidates"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeaders() { return CreateRelationInfoForNavigator("PurchaseOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() { return CreateRelationInfoForNavigator("SalesPerson"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this EmployeeEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static EmployeeRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Document' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathDocuments { get { return _staticMetaData.GetPrefetchPathElement("Documents", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeeDepartmentHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployeeDepartmentHistories { get { return _staticMetaData.GetPrefetchPathElement("EmployeeDepartmentHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeePayHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployeePayHistories { get { return _staticMetaData.GetPrefetchPathElement("EmployeePayHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'JobCandidate' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathJobCandidates { get { return _staticMetaData.GetPrefetchPathElement("JobCandidates", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("PurchaseOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesPerson { get { return _staticMetaData.GetPrefetchPathElement("SalesPerson", CommonEntityBase.CreateEntityCollection()); } } + + /// The BirthDate property of the Entity Employee

+ /// Mapped on table field: "Employee"."BirthDate".
Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime BirthDate + { + get { return (System.DateTime)GetValue((int)EmployeeFieldIndex.BirthDate, true); } + set { SetValue((int)EmployeeFieldIndex.BirthDate, value); } + } + + /// The CurrentFlag property of the Entity Employee

+ /// Mapped on table field: "Employee"."CurrentFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean CurrentFlag + { + get { return (System.Boolean)GetValue((int)EmployeeFieldIndex.CurrentFlag, true); } + set { SetValue((int)EmployeeFieldIndex.CurrentFlag, value); } + } + + /// The EmployeeId property of the Entity Employee

+ /// Mapped on table field: "Employee"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 EmployeeId + { + get { return (System.Int32)GetValue((int)EmployeeFieldIndex.EmployeeId, true); } + set { SetValue((int)EmployeeFieldIndex.EmployeeId, value); } } + + /// The Gender property of the Entity Employee

+ /// Mapped on table field: "Employee"."Gender".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Gender + { + get { return (System.String)GetValue((int)EmployeeFieldIndex.Gender, true); } + set { SetValue((int)EmployeeFieldIndex.Gender, value); } + } + + /// The HireDate property of the Entity Employee

+ /// Mapped on table field: "Employee"."HireDate".
Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime HireDate + { + get { return (System.DateTime)GetValue((int)EmployeeFieldIndex.HireDate, true); } + set { SetValue((int)EmployeeFieldIndex.HireDate, value); } + } + + /// The LoginId property of the Entity Employee

+ /// Mapped on table field: "Employee"."LoginID".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 256.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String LoginId + { + get { return (System.String)GetValue((int)EmployeeFieldIndex.LoginId, true); } + set { SetValue((int)EmployeeFieldIndex.LoginId, value); } + } + + /// The MaritalStatus property of the Entity Employee

+ /// Mapped on table field: "Employee"."MaritalStatus".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String MaritalStatus + { + get { return (System.String)GetValue((int)EmployeeFieldIndex.MaritalStatus, true); } + set { SetValue((int)EmployeeFieldIndex.MaritalStatus, value); } + } + + /// The ModifiedDate property of the Entity Employee

+ /// Mapped on table field: "Employee"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)EmployeeFieldIndex.ModifiedDate, true); } + set { SetValue((int)EmployeeFieldIndex.ModifiedDate, value); } + } + + /// The NationalIdnumber property of the Entity Employee

+ /// Mapped on table field: "Employee"."NationalIDNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String NationalIdnumber + { + get { return (System.String)GetValue((int)EmployeeFieldIndex.NationalIdnumber, true); } + set { SetValue((int)EmployeeFieldIndex.NationalIdnumber, value); } + } + + /// The OrganizationLevel property of the Entity Employee

+ /// Mapped on table field: "Employee"."OrganizationLevel".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable OrganizationLevel + { + get { return (Nullable)GetValue((int)EmployeeFieldIndex.OrganizationLevel, false); } + } + + /// The OrganizationNode property of the Entity Employee

+ /// Mapped on table field: "Employee"."OrganizationNode".
Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 892.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String OrganizationNode + { + get { return (System.String)GetValue((int)EmployeeFieldIndex.OrganizationNode, true); } + set { SetValue((int)EmployeeFieldIndex.OrganizationNode, value); } + } + + /// The Rowguid property of the Entity Employee

+ /// Mapped on table field: "Employee"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)EmployeeFieldIndex.Rowguid, true); } + set { SetValue((int)EmployeeFieldIndex.Rowguid, value); } + } + + /// The SalariedFlag property of the Entity Employee

+ /// Mapped on table field: "Employee"."SalariedFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean SalariedFlag + { + get { return (System.Boolean)GetValue((int)EmployeeFieldIndex.SalariedFlag, true); } + set { SetValue((int)EmployeeFieldIndex.SalariedFlag, value); } + } + + /// The SickLeaveHours property of the Entity Employee

+ /// Mapped on table field: "Employee"."SickLeaveHours".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 SickLeaveHours + { + get { return (System.Int16)GetValue((int)EmployeeFieldIndex.SickLeaveHours, true); } + set { SetValue((int)EmployeeFieldIndex.SickLeaveHours, value); } + } + + /// The Title property of the Entity Employee

+ /// Mapped on table field: "Employee"."JobTitle".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Title + { + get { return (System.String)GetValue((int)EmployeeFieldIndex.Title, true); } + set { SetValue((int)EmployeeFieldIndex.Title, value); } + } + + /// The VacationHours property of the Entity Employee

+ /// Mapped on table field: "Employee"."VacationHours".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 VacationHours + { + get { return (System.Int16)GetValue((int)EmployeeFieldIndex.VacationHours, true); } + set { SetValue((int)EmployeeFieldIndex.VacationHours, value); } + } + + /// Gets the EntityCollection with the related entities of type 'DocumentEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(DocumentEntity))] + public virtual EntityCollection Documents { get { return GetOrCreateEntityCollection("Employee", true, false, ref _documents); } } + + /// Gets the EntityCollection with the related entities of type 'EmployeeDepartmentHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(EmployeeDepartmentHistoryEntity))] + public virtual EntityCollection EmployeeDepartmentHistories { get { return GetOrCreateEntityCollection("Employee", true, false, ref _employeeDepartmentHistories); } } + + /// Gets the EntityCollection with the related entities of type 'EmployeePayHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(EmployeePayHistoryEntity))] + public virtual EntityCollection EmployeePayHistories { get { return GetOrCreateEntityCollection("Employee", true, false, ref _employeePayHistories); } } + + /// Gets the EntityCollection with the related entities of type 'JobCandidateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(JobCandidateEntity))] + public virtual EntityCollection JobCandidates { get { return GetOrCreateEntityCollection("Employee", true, false, ref _jobCandidates); } } + + /// Gets the EntityCollection with the related entities of type 'PurchaseOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(PurchaseOrderHeaderEntity))] + public virtual EntityCollection PurchaseOrderHeaders { get { return GetOrCreateEntityCollection("Employee", true, false, ref _purchaseOrderHeaders); } } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual SalesPersonEntity SalesPerson + { + get { return _salesPerson; } + set { SetSingleRelatedEntityNavigator(value, "SalesPerson"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum EmployeeFieldIndex + { + ///BirthDate. + BirthDate, + ///CurrentFlag. + CurrentFlag, + ///EmployeeId. + EmployeeId, + ///Gender. + Gender, + ///HireDate. + HireDate, + ///LoginId. + LoginId, + ///MaritalStatus. + MaritalStatus, + ///ModifiedDate. + ModifiedDate, + ///NationalIdnumber. + NationalIdnumber, + ///OrganizationLevel. + OrganizationLevel, + ///OrganizationNode. + OrganizationNode, + ///Rowguid. + Rowguid, + ///SalariedFlag. + SalariedFlag, + ///SickLeaveHours. + SickLeaveHours, + ///Title. + Title, + ///VacationHours. + VacationHours, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Employee. + public partial class EmployeeRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between EmployeeEntity and DocumentEntity over the 1:n relation they have, using the relation between the fields: Employee.EmployeeId - Document.Owner + public virtual IEntityRelation DocumentEntityUsingOwner + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Documents", true, new[] { EmployeeFields.EmployeeId, DocumentFields.Owner }); } + } + + /// Returns a new IEntityRelation object, between EmployeeEntity and EmployeeDepartmentHistoryEntity over the 1:n relation they have, using the relation between the fields: Employee.EmployeeId - EmployeeDepartmentHistory.EmployeeId + public virtual IEntityRelation EmployeeDepartmentHistoryEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "EmployeeDepartmentHistories", true, new[] { EmployeeFields.EmployeeId, EmployeeDepartmentHistoryFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between EmployeeEntity and EmployeePayHistoryEntity over the 1:n relation they have, using the relation between the fields: Employee.EmployeeId - EmployeePayHistory.EmployeeId + public virtual IEntityRelation EmployeePayHistoryEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "EmployeePayHistories", true, new[] { EmployeeFields.EmployeeId, EmployeePayHistoryFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between EmployeeEntity and JobCandidateEntity over the 1:n relation they have, using the relation between the fields: Employee.EmployeeId - JobCandidate.EmployeeId + public virtual IEntityRelation JobCandidateEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "JobCandidates", true, new[] { EmployeeFields.EmployeeId, JobCandidateFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between EmployeeEntity and PurchaseOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: Employee.EmployeeId - PurchaseOrderHeader.EmployeeId + public virtual IEntityRelation PurchaseOrderHeaderEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "PurchaseOrderHeaders", true, new[] { EmployeeFields.EmployeeId, PurchaseOrderHeaderFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between EmployeeEntity and PersonEntity over the 1:1 relation they have, using the relation between the fields: Employee.EmployeeId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Person", false, new[] { PersonFields.BusinessEntityId, EmployeeFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between EmployeeEntity and SalesPersonEntity over the 1:1 relation they have, using the relation between the fields: Employee.EmployeeId - SalesPerson.SalesPersonId + public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "SalesPerson", true, new[] { EmployeeFields.EmployeeId, SalesPersonFields.SalesPersonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticEmployeeRelations + { + internal static readonly IEntityRelation DocumentEntityUsingOwnerStatic = new EmployeeRelations().DocumentEntityUsingOwner; + internal static readonly IEntityRelation EmployeeDepartmentHistoryEntityUsingEmployeeIdStatic = new EmployeeRelations().EmployeeDepartmentHistoryEntityUsingEmployeeId; + internal static readonly IEntityRelation EmployeePayHistoryEntityUsingEmployeeIdStatic = new EmployeeRelations().EmployeePayHistoryEntityUsingEmployeeId; + internal static readonly IEntityRelation JobCandidateEntityUsingEmployeeIdStatic = new EmployeeRelations().JobCandidateEntityUsingEmployeeId; + internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingEmployeeIdStatic = new EmployeeRelations().PurchaseOrderHeaderEntityUsingEmployeeId; + internal static readonly IEntityRelation PersonEntityUsingEmployeeIdStatic = new EmployeeRelations().PersonEntityUsingEmployeeId; + internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new EmployeeRelations().SalesPersonEntityUsingSalesPersonId; + + /// CTor + static StaticEmployeeRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs new file mode 100644 index 00000000..b6e5212e --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/EmployeePayHistoryEntity.cs @@ -0,0 +1,238 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'EmployeePayHistory'.

+ [Serializable] + public partial class EmployeePayHistoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EmployeeEntity _employee; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static EmployeePayHistoryEntityStaticMetaData _staticMetaData = new EmployeePayHistoryEntityStaticMetaData(); + private static EmployeePayHistoryRelations _relationsFactory = new EmployeePayHistoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Employee + public static readonly string Employee = "Employee"; + } + + /// Static meta-data storage for navigator related information + protected class EmployeePayHistoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public EmployeePayHistoryEntityStaticMetaData() + { + SetEntityCoreInfo("EmployeePayHistoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeePayHistoryEntity, typeof(EmployeePayHistoryEntity), typeof(EmployeePayHistoryEntityFactory), false); + AddNavigatorMetaData("Employee", "EmployeePayHistories", (a, b) => a._employee = b, a => a._employee, (a, b) => a.Employee = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticEmployeePayHistoryRelations.EmployeeEntityUsingEmployeeIdStatic, ()=>new EmployeePayHistoryRelations().EmployeeEntityUsingEmployeeId, null, new int[] { (int)EmployeePayHistoryFieldIndex.EmployeeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity); + } + } + + /// Static ctor + static EmployeePayHistoryEntity() + { + } + + /// CTor + public EmployeePayHistoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public EmployeePayHistoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this EmployeePayHistoryEntity + public EmployeePayHistoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object + /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object + public EmployeePayHistoryEntity(System.Int32 employeeId, System.DateTime rateChangeDate) : this(employeeId, rateChangeDate, null) + { + } + + /// CTor + /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object + /// PK value for EmployeePayHistory which data should be fetched into this EmployeePayHistory object + /// The custom validator object for this EmployeePayHistoryEntity + public EmployeePayHistoryEntity(System.Int32 employeeId, System.DateTime rateChangeDate, IValidator validator) + { + InitClassEmpty(validator, null); + this.EmployeeId = employeeId; + this.RateChangeDate = rateChangeDate; + } + + /// Private CTor for deserialization + /// + /// + protected EmployeePayHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployee() { return CreateRelationInfoForNavigator("Employee"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this EmployeePayHistoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static EmployeePayHistoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployee { get { return _staticMetaData.GetPrefetchPathElement("Employee", CommonEntityBase.CreateEntityCollection()); } } + + /// The EmployeeId property of the Entity EmployeePayHistory

+ /// Mapped on table field: "EmployeePayHistory"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 EmployeeId + { + get { return (System.Int32)GetValue((int)EmployeePayHistoryFieldIndex.EmployeeId, true); } + set { SetValue((int)EmployeePayHistoryFieldIndex.EmployeeId, value); } + } + + /// The ModifiedDate property of the Entity EmployeePayHistory

+ /// Mapped on table field: "EmployeePayHistory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)EmployeePayHistoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)EmployeePayHistoryFieldIndex.ModifiedDate, value); } + } + + /// The PayFrequency property of the Entity EmployeePayHistory

+ /// Mapped on table field: "EmployeePayHistory"."PayFrequency".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte PayFrequency + { + get { return (System.Byte)GetValue((int)EmployeePayHistoryFieldIndex.PayFrequency, true); } + set { SetValue((int)EmployeePayHistoryFieldIndex.PayFrequency, value); } + } + + /// The Rate property of the Entity EmployeePayHistory

+ /// Mapped on table field: "EmployeePayHistory"."Rate".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal Rate + { + get { return (System.Decimal)GetValue((int)EmployeePayHistoryFieldIndex.Rate, true); } + set { SetValue((int)EmployeePayHistoryFieldIndex.Rate, value); } + } + + /// The RateChangeDate property of the Entity EmployeePayHistory

+ /// Mapped on table field: "EmployeePayHistory"."RateChangeDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.DateTime RateChangeDate + { + get { return (System.DateTime)GetValue((int)EmployeePayHistoryFieldIndex.RateChangeDate, true); } + set { SetValue((int)EmployeePayHistoryFieldIndex.RateChangeDate, value); } + } + + /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual EmployeeEntity Employee + { + get { return _employee; } + set { SetSingleRelatedEntityNavigator(value, "Employee"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum EmployeePayHistoryFieldIndex + { + ///EmployeeId. + EmployeeId, + ///ModifiedDate. + ModifiedDate, + ///PayFrequency. + PayFrequency, + ///Rate. + Rate, + ///RateChangeDate. + RateChangeDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: EmployeePayHistory. + public partial class EmployeePayHistoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between EmployeePayHistoryEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: EmployeePayHistory.EmployeeId - Employee.EmployeeId + public virtual IEntityRelation EmployeeEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Employee", false, new[] { EmployeeFields.EmployeeId, EmployeePayHistoryFields.EmployeeId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticEmployeePayHistoryRelations + { + internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new EmployeePayHistoryRelations().EmployeeEntityUsingEmployeeId; + + /// CTor + static StaticEmployeePayHistoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/IllustrationEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/IllustrationEntity.cs new file mode 100644 index 00000000..8e099753 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/IllustrationEntity.cs @@ -0,0 +1,209 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Illustration'.

+ [Serializable] + public partial class IllustrationEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productModelIllustrations; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static IllustrationEntityStaticMetaData _staticMetaData = new IllustrationEntityStaticMetaData(); + private static IllustrationRelations _relationsFactory = new IllustrationRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductModelIllustrations + public static readonly string ProductModelIllustrations = "ProductModelIllustrations"; + } + + /// Static meta-data storage for navigator related information + protected class IllustrationEntityStaticMetaData : EntityStaticMetaDataBase + { + public IllustrationEntityStaticMetaData() + { + SetEntityCoreInfo("IllustrationEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.IllustrationEntity, typeof(IllustrationEntity), typeof(IllustrationEntityFactory), false); + AddNavigatorMetaData>("ProductModelIllustrations", a => a._productModelIllustrations, (a, b) => a._productModelIllustrations = b, a => a.ProductModelIllustrations, () => new IllustrationRelations().ProductModelIllustrationEntityUsingIllustrationId, typeof(ProductModelIllustrationEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelIllustrationEntity); + } + } + + /// Static ctor + static IllustrationEntity() + { + } + + /// CTor + public IllustrationEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public IllustrationEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this IllustrationEntity + public IllustrationEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Illustration which data should be fetched into this Illustration object + public IllustrationEntity(System.Int32 illustrationId) : this(illustrationId, null) + { + } + + /// CTor + /// PK value for Illustration which data should be fetched into this Illustration object + /// The custom validator object for this IllustrationEntity + public IllustrationEntity(System.Int32 illustrationId, IValidator validator) + { + InitClassEmpty(validator, null); + this.IllustrationId = illustrationId; + } + + /// Private CTor for deserialization + /// + /// + protected IllustrationEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelIllustration' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModelIllustrations() { return CreateRelationInfoForNavigator("ProductModelIllustrations"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this IllustrationEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static IllustrationRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelIllustration' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModelIllustrations { get { return _staticMetaData.GetPrefetchPathElement("ProductModelIllustrations", CommonEntityBase.CreateEntityCollection()); } } + + /// The Diagram property of the Entity Illustration

+ /// Mapped on table field: "Illustration"."Diagram".
Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Diagram + { + get { return (System.String)GetValue((int)IllustrationFieldIndex.Diagram, true); } + set { SetValue((int)IllustrationFieldIndex.Diagram, value); } + } + + /// The IllustrationId property of the Entity Illustration

+ /// Mapped on table field: "Illustration"."IllustrationID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 IllustrationId + { + get { return (System.Int32)GetValue((int)IllustrationFieldIndex.IllustrationId, true); } + set { SetValue((int)IllustrationFieldIndex.IllustrationId, value); } } + + /// The ModifiedDate property of the Entity Illustration

+ /// Mapped on table field: "Illustration"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)IllustrationFieldIndex.ModifiedDate, true); } + set { SetValue((int)IllustrationFieldIndex.ModifiedDate, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductModelIllustrationEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductModelIllustrationEntity))] + public virtual EntityCollection ProductModelIllustrations { get { return GetOrCreateEntityCollection("Illustration", true, false, ref _productModelIllustrations); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum IllustrationFieldIndex + { + ///Diagram. + Diagram, + ///IllustrationId. + IllustrationId, + ///ModifiedDate. + ModifiedDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Illustration. + public partial class IllustrationRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between IllustrationEntity and ProductModelIllustrationEntity over the 1:n relation they have, using the relation between the fields: Illustration.IllustrationId - ProductModelIllustration.IllustrationId + public virtual IEntityRelation ProductModelIllustrationEntityUsingIllustrationId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductModelIllustrations", true, new[] { IllustrationFields.IllustrationId, ProductModelIllustrationFields.IllustrationId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticIllustrationRelations + { + internal static readonly IEntityRelation ProductModelIllustrationEntityUsingIllustrationIdStatic = new IllustrationRelations().ProductModelIllustrationEntityUsingIllustrationId; + + /// CTor + static StaticIllustrationRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs new file mode 100644 index 00000000..7766a8bf --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/JobCandidateEntity.cs @@ -0,0 +1,224 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'JobCandidate'.

+ [Serializable] + public partial class JobCandidateEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EmployeeEntity _employee; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static JobCandidateEntityStaticMetaData _staticMetaData = new JobCandidateEntityStaticMetaData(); + private static JobCandidateRelations _relationsFactory = new JobCandidateRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Employee + public static readonly string Employee = "Employee"; + } + + /// Static meta-data storage for navigator related information + protected class JobCandidateEntityStaticMetaData : EntityStaticMetaDataBase + { + public JobCandidateEntityStaticMetaData() + { + SetEntityCoreInfo("JobCandidateEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.JobCandidateEntity, typeof(JobCandidateEntity), typeof(JobCandidateEntityFactory), false); + AddNavigatorMetaData("Employee", "JobCandidates", (a, b) => a._employee = b, a => a._employee, (a, b) => a.Employee = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticJobCandidateRelations.EmployeeEntityUsingEmployeeIdStatic, ()=>new JobCandidateRelations().EmployeeEntityUsingEmployeeId, null, new int[] { (int)JobCandidateFieldIndex.EmployeeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity); + } + } + + /// Static ctor + static JobCandidateEntity() + { + } + + /// CTor + public JobCandidateEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public JobCandidateEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this JobCandidateEntity + public JobCandidateEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for JobCandidate which data should be fetched into this JobCandidate object + public JobCandidateEntity(System.Int32 jobCandidateId) : this(jobCandidateId, null) + { + } + + /// CTor + /// PK value for JobCandidate which data should be fetched into this JobCandidate object + /// The custom validator object for this JobCandidateEntity + public JobCandidateEntity(System.Int32 jobCandidateId, IValidator validator) + { + InitClassEmpty(validator, null); + this.JobCandidateId = jobCandidateId; + } + + /// Private CTor for deserialization + /// + /// + protected JobCandidateEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployee() { return CreateRelationInfoForNavigator("Employee"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this JobCandidateEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static JobCandidateRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployee { get { return _staticMetaData.GetPrefetchPathElement("Employee", CommonEntityBase.CreateEntityCollection()); } } + + /// The EmployeeId property of the Entity JobCandidate

+ /// Mapped on table field: "JobCandidate"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable EmployeeId + { + get { return (Nullable)GetValue((int)JobCandidateFieldIndex.EmployeeId, false); } + set { SetValue((int)JobCandidateFieldIndex.EmployeeId, value); } + } + + /// The JobCandidateId property of the Entity JobCandidate

+ /// Mapped on table field: "JobCandidate"."JobCandidateID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 JobCandidateId + { + get { return (System.Int32)GetValue((int)JobCandidateFieldIndex.JobCandidateId, true); } + set { SetValue((int)JobCandidateFieldIndex.JobCandidateId, value); } } + + /// The ModifiedDate property of the Entity JobCandidate

+ /// Mapped on table field: "JobCandidate"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)JobCandidateFieldIndex.ModifiedDate, true); } + set { SetValue((int)JobCandidateFieldIndex.ModifiedDate, value); } + } + + /// The Resume property of the Entity JobCandidate

+ /// Mapped on table field: "JobCandidate"."Resume".
Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Resume + { + get { return (System.String)GetValue((int)JobCandidateFieldIndex.Resume, true); } + set { SetValue((int)JobCandidateFieldIndex.Resume, value); } + } + + /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual EmployeeEntity Employee + { + get { return _employee; } + set { SetSingleRelatedEntityNavigator(value, "Employee"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum JobCandidateFieldIndex + { + ///EmployeeId. + EmployeeId, + ///JobCandidateId. + JobCandidateId, + ///ModifiedDate. + ModifiedDate, + ///Resume. + Resume, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: JobCandidate. + public partial class JobCandidateRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between JobCandidateEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: JobCandidate.EmployeeId - Employee.EmployeeId + public virtual IEntityRelation EmployeeEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Employee", false, new[] { EmployeeFields.EmployeeId, JobCandidateFields.EmployeeId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticJobCandidateRelations + { + internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new JobCandidateRelations().EmployeeEntityUsingEmployeeId; + + /// CTor + static StaticJobCandidateRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/LocationEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/LocationEntity.cs new file mode 100644 index 00000000..8d18f887 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/LocationEntity.cs @@ -0,0 +1,252 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Location'.

+ [Serializable] + public partial class LocationEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productInventories; + private EntityCollection _workOrderRoutings; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static LocationEntityStaticMetaData _staticMetaData = new LocationEntityStaticMetaData(); + private static LocationRelations _relationsFactory = new LocationRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductInventories + public static readonly string ProductInventories = "ProductInventories"; + /// Member name WorkOrderRoutings + public static readonly string WorkOrderRoutings = "WorkOrderRoutings"; + } + + /// Static meta-data storage for navigator related information + protected class LocationEntityStaticMetaData : EntityStaticMetaDataBase + { + public LocationEntityStaticMetaData() + { + SetEntityCoreInfo("LocationEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.LocationEntity, typeof(LocationEntity), typeof(LocationEntityFactory), false); + AddNavigatorMetaData>("ProductInventories", a => a._productInventories, (a, b) => a._productInventories = b, a => a.ProductInventories, () => new LocationRelations().ProductInventoryEntityUsingLocationId, typeof(ProductInventoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductInventoryEntity); + AddNavigatorMetaData>("WorkOrderRoutings", a => a._workOrderRoutings, (a, b) => a._workOrderRoutings = b, a => a.WorkOrderRoutings, () => new LocationRelations().WorkOrderRoutingEntityUsingLocationId, typeof(WorkOrderRoutingEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderRoutingEntity); + } + } + + /// Static ctor + static LocationEntity() + { + } + + /// CTor + public LocationEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public LocationEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this LocationEntity + public LocationEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Location which data should be fetched into this Location object + public LocationEntity(System.Int16 locationId) : this(locationId, null) + { + } + + /// CTor + /// PK value for Location which data should be fetched into this Location object + /// The custom validator object for this LocationEntity + public LocationEntity(System.Int16 locationId, IValidator validator) + { + InitClassEmpty(validator, null); + this.LocationId = locationId; + } + + /// Private CTor for deserialization + /// + /// + protected LocationEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductInventory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductInventories() { return CreateRelationInfoForNavigator("ProductInventories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrderRouting' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoWorkOrderRoutings() { return CreateRelationInfoForNavigator("WorkOrderRoutings"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this LocationEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static LocationRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductInventory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductInventories { get { return _staticMetaData.GetPrefetchPathElement("ProductInventories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrderRouting' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathWorkOrderRoutings { get { return _staticMetaData.GetPrefetchPathElement("WorkOrderRoutings", CommonEntityBase.CreateEntityCollection()); } } + + /// The Availability property of the Entity Location

+ /// Mapped on table field: "Location"."Availability".
Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal Availability + { + get { return (System.Decimal)GetValue((int)LocationFieldIndex.Availability, true); } + set { SetValue((int)LocationFieldIndex.Availability, value); } + } + + /// The CostRate property of the Entity Location

+ /// Mapped on table field: "Location"."CostRate".
Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal CostRate + { + get { return (System.Decimal)GetValue((int)LocationFieldIndex.CostRate, true); } + set { SetValue((int)LocationFieldIndex.CostRate, value); } + } + + /// The LocationId property of the Entity Location

+ /// Mapped on table field: "Location"."LocationID".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int16 LocationId + { + get { return (System.Int16)GetValue((int)LocationFieldIndex.LocationId, true); } + set { SetValue((int)LocationFieldIndex.LocationId, value); } } + + /// The ModifiedDate property of the Entity Location

+ /// Mapped on table field: "Location"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)LocationFieldIndex.ModifiedDate, true); } + set { SetValue((int)LocationFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Location

+ /// Mapped on table field: "Location"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)LocationFieldIndex.Name, true); } + set { SetValue((int)LocationFieldIndex.Name, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductInventoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductInventoryEntity))] + public virtual EntityCollection ProductInventories { get { return GetOrCreateEntityCollection("Location", true, false, ref _productInventories); } } + + /// Gets the EntityCollection with the related entities of type 'WorkOrderRoutingEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(WorkOrderRoutingEntity))] + public virtual EntityCollection WorkOrderRoutings { get { return GetOrCreateEntityCollection("Location", true, false, ref _workOrderRoutings); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum LocationFieldIndex + { + ///Availability. + Availability, + ///CostRate. + CostRate, + ///LocationId. + LocationId, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Location. + public partial class LocationRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between LocationEntity and ProductInventoryEntity over the 1:n relation they have, using the relation between the fields: Location.LocationId - ProductInventory.LocationId + public virtual IEntityRelation ProductInventoryEntityUsingLocationId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductInventories", true, new[] { LocationFields.LocationId, ProductInventoryFields.LocationId }); } + } + + /// Returns a new IEntityRelation object, between LocationEntity and WorkOrderRoutingEntity over the 1:n relation they have, using the relation between the fields: Location.LocationId - WorkOrderRouting.LocationId + public virtual IEntityRelation WorkOrderRoutingEntityUsingLocationId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "WorkOrderRoutings", true, new[] { LocationFields.LocationId, WorkOrderRoutingFields.LocationId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticLocationRelations + { + internal static readonly IEntityRelation ProductInventoryEntityUsingLocationIdStatic = new LocationRelations().ProductInventoryEntityUsingLocationId; + internal static readonly IEntityRelation WorkOrderRoutingEntityUsingLocationIdStatic = new LocationRelations().WorkOrderRoutingEntityUsingLocationId; + + /// CTor + static StaticLocationRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/PasswordEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/PasswordEntity.cs new file mode 100644 index 00000000..e2d9874c --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/PasswordEntity.cs @@ -0,0 +1,235 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Password'.

+ [Serializable] + public partial class PasswordEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private PersonEntity _person; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static PasswordEntityStaticMetaData _staticMetaData = new PasswordEntityStaticMetaData(); + private static PasswordRelations _relationsFactory = new PasswordRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Person + public static readonly string Person = "Person"; + } + + /// Static meta-data storage for navigator related information + protected class PasswordEntityStaticMetaData : EntityStaticMetaDataBase + { + public PasswordEntityStaticMetaData() + { + SetEntityCoreInfo("PasswordEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PasswordEntity, typeof(PasswordEntity), typeof(PasswordEntityFactory), false); + AddNavigatorMetaData("Person", "Password", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPasswordRelations.PersonEntityUsingBusinessEntityIdStatic, ()=>new PasswordRelations().PersonEntityUsingBusinessEntityId, null, new int[] { (int)PasswordFieldIndex.BusinessEntityId }, null, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + } + } + + /// Static ctor + static PasswordEntity() + { + } + + /// CTor + public PasswordEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public PasswordEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this PasswordEntity + public PasswordEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Password which data should be fetched into this Password object + public PasswordEntity(System.Int32 businessEntityId) : this(businessEntityId, null) + { + } + + /// CTor + /// PK value for Password which data should be fetched into this Password object + /// The custom validator object for this PasswordEntity + public PasswordEntity(System.Int32 businessEntityId, IValidator validator) + { + InitClassEmpty(validator, null); + this.BusinessEntityId = businessEntityId; + } + + /// Private CTor for deserialization + /// + /// + protected PasswordEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this PasswordEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static PasswordRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// The BusinessEntityId property of the Entity Password

+ /// Mapped on table field: "Password"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 BusinessEntityId + { + get { return (System.Int32)GetValue((int)PasswordFieldIndex.BusinessEntityId, true); } + set { SetValue((int)PasswordFieldIndex.BusinessEntityId, value); } + } + + /// The ModifiedDate property of the Entity Password

+ /// Mapped on table field: "Password"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)PasswordFieldIndex.ModifiedDate, true); } + set { SetValue((int)PasswordFieldIndex.ModifiedDate, value); } + } + + /// The PasswordHash property of the Entity Password

+ /// Mapped on table field: "Password"."PasswordHash".
Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 128.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String PasswordHash + { + get { return (System.String)GetValue((int)PasswordFieldIndex.PasswordHash, true); } + set { SetValue((int)PasswordFieldIndex.PasswordHash, value); } + } + + /// The PasswordSalt property of the Entity Password

+ /// Mapped on table field: "Password"."PasswordSalt".
Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 10.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String PasswordSalt + { + get { return (System.String)GetValue((int)PasswordFieldIndex.PasswordSalt, true); } + set { SetValue((int)PasswordFieldIndex.PasswordSalt, value); } + } + + /// The Rowguid property of the Entity Password

+ /// Mapped on table field: "Password"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)PasswordFieldIndex.Rowguid, true); } + set { SetValue((int)PasswordFieldIndex.Rowguid, value); } + } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum PasswordFieldIndex + { + ///BusinessEntityId. + BusinessEntityId, + ///ModifiedDate. + ModifiedDate, + ///PasswordHash. + PasswordHash, + ///PasswordSalt. + PasswordSalt, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Password. + public partial class PasswordRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between PasswordEntity and PersonEntity over the 1:1 relation they have, using the relation between the fields: Password.BusinessEntityId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Person", false, new[] { PersonFields.BusinessEntityId, PasswordFields.BusinessEntityId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticPasswordRelations + { + internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new PasswordRelations().PersonEntityUsingBusinessEntityId; + + /// CTor + static StaticPasswordRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/PersonEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/PersonEntity.cs new file mode 100644 index 00000000..9bab0992 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/PersonEntity.cs @@ -0,0 +1,483 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Person'.

+ [Serializable] + public partial class PersonEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _businessEntityContacts; + private EntityCollection _contactCreditCards; + private EntityCollection _customers; + private EntityCollection _emailAddresses; + private EntityCollection _personPhones; + private BusinessEntityEntity _businessEntity; + private EmployeeEntity _employee; + private PasswordEntity _password; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static PersonEntityStaticMetaData _staticMetaData = new PersonEntityStaticMetaData(); + private static PersonRelations _relationsFactory = new PersonRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name BusinessEntityContacts + public static readonly string BusinessEntityContacts = "BusinessEntityContacts"; + /// Member name ContactCreditCards + public static readonly string ContactCreditCards = "ContactCreditCards"; + /// Member name Customers + public static readonly string Customers = "Customers"; + /// Member name EmailAddresses + public static readonly string EmailAddresses = "EmailAddresses"; + /// Member name PersonPhones + public static readonly string PersonPhones = "PersonPhones"; + /// Member name BusinessEntity + public static readonly string BusinessEntity = "BusinessEntity"; + /// Member name Employee + public static readonly string Employee = "Employee"; + /// Member name Password + public static readonly string Password = "Password"; + } + + /// Static meta-data storage for navigator related information + protected class PersonEntityStaticMetaData : EntityStaticMetaDataBase + { + public PersonEntityStaticMetaData() + { + SetEntityCoreInfo("PersonEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity, typeof(PersonEntity), typeof(PersonEntityFactory), false); + AddNavigatorMetaData>("BusinessEntityContacts", a => a._businessEntityContacts, (a, b) => a._businessEntityContacts = b, a => a.BusinessEntityContacts, () => new PersonRelations().BusinessEntityContactEntityUsingPersonId, typeof(BusinessEntityContactEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityContactEntity); + AddNavigatorMetaData>("ContactCreditCards", a => a._contactCreditCards, (a, b) => a._contactCreditCards = b, a => a.ContactCreditCards, () => new PersonRelations().ContactCreditCardEntityUsingContactId, typeof(ContactCreditCardEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ContactCreditCardEntity); + AddNavigatorMetaData>("Customers", a => a._customers, (a, b) => a._customers = b, a => a.Customers, () => new PersonRelations().CustomerEntityUsingPersonId, typeof(CustomerEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity); + AddNavigatorMetaData>("EmailAddresses", a => a._emailAddresses, (a, b) => a._emailAddresses = b, a => a.EmailAddresses, () => new PersonRelations().EmailAddressEntityUsingBusinessEntityId, typeof(EmailAddressEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmailAddressEntity); + AddNavigatorMetaData>("PersonPhones", a => a._personPhones, (a, b) => a._personPhones = b, a => a.PersonPhones, () => new PersonRelations().PersonPhoneEntityUsingBusinessEntityId, typeof(PersonPhoneEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonPhoneEntity); + AddNavigatorMetaData("BusinessEntity", "Person", (a, b) => a._businessEntity = b, a => a._businessEntity, (a, b) => a.BusinessEntity = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPersonRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, ()=>new PersonRelations().BusinessEntityEntityUsingBusinessEntityId, null, new int[] { (int)PersonFieldIndex.BusinessEntityId }, null, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity); + AddNavigatorMetaData("Employee", "Person", (a, b) => a._employee = b, a => a._employee, (a, b) => a.Employee = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPersonRelations.EmployeeEntityUsingEmployeeIdStatic, ()=>new PersonRelations().EmployeeEntityUsingEmployeeId, null, new int[] { (int)PersonFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity); + AddNavigatorMetaData("Password", "Person", (a, b) => a._password = b, a => a._password, (a, b) => a.Password = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPersonRelations.PasswordEntityUsingBusinessEntityIdStatic, ()=>new PersonRelations().PasswordEntityUsingBusinessEntityId, null, new int[] { (int)PersonFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PasswordEntity); + } + } + + /// Static ctor + static PersonEntity() + { + } + + /// CTor + public PersonEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public PersonEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this PersonEntity + public PersonEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Person which data should be fetched into this Person object + public PersonEntity(System.Int32 businessEntityId) : this(businessEntityId, null) + { + } + + /// CTor + /// PK value for Person which data should be fetched into this Person object + /// The custom validator object for this PersonEntity + public PersonEntity(System.Int32 businessEntityId, IValidator validator) + { + InitClassEmpty(validator, null); + this.BusinessEntityId = businessEntityId; + } + + /// Private CTor for deserialization + /// + /// + protected PersonEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BusinessEntityContact' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntityContacts() { return CreateRelationInfoForNavigator("BusinessEntityContacts"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ContactCreditCard' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoContactCreditCards() { return CreateRelationInfoForNavigator("ContactCreditCards"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Customer' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCustomers() { return CreateRelationInfoForNavigator("Customers"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmailAddress' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmailAddresses() { return CreateRelationInfoForNavigator("EmailAddresses"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PersonPhone' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPersonPhones() { return CreateRelationInfoForNavigator("PersonPhones"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() { return CreateRelationInfoForNavigator("BusinessEntity"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployee() { return CreateRelationInfoForNavigator("Employee"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Password' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPassword() { return CreateRelationInfoForNavigator("Password"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this PersonEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static PersonRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntityContact' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntityContacts { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntityContacts", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ContactCreditCard' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathContactCreditCards { get { return _staticMetaData.GetPrefetchPathElement("ContactCreditCards", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCustomers { get { return _staticMetaData.GetPrefetchPathElement("Customers", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmailAddress' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmailAddresses { get { return _staticMetaData.GetPrefetchPathElement("EmailAddresses", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PersonPhone' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPersonPhones { get { return _staticMetaData.GetPrefetchPathElement("PersonPhones", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntity { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntity", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployee { get { return _staticMetaData.GetPrefetchPathElement("Employee", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Password' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPassword { get { return _staticMetaData.GetPrefetchPathElement("Password", CommonEntityBase.CreateEntityCollection()); } } + + /// The AdditionalContactInfo property of the Entity Person

+ /// Mapped on table field: "Person"."AdditionalContactInfo".
Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String AdditionalContactInfo + { + get { return (System.String)GetValue((int)PersonFieldIndex.AdditionalContactInfo, true); } + set { SetValue((int)PersonFieldIndex.AdditionalContactInfo, value); } + } + + /// The BusinessEntityId property of the Entity Person

+ /// Mapped on table field: "Person"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 BusinessEntityId + { + get { return (System.Int32)GetValue((int)PersonFieldIndex.BusinessEntityId, true); } + set { SetValue((int)PersonFieldIndex.BusinessEntityId, value); } + } + + /// The Demographics property of the Entity Person

+ /// Mapped on table field: "Person"."Demographics".
Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Demographics + { + get { return (System.String)GetValue((int)PersonFieldIndex.Demographics, true); } + set { SetValue((int)PersonFieldIndex.Demographics, value); } + } + + /// The EmailPromotion property of the Entity Person

+ /// Mapped on table field: "Person"."EmailPromotion".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 EmailPromotion + { + get { return (System.Int32)GetValue((int)PersonFieldIndex.EmailPromotion, true); } + set { SetValue((int)PersonFieldIndex.EmailPromotion, value); } + } + + /// The FirstName property of the Entity Person

+ /// Mapped on table field: "Person"."FirstName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String FirstName + { + get { return (System.String)GetValue((int)PersonFieldIndex.FirstName, true); } + set { SetValue((int)PersonFieldIndex.FirstName, value); } + } + + /// The LastName property of the Entity Person

+ /// Mapped on table field: "Person"."LastName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String LastName + { + get { return (System.String)GetValue((int)PersonFieldIndex.LastName, true); } + set { SetValue((int)PersonFieldIndex.LastName, value); } + } + + /// The MiddleName property of the Entity Person

+ /// Mapped on table field: "Person"."MiddleName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String MiddleName + { + get { return (System.String)GetValue((int)PersonFieldIndex.MiddleName, true); } + set { SetValue((int)PersonFieldIndex.MiddleName, value); } + } + + /// The ModifiedDate property of the Entity Person

+ /// Mapped on table field: "Person"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)PersonFieldIndex.ModifiedDate, true); } + set { SetValue((int)PersonFieldIndex.ModifiedDate, value); } + } + + /// The NameStyle property of the Entity Person

+ /// Mapped on table field: "Person"."NameStyle".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean NameStyle + { + get { return (System.Boolean)GetValue((int)PersonFieldIndex.NameStyle, true); } + set { SetValue((int)PersonFieldIndex.NameStyle, value); } + } + + /// The PersonType property of the Entity Person

+ /// Mapped on table field: "Person"."PersonType".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String PersonType + { + get { return (System.String)GetValue((int)PersonFieldIndex.PersonType, true); } + set { SetValue((int)PersonFieldIndex.PersonType, value); } + } + + /// The Rowguid property of the Entity Person

+ /// Mapped on table field: "Person"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)PersonFieldIndex.Rowguid, true); } + set { SetValue((int)PersonFieldIndex.Rowguid, value); } + } + + /// The Suffix property of the Entity Person

+ /// Mapped on table field: "Person"."Suffix".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 10.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Suffix + { + get { return (System.String)GetValue((int)PersonFieldIndex.Suffix, true); } + set { SetValue((int)PersonFieldIndex.Suffix, value); } + } + + /// The Title property of the Entity Person

+ /// Mapped on table field: "Person"."Title".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 8.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Title + { + get { return (System.String)GetValue((int)PersonFieldIndex.Title, true); } + set { SetValue((int)PersonFieldIndex.Title, value); } + } + + /// Gets the EntityCollection with the related entities of type 'BusinessEntityContactEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BusinessEntityContactEntity))] + public virtual EntityCollection BusinessEntityContacts { get { return GetOrCreateEntityCollection("Person", true, false, ref _businessEntityContacts); } } + + /// Gets the EntityCollection with the related entities of type 'ContactCreditCardEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ContactCreditCardEntity))] + public virtual EntityCollection ContactCreditCards { get { return GetOrCreateEntityCollection("Person", true, false, ref _contactCreditCards); } } + + /// Gets the EntityCollection with the related entities of type 'CustomerEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(CustomerEntity))] + public virtual EntityCollection Customers { get { return GetOrCreateEntityCollection("Person", true, false, ref _customers); } } + + /// Gets the EntityCollection with the related entities of type 'EmailAddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(EmailAddressEntity))] + public virtual EntityCollection EmailAddresses { get { return GetOrCreateEntityCollection("Person", true, false, ref _emailAddresses); } } + + /// Gets the EntityCollection with the related entities of type 'PersonPhoneEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(PersonPhoneEntity))] + public virtual EntityCollection PersonPhones { get { return GetOrCreateEntityCollection("Person", true, false, ref _personPhones); } } + + /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual BusinessEntityEntity BusinessEntity + { + get { return _businessEntity; } + set { SetSingleRelatedEntityNavigator(value, "BusinessEntity"); } + } + + /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual EmployeeEntity Employee + { + get { return _employee; } + set { SetSingleRelatedEntityNavigator(value, "Employee"); } + } + + /// Gets / sets related entity of type 'PasswordEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual PasswordEntity Password + { + get { return _password; } + set { SetSingleRelatedEntityNavigator(value, "Password"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum PersonFieldIndex + { + ///AdditionalContactInfo. + AdditionalContactInfo, + ///BusinessEntityId. + BusinessEntityId, + ///Demographics. + Demographics, + ///EmailPromotion. + EmailPromotion, + ///FirstName. + FirstName, + ///LastName. + LastName, + ///MiddleName. + MiddleName, + ///ModifiedDate. + ModifiedDate, + ///NameStyle. + NameStyle, + ///PersonType. + PersonType, + ///Rowguid. + Rowguid, + ///Suffix. + Suffix, + ///Title. + Title, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Person. + public partial class PersonRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between PersonEntity and BusinessEntityContactEntity over the 1:n relation they have, using the relation between the fields: Person.BusinessEntityId - BusinessEntityContact.PersonId + public virtual IEntityRelation BusinessEntityContactEntityUsingPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BusinessEntityContacts", true, new[] { PersonFields.BusinessEntityId, BusinessEntityContactFields.PersonId }); } + } + + /// Returns a new IEntityRelation object, between PersonEntity and ContactCreditCardEntity over the 1:n relation they have, using the relation between the fields: Person.BusinessEntityId - ContactCreditCard.ContactId + public virtual IEntityRelation ContactCreditCardEntityUsingContactId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ContactCreditCards", true, new[] { PersonFields.BusinessEntityId, ContactCreditCardFields.ContactId }); } + } + + /// Returns a new IEntityRelation object, between PersonEntity and CustomerEntity over the 1:n relation they have, using the relation between the fields: Person.BusinessEntityId - Customer.PersonId + public virtual IEntityRelation CustomerEntityUsingPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Customers", true, new[] { PersonFields.BusinessEntityId, CustomerFields.PersonId }); } + } + + /// Returns a new IEntityRelation object, between PersonEntity and EmailAddressEntity over the 1:n relation they have, using the relation between the fields: Person.BusinessEntityId - EmailAddress.BusinessEntityId + public virtual IEntityRelation EmailAddressEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "EmailAddresses", true, new[] { PersonFields.BusinessEntityId, EmailAddressFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between PersonEntity and PersonPhoneEntity over the 1:n relation they have, using the relation between the fields: Person.BusinessEntityId - PersonPhone.BusinessEntityId + public virtual IEntityRelation PersonPhoneEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "PersonPhones", true, new[] { PersonFields.BusinessEntityId, PersonPhoneFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between PersonEntity and BusinessEntityEntity over the 1:1 relation they have, using the relation between the fields: Person.BusinessEntityId - BusinessEntity.BusinessEntityId + public virtual IEntityRelation BusinessEntityEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "BusinessEntity", false, new[] { BusinessEntityFields.BusinessEntityId, PersonFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between PersonEntity and EmployeeEntity over the 1:1 relation they have, using the relation between the fields: Person.BusinessEntityId - Employee.EmployeeId + public virtual IEntityRelation EmployeeEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Employee", true, new[] { PersonFields.BusinessEntityId, EmployeeFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between PersonEntity and PasswordEntity over the 1:1 relation they have, using the relation between the fields: Person.BusinessEntityId - Password.BusinessEntityId + public virtual IEntityRelation PasswordEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Password", true, new[] { PersonFields.BusinessEntityId, PasswordFields.BusinessEntityId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticPersonRelations + { + internal static readonly IEntityRelation BusinessEntityContactEntityUsingPersonIdStatic = new PersonRelations().BusinessEntityContactEntityUsingPersonId; + internal static readonly IEntityRelation ContactCreditCardEntityUsingContactIdStatic = new PersonRelations().ContactCreditCardEntityUsingContactId; + internal static readonly IEntityRelation CustomerEntityUsingPersonIdStatic = new PersonRelations().CustomerEntityUsingPersonId; + internal static readonly IEntityRelation EmailAddressEntityUsingBusinessEntityIdStatic = new PersonRelations().EmailAddressEntityUsingBusinessEntityId; + internal static readonly IEntityRelation PersonPhoneEntityUsingBusinessEntityIdStatic = new PersonRelations().PersonPhoneEntityUsingBusinessEntityId; + internal static readonly IEntityRelation BusinessEntityEntityUsingBusinessEntityIdStatic = new PersonRelations().BusinessEntityEntityUsingBusinessEntityId; + internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new PersonRelations().EmployeeEntityUsingEmployeeId; + internal static readonly IEntityRelation PasswordEntityUsingBusinessEntityIdStatic = new PersonRelations().PasswordEntityUsingBusinessEntityId; + + /// CTor + static StaticPersonRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs new file mode 100644 index 00000000..55770708 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/PersonPhoneEntity.cs @@ -0,0 +1,258 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'PersonPhone'.

+ [Serializable] + public partial class PersonPhoneEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private PersonEntity _person; + private PhoneNumberTypeEntity _phoneNumberType; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static PersonPhoneEntityStaticMetaData _staticMetaData = new PersonPhoneEntityStaticMetaData(); + private static PersonPhoneRelations _relationsFactory = new PersonPhoneRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Person + public static readonly string Person = "Person"; + /// Member name PhoneNumberType + public static readonly string PhoneNumberType = "PhoneNumberType"; + } + + /// Static meta-data storage for navigator related information + protected class PersonPhoneEntityStaticMetaData : EntityStaticMetaDataBase + { + public PersonPhoneEntityStaticMetaData() + { + SetEntityCoreInfo("PersonPhoneEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonPhoneEntity, typeof(PersonPhoneEntity), typeof(PersonPhoneEntityFactory), false); + AddNavigatorMetaData("Person", "PersonPhones", (a, b) => a._person = b, a => a._person, (a, b) => a.Person = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPersonPhoneRelations.PersonEntityUsingBusinessEntityIdStatic, ()=>new PersonPhoneRelations().PersonEntityUsingBusinessEntityId, null, new int[] { (int)PersonPhoneFieldIndex.BusinessEntityId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity); + AddNavigatorMetaData("PhoneNumberType", "PersonPhones", (a, b) => a._phoneNumberType = b, a => a._phoneNumberType, (a, b) => a.PhoneNumberType = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPersonPhoneRelations.PhoneNumberTypeEntityUsingPhoneNumberTypeIdStatic, ()=>new PersonPhoneRelations().PhoneNumberTypeEntityUsingPhoneNumberTypeId, null, new int[] { (int)PersonPhoneFieldIndex.PhoneNumberTypeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PhoneNumberTypeEntity); + } + } + + /// Static ctor + static PersonPhoneEntity() + { + } + + /// CTor + public PersonPhoneEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public PersonPhoneEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this PersonPhoneEntity + public PersonPhoneEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for PersonPhone which data should be fetched into this PersonPhone object + /// PK value for PersonPhone which data should be fetched into this PersonPhone object + /// PK value for PersonPhone which data should be fetched into this PersonPhone object + public PersonPhoneEntity(System.Int32 businessEntityId, System.String phoneNumber, System.Int32 phoneNumberTypeId) : this(businessEntityId, phoneNumber, phoneNumberTypeId, null) + { + } + + /// CTor + /// PK value for PersonPhone which data should be fetched into this PersonPhone object + /// PK value for PersonPhone which data should be fetched into this PersonPhone object + /// PK value for PersonPhone which data should be fetched into this PersonPhone object + /// The custom validator object for this PersonPhoneEntity + public PersonPhoneEntity(System.Int32 businessEntityId, System.String phoneNumber, System.Int32 phoneNumberTypeId, IValidator validator) + { + InitClassEmpty(validator, null); + this.BusinessEntityId = businessEntityId; + this.PhoneNumber = phoneNumber; + this.PhoneNumberTypeId = phoneNumberTypeId; + } + + /// Private CTor for deserialization + /// + /// + protected PersonPhoneEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Person' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPerson() { return CreateRelationInfoForNavigator("Person"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'PhoneNumberType' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPhoneNumberType() { return CreateRelationInfoForNavigator("PhoneNumberType"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this PersonPhoneEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static PersonPhoneRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Person' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPerson { get { return _staticMetaData.GetPrefetchPathElement("Person", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PhoneNumberType' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPhoneNumberType { get { return _staticMetaData.GetPrefetchPathElement("PhoneNumberType", CommonEntityBase.CreateEntityCollection()); } } + + /// The BusinessEntityId property of the Entity PersonPhone

+ /// Mapped on table field: "PersonPhone"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 BusinessEntityId + { + get { return (System.Int32)GetValue((int)PersonPhoneFieldIndex.BusinessEntityId, true); } + set { SetValue((int)PersonPhoneFieldIndex.BusinessEntityId, value); } + } + + /// The ModifiedDate property of the Entity PersonPhone

+ /// Mapped on table field: "PersonPhone"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)PersonPhoneFieldIndex.ModifiedDate, true); } + set { SetValue((int)PersonPhoneFieldIndex.ModifiedDate, value); } + } + + /// The PhoneNumber property of the Entity PersonPhone

+ /// Mapped on table field: "PersonPhone"."PhoneNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String PhoneNumber + { + get { return (System.String)GetValue((int)PersonPhoneFieldIndex.PhoneNumber, true); } + set { SetValue((int)PersonPhoneFieldIndex.PhoneNumber, value); } + } + + /// The PhoneNumberTypeId property of the Entity PersonPhone

+ /// Mapped on table field: "PersonPhone"."PhoneNumberTypeID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 PhoneNumberTypeId + { + get { return (System.Int32)GetValue((int)PersonPhoneFieldIndex.PhoneNumberTypeId, true); } + set { SetValue((int)PersonPhoneFieldIndex.PhoneNumberTypeId, value); } + } + + /// Gets / sets related entity of type 'PersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual PersonEntity Person + { + get { return _person; } + set { SetSingleRelatedEntityNavigator(value, "Person"); } + } + + /// Gets / sets related entity of type 'PhoneNumberTypeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual PhoneNumberTypeEntity PhoneNumberType + { + get { return _phoneNumberType; } + set { SetSingleRelatedEntityNavigator(value, "PhoneNumberType"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum PersonPhoneFieldIndex + { + ///BusinessEntityId. + BusinessEntityId, + ///ModifiedDate. + ModifiedDate, + ///PhoneNumber. + PhoneNumber, + ///PhoneNumberTypeId. + PhoneNumberTypeId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: PersonPhone. + public partial class PersonPhoneRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between PersonPhoneEntity and PersonEntity over the m:1 relation they have, using the relation between the fields: PersonPhone.BusinessEntityId - Person.BusinessEntityId + public virtual IEntityRelation PersonEntityUsingBusinessEntityId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Person", false, new[] { PersonFields.BusinessEntityId, PersonPhoneFields.BusinessEntityId }); } + } + + /// Returns a new IEntityRelation object, between PersonPhoneEntity and PhoneNumberTypeEntity over the m:1 relation they have, using the relation between the fields: PersonPhone.PhoneNumberTypeId - PhoneNumberType.PhoneNumberTypeId + public virtual IEntityRelation PhoneNumberTypeEntityUsingPhoneNumberTypeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "PhoneNumberType", false, new[] { PhoneNumberTypeFields.PhoneNumberTypeId, PersonPhoneFields.PhoneNumberTypeId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticPersonPhoneRelations + { + internal static readonly IEntityRelation PersonEntityUsingBusinessEntityIdStatic = new PersonPhoneRelations().PersonEntityUsingBusinessEntityId; + internal static readonly IEntityRelation PhoneNumberTypeEntityUsingPhoneNumberTypeIdStatic = new PersonPhoneRelations().PhoneNumberTypeEntityUsingPhoneNumberTypeId; + + /// CTor + static StaticPersonPhoneRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs new file mode 100644 index 00000000..51f321e7 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/PhoneNumberTypeEntity.cs @@ -0,0 +1,209 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'PhoneNumberType'.

+ [Serializable] + public partial class PhoneNumberTypeEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _personPhones; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static PhoneNumberTypeEntityStaticMetaData _staticMetaData = new PhoneNumberTypeEntityStaticMetaData(); + private static PhoneNumberTypeRelations _relationsFactory = new PhoneNumberTypeRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name PersonPhones + public static readonly string PersonPhones = "PersonPhones"; + } + + /// Static meta-data storage for navigator related information + protected class PhoneNumberTypeEntityStaticMetaData : EntityStaticMetaDataBase + { + public PhoneNumberTypeEntityStaticMetaData() + { + SetEntityCoreInfo("PhoneNumberTypeEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PhoneNumberTypeEntity, typeof(PhoneNumberTypeEntity), typeof(PhoneNumberTypeEntityFactory), false); + AddNavigatorMetaData>("PersonPhones", a => a._personPhones, (a, b) => a._personPhones = b, a => a.PersonPhones, () => new PhoneNumberTypeRelations().PersonPhoneEntityUsingPhoneNumberTypeId, typeof(PersonPhoneEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.PersonPhoneEntity); + } + } + + /// Static ctor + static PhoneNumberTypeEntity() + { + } + + /// CTor + public PhoneNumberTypeEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public PhoneNumberTypeEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this PhoneNumberTypeEntity + public PhoneNumberTypeEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for PhoneNumberType which data should be fetched into this PhoneNumberType object + public PhoneNumberTypeEntity(System.Int32 phoneNumberTypeId) : this(phoneNumberTypeId, null) + { + } + + /// CTor + /// PK value for PhoneNumberType which data should be fetched into this PhoneNumberType object + /// The custom validator object for this PhoneNumberTypeEntity + public PhoneNumberTypeEntity(System.Int32 phoneNumberTypeId, IValidator validator) + { + InitClassEmpty(validator, null); + this.PhoneNumberTypeId = phoneNumberTypeId; + } + + /// Private CTor for deserialization + /// + /// + protected PhoneNumberTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PersonPhone' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPersonPhones() { return CreateRelationInfoForNavigator("PersonPhones"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this PhoneNumberTypeEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static PhoneNumberTypeRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PersonPhone' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPersonPhones { get { return _staticMetaData.GetPrefetchPathElement("PersonPhones", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity PhoneNumberType

+ /// Mapped on table field: "PhoneNumberType"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)PhoneNumberTypeFieldIndex.ModifiedDate, true); } + set { SetValue((int)PhoneNumberTypeFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity PhoneNumberType

+ /// Mapped on table field: "PhoneNumberType"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)PhoneNumberTypeFieldIndex.Name, true); } + set { SetValue((int)PhoneNumberTypeFieldIndex.Name, value); } + } + + /// The PhoneNumberTypeId property of the Entity PhoneNumberType

+ /// Mapped on table field: "PhoneNumberType"."PhoneNumberTypeID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 PhoneNumberTypeId + { + get { return (System.Int32)GetValue((int)PhoneNumberTypeFieldIndex.PhoneNumberTypeId, true); } + set { SetValue((int)PhoneNumberTypeFieldIndex.PhoneNumberTypeId, value); } } + + /// Gets the EntityCollection with the related entities of type 'PersonPhoneEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(PersonPhoneEntity))] + public virtual EntityCollection PersonPhones { get { return GetOrCreateEntityCollection("PhoneNumberType", true, false, ref _personPhones); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum PhoneNumberTypeFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///PhoneNumberTypeId. + PhoneNumberTypeId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: PhoneNumberType. + public partial class PhoneNumberTypeRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between PhoneNumberTypeEntity and PersonPhoneEntity over the 1:n relation they have, using the relation between the fields: PhoneNumberType.PhoneNumberTypeId - PersonPhone.PhoneNumberTypeId + public virtual IEntityRelation PersonPhoneEntityUsingPhoneNumberTypeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "PersonPhones", true, new[] { PhoneNumberTypeFields.PhoneNumberTypeId, PersonPhoneFields.PhoneNumberTypeId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticPhoneNumberTypeRelations + { + internal static readonly IEntityRelation PersonPhoneEntityUsingPhoneNumberTypeIdStatic = new PhoneNumberTypeRelations().PersonPhoneEntityUsingPhoneNumberTypeId; + + /// CTor + static StaticPhoneNumberTypeRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs new file mode 100644 index 00000000..c8e6f6c6 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductCategoryEntity.cs @@ -0,0 +1,219 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductCategory'.

+ [Serializable] + public partial class ProductCategoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productSubcategories; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductCategoryEntityStaticMetaData _staticMetaData = new ProductCategoryEntityStaticMetaData(); + private static ProductCategoryRelations _relationsFactory = new ProductCategoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductSubcategories + public static readonly string ProductSubcategories = "ProductSubcategories"; + } + + /// Static meta-data storage for navigator related information + protected class ProductCategoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductCategoryEntityStaticMetaData() + { + SetEntityCoreInfo("ProductCategoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductCategoryEntity, typeof(ProductCategoryEntity), typeof(ProductCategoryEntityFactory), false); + AddNavigatorMetaData>("ProductSubcategories", a => a._productSubcategories, (a, b) => a._productSubcategories = b, a => a.ProductSubcategories, () => new ProductCategoryRelations().ProductSubcategoryEntityUsingProductCategoryId, typeof(ProductSubcategoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductSubcategoryEntity); + } + } + + /// Static ctor + static ProductCategoryEntity() + { + } + + /// CTor + public ProductCategoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductCategoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductCategoryEntity + public ProductCategoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductCategory which data should be fetched into this ProductCategory object + public ProductCategoryEntity(System.Int32 productCategoryId) : this(productCategoryId, null) + { + } + + /// CTor + /// PK value for ProductCategory which data should be fetched into this ProductCategory object + /// The custom validator object for this ProductCategoryEntity + public ProductCategoryEntity(System.Int32 productCategoryId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductCategoryId = productCategoryId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductCategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductSubcategory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductSubcategories() { return CreateRelationInfoForNavigator("ProductSubcategories"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductCategoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductCategoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductSubcategory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductSubcategories { get { return _staticMetaData.GetPrefetchPathElement("ProductSubcategories", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity ProductCategory

+ /// Mapped on table field: "ProductCategory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductCategoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductCategoryFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity ProductCategory

+ /// Mapped on table field: "ProductCategory"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ProductCategoryFieldIndex.Name, true); } + set { SetValue((int)ProductCategoryFieldIndex.Name, value); } + } + + /// The ProductCategoryId property of the Entity ProductCategory

+ /// Mapped on table field: "ProductCategory"."ProductCategoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ProductCategoryId + { + get { return (System.Int32)GetValue((int)ProductCategoryFieldIndex.ProductCategoryId, true); } + set { SetValue((int)ProductCategoryFieldIndex.ProductCategoryId, value); } } + + /// The Rowguid property of the Entity ProductCategory

+ /// Mapped on table field: "ProductCategory"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)ProductCategoryFieldIndex.Rowguid, true); } + set { SetValue((int)ProductCategoryFieldIndex.Rowguid, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductSubcategoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductSubcategoryEntity))] + public virtual EntityCollection ProductSubcategories { get { return GetOrCreateEntityCollection("ProductCategory", true, false, ref _productSubcategories); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductCategoryFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///ProductCategoryId. + ProductCategoryId, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductCategory. + public partial class ProductCategoryRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ProductCategoryEntity and ProductSubcategoryEntity over the 1:n relation they have, using the relation between the fields: ProductCategory.ProductCategoryId - ProductSubcategory.ProductCategoryId + public virtual IEntityRelation ProductSubcategoryEntityUsingProductCategoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductSubcategories", true, new[] { ProductCategoryFields.ProductCategoryId, ProductSubcategoryFields.ProductCategoryId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductCategoryRelations + { + internal static readonly IEntityRelation ProductSubcategoryEntityUsingProductCategoryIdStatic = new ProductCategoryRelations().ProductSubcategoryEntityUsingProductCategoryId; + + /// CTor + static StaticProductCategoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs new file mode 100644 index 00000000..96a672e8 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductCostHistoryEntity.cs @@ -0,0 +1,238 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductCostHistory'.

+ [Serializable] + public partial class ProductCostHistoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductCostHistoryEntityStaticMetaData _staticMetaData = new ProductCostHistoryEntityStaticMetaData(); + private static ProductCostHistoryRelations _relationsFactory = new ProductCostHistoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + } + + /// Static meta-data storage for navigator related information + protected class ProductCostHistoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductCostHistoryEntityStaticMetaData() + { + SetEntityCoreInfo("ProductCostHistoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductCostHistoryEntity, typeof(ProductCostHistoryEntity), typeof(ProductCostHistoryEntityFactory), false); + AddNavigatorMetaData("Product", "ProductCostHistories", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductCostHistoryRelations.ProductEntityUsingProductIdStatic, ()=>new ProductCostHistoryRelations().ProductEntityUsingProductId, null, new int[] { (int)ProductCostHistoryFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + } + } + + /// Static ctor + static ProductCostHistoryEntity() + { + } + + /// CTor + public ProductCostHistoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductCostHistoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductCostHistoryEntity + public ProductCostHistoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object + /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object + public ProductCostHistoryEntity(System.Int32 productId, System.DateTime startDate) : this(productId, startDate, null) + { + } + + /// CTor + /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object + /// PK value for ProductCostHistory which data should be fetched into this ProductCostHistory object + /// The custom validator object for this ProductCostHistoryEntity + public ProductCostHistoryEntity(System.Int32 productId, System.DateTime startDate, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductId = productId; + this.StartDate = startDate; + } + + /// Private CTor for deserialization + /// + /// + protected ProductCostHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductCostHistoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductCostHistoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// The EndDate property of the Entity ProductCostHistory

+ /// Mapped on table field: "ProductCostHistory"."EndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable EndDate + { + get { return (Nullable)GetValue((int)ProductCostHistoryFieldIndex.EndDate, false); } + set { SetValue((int)ProductCostHistoryFieldIndex.EndDate, value); } + } + + /// The ModifiedDate property of the Entity ProductCostHistory

+ /// Mapped on table field: "ProductCostHistory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductCostHistoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductCostHistoryFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity ProductCostHistory

+ /// Mapped on table field: "ProductCostHistory"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductCostHistoryFieldIndex.ProductId, true); } + set { SetValue((int)ProductCostHistoryFieldIndex.ProductId, value); } + } + + /// The StandardCost property of the Entity ProductCostHistory

+ /// Mapped on table field: "ProductCostHistory"."StandardCost".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal StandardCost + { + get { return (System.Decimal)GetValue((int)ProductCostHistoryFieldIndex.StandardCost, true); } + set { SetValue((int)ProductCostHistoryFieldIndex.StandardCost, value); } + } + + /// The StartDate property of the Entity ProductCostHistory

+ /// Mapped on table field: "ProductCostHistory"."StartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.DateTime StartDate + { + get { return (System.DateTime)GetValue((int)ProductCostHistoryFieldIndex.StartDate, true); } + set { SetValue((int)ProductCostHistoryFieldIndex.StartDate, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductCostHistoryFieldIndex + { + ///EndDate. + EndDate, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///StandardCost. + StandardCost, + ///StartDate. + StartDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductCostHistory. + public partial class ProductCostHistoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductCostHistoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ProductCostHistory.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ProductCostHistoryFields.ProductId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductCostHistoryRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductCostHistoryRelations().ProductEntityUsingProductId; + + /// CTor + static StaticProductCostHistoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs new file mode 100644 index 00000000..7b780d31 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductDescriptionEntity.cs @@ -0,0 +1,219 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductDescription'.

+ [Serializable] + public partial class ProductDescriptionEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productModelProductDescriptionCultures; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductDescriptionEntityStaticMetaData _staticMetaData = new ProductDescriptionEntityStaticMetaData(); + private static ProductDescriptionRelations _relationsFactory = new ProductDescriptionRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductModelProductDescriptionCultures + public static readonly string ProductModelProductDescriptionCultures = "ProductModelProductDescriptionCultures"; + } + + /// Static meta-data storage for navigator related information + protected class ProductDescriptionEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductDescriptionEntityStaticMetaData() + { + SetEntityCoreInfo("ProductDescriptionEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductDescriptionEntity, typeof(ProductDescriptionEntity), typeof(ProductDescriptionEntityFactory), false); + AddNavigatorMetaData>("ProductModelProductDescriptionCultures", a => a._productModelProductDescriptionCultures, (a, b) => a._productModelProductDescriptionCultures = b, a => a.ProductModelProductDescriptionCultures, () => new ProductDescriptionRelations().ProductModelProductDescriptionCultureEntityUsingProductDescriptionId, typeof(ProductModelProductDescriptionCultureEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelProductDescriptionCultureEntity); + } + } + + /// Static ctor + static ProductDescriptionEntity() + { + } + + /// CTor + public ProductDescriptionEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductDescriptionEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductDescriptionEntity + public ProductDescriptionEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductDescription which data should be fetched into this ProductDescription object + public ProductDescriptionEntity(System.Int32 productDescriptionId) : this(productDescriptionId, null) + { + } + + /// CTor + /// PK value for ProductDescription which data should be fetched into this ProductDescription object + /// The custom validator object for this ProductDescriptionEntity + public ProductDescriptionEntity(System.Int32 productDescriptionId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductDescriptionId = productDescriptionId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductDescriptionEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelProductDescriptionCulture' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModelProductDescriptionCultures() { return CreateRelationInfoForNavigator("ProductModelProductDescriptionCultures"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductDescriptionEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductDescriptionRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelProductDescriptionCulture' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModelProductDescriptionCultures { get { return _staticMetaData.GetPrefetchPathElement("ProductModelProductDescriptionCultures", CommonEntityBase.CreateEntityCollection()); } } + + /// The Description property of the Entity ProductDescription

+ /// Mapped on table field: "ProductDescription"."Description".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 400.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Description + { + get { return (System.String)GetValue((int)ProductDescriptionFieldIndex.Description, true); } + set { SetValue((int)ProductDescriptionFieldIndex.Description, value); } + } + + /// The ModifiedDate property of the Entity ProductDescription

+ /// Mapped on table field: "ProductDescription"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductDescriptionFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductDescriptionFieldIndex.ModifiedDate, value); } + } + + /// The ProductDescriptionId property of the Entity ProductDescription

+ /// Mapped on table field: "ProductDescription"."ProductDescriptionID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ProductDescriptionId + { + get { return (System.Int32)GetValue((int)ProductDescriptionFieldIndex.ProductDescriptionId, true); } + set { SetValue((int)ProductDescriptionFieldIndex.ProductDescriptionId, value); } } + + /// The Rowguid property of the Entity ProductDescription

+ /// Mapped on table field: "ProductDescription"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)ProductDescriptionFieldIndex.Rowguid, true); } + set { SetValue((int)ProductDescriptionFieldIndex.Rowguid, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductModelProductDescriptionCultureEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductModelProductDescriptionCultureEntity))] + public virtual EntityCollection ProductModelProductDescriptionCultures { get { return GetOrCreateEntityCollection("ProductDescription", true, false, ref _productModelProductDescriptionCultures); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductDescriptionFieldIndex + { + ///Description. + Description, + ///ModifiedDate. + ModifiedDate, + ///ProductDescriptionId. + ProductDescriptionId, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductDescription. + public partial class ProductDescriptionRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ProductDescriptionEntity and ProductModelProductDescriptionCultureEntity over the 1:n relation they have, using the relation between the fields: ProductDescription.ProductDescriptionId - ProductModelProductDescriptionCulture.ProductDescriptionId + public virtual IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductDescriptionId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductModelProductDescriptionCultures", true, new[] { ProductDescriptionFields.ProductDescriptionId, ProductModelProductDescriptionCultureFields.ProductDescriptionId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductDescriptionRelations + { + internal static readonly IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductDescriptionIdStatic = new ProductDescriptionRelations().ProductModelProductDescriptionCultureEntityUsingProductDescriptionId; + + /// CTor + static StaticProductDescriptionRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs new file mode 100644 index 00000000..6fa3e67e --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductDocumentEntity.cs @@ -0,0 +1,245 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductDocument'.

+ [Serializable] + public partial class ProductDocumentEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private DocumentEntity _document; + private ProductEntity _product; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductDocumentEntityStaticMetaData _staticMetaData = new ProductDocumentEntityStaticMetaData(); + private static ProductDocumentRelations _relationsFactory = new ProductDocumentRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Document + public static readonly string Document = "Document"; + /// Member name Product + public static readonly string Product = "Product"; + } + + /// Static meta-data storage for navigator related information + protected class ProductDocumentEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductDocumentEntityStaticMetaData() + { + SetEntityCoreInfo("ProductDocumentEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductDocumentEntity, typeof(ProductDocumentEntity), typeof(ProductDocumentEntityFactory), false); + AddNavigatorMetaData("Document", "ProductDocuments", (a, b) => a._document = b, a => a._document, (a, b) => a.Document = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductDocumentRelations.DocumentEntityUsingDocumentNodeStatic, ()=>new ProductDocumentRelations().DocumentEntityUsingDocumentNode, null, new int[] { (int)ProductDocumentFieldIndex.DocumentNode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.DocumentEntity); + AddNavigatorMetaData("Product", "ProductDocuments", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductDocumentRelations.ProductEntityUsingProductIdStatic, ()=>new ProductDocumentRelations().ProductEntityUsingProductId, null, new int[] { (int)ProductDocumentFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + } + } + + /// Static ctor + static ProductDocumentEntity() + { + } + + /// CTor + public ProductDocumentEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductDocumentEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductDocumentEntity + public ProductDocumentEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductDocument which data should be fetched into this ProductDocument object + /// PK value for ProductDocument which data should be fetched into this ProductDocument object + public ProductDocumentEntity(System.String documentNode, System.Int32 productId) : this(documentNode, productId, null) + { + } + + /// CTor + /// PK value for ProductDocument which data should be fetched into this ProductDocument object + /// PK value for ProductDocument which data should be fetched into this ProductDocument object + /// The custom validator object for this ProductDocumentEntity + public ProductDocumentEntity(System.String documentNode, System.Int32 productId, IValidator validator) + { + InitClassEmpty(validator, null); + this.DocumentNode = documentNode; + this.ProductId = productId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductDocumentEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Document' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoDocument() { return CreateRelationInfoForNavigator("Document"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductDocumentEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductDocumentRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Document' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathDocument { get { return _staticMetaData.GetPrefetchPathElement("Document", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// The DocumentNode property of the Entity ProductDocument

+ /// Mapped on table field: "ProductDocument"."DocumentNode".
Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 892.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String DocumentNode + { + get { return (System.String)GetValue((int)ProductDocumentFieldIndex.DocumentNode, true); } + set { SetValue((int)ProductDocumentFieldIndex.DocumentNode, value); } + } + + /// The ModifiedDate property of the Entity ProductDocument

+ /// Mapped on table field: "ProductDocument"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductDocumentFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductDocumentFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity ProductDocument

+ /// Mapped on table field: "ProductDocument"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductDocumentFieldIndex.ProductId, true); } + set { SetValue((int)ProductDocumentFieldIndex.ProductId, value); } + } + + /// Gets / sets related entity of type 'DocumentEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual DocumentEntity Document + { + get { return _document; } + set { SetSingleRelatedEntityNavigator(value, "Document"); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductDocumentFieldIndex + { + ///DocumentNode. + DocumentNode, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductDocument. + public partial class ProductDocumentRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductDocumentEntity and DocumentEntity over the m:1 relation they have, using the relation between the fields: ProductDocument.DocumentNode - Document.DocumentNode + public virtual IEntityRelation DocumentEntityUsingDocumentNode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Document", false, new[] { DocumentFields.DocumentNode, ProductDocumentFields.DocumentNode }); } + } + + /// Returns a new IEntityRelation object, between ProductDocumentEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ProductDocument.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ProductDocumentFields.ProductId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductDocumentRelations + { + internal static readonly IEntityRelation DocumentEntityUsingDocumentNodeStatic = new ProductDocumentRelations().DocumentEntityUsingDocumentNode; + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductDocumentRelations().ProductEntityUsingProductId; + + /// CTor + static StaticProductDocumentRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductEntity.cs new file mode 100644 index 00000000..cbda6a1c --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductEntity.cs @@ -0,0 +1,836 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Product'.

+ [Serializable] + public partial class ProductEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _billOfMaterials; + private EntityCollection _billOfMaterials_; + private EntityCollection _productCostHistories; + private EntityCollection _productDocuments; + private EntityCollection _productInventories; + private EntityCollection _productListPriceHistories; + private EntityCollection _productProductPhotos; + private EntityCollection _productReviews; + private EntityCollection _productVendors; + private EntityCollection _purchaseOrderDetails; + private EntityCollection _shoppingCartItems; + private EntityCollection _specialOfferProducts; + private EntityCollection _transactionHistories; + private EntityCollection _workOrders; + private ProductModelEntity _productModel; + private ProductSubcategoryEntity _productSubcategory; + private UnitMeasureEntity _unitMeasure; + private UnitMeasureEntity _unitMeasure_; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductEntityStaticMetaData _staticMetaData = new ProductEntityStaticMetaData(); + private static ProductRelations _relationsFactory = new ProductRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductModel + public static readonly string ProductModel = "ProductModel"; + /// Member name ProductSubcategory + public static readonly string ProductSubcategory = "ProductSubcategory"; + /// Member name UnitMeasure + public static readonly string UnitMeasure = "UnitMeasure"; + /// Member name UnitMeasure_ + public static readonly string UnitMeasure_ = "UnitMeasure_"; + /// Member name BillOfMaterials + public static readonly string BillOfMaterials = "BillOfMaterials"; + /// Member name BillOfMaterials_ + public static readonly string BillOfMaterials_ = "BillOfMaterials_"; + /// Member name ProductCostHistories + public static readonly string ProductCostHistories = "ProductCostHistories"; + /// Member name ProductDocuments + public static readonly string ProductDocuments = "ProductDocuments"; + /// Member name ProductInventories + public static readonly string ProductInventories = "ProductInventories"; + /// Member name ProductListPriceHistories + public static readonly string ProductListPriceHistories = "ProductListPriceHistories"; + /// Member name ProductProductPhotos + public static readonly string ProductProductPhotos = "ProductProductPhotos"; + /// Member name ProductReviews + public static readonly string ProductReviews = "ProductReviews"; + /// Member name ProductVendors + public static readonly string ProductVendors = "ProductVendors"; + /// Member name PurchaseOrderDetails + public static readonly string PurchaseOrderDetails = "PurchaseOrderDetails"; + /// Member name ShoppingCartItems + public static readonly string ShoppingCartItems = "ShoppingCartItems"; + /// Member name SpecialOfferProducts + public static readonly string SpecialOfferProducts = "SpecialOfferProducts"; + /// Member name TransactionHistories + public static readonly string TransactionHistories = "TransactionHistories"; + /// Member name WorkOrders + public static readonly string WorkOrders = "WorkOrders"; + } + + /// Static meta-data storage for navigator related information + protected class ProductEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductEntityStaticMetaData() + { + SetEntityCoreInfo("ProductEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity, typeof(ProductEntity), typeof(ProductEntityFactory), false); + AddNavigatorMetaData>("BillOfMaterials", a => a._billOfMaterials, (a, b) => a._billOfMaterials = b, a => a.BillOfMaterials, () => new ProductRelations().BillOfMaterialEntityUsingComponentId, typeof(BillOfMaterialEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BillOfMaterialEntity); + AddNavigatorMetaData>("BillOfMaterials_", a => a._billOfMaterials_, (a, b) => a._billOfMaterials_ = b, a => a.BillOfMaterials_, () => new ProductRelations().BillOfMaterialEntityUsingProductAssemblyId, typeof(BillOfMaterialEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BillOfMaterialEntity); + AddNavigatorMetaData>("ProductCostHistories", a => a._productCostHistories, (a, b) => a._productCostHistories = b, a => a.ProductCostHistories, () => new ProductRelations().ProductCostHistoryEntityUsingProductId, typeof(ProductCostHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductCostHistoryEntity); + AddNavigatorMetaData>("ProductDocuments", a => a._productDocuments, (a, b) => a._productDocuments = b, a => a.ProductDocuments, () => new ProductRelations().ProductDocumentEntityUsingProductId, typeof(ProductDocumentEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductDocumentEntity); + AddNavigatorMetaData>("ProductInventories", a => a._productInventories, (a, b) => a._productInventories = b, a => a.ProductInventories, () => new ProductRelations().ProductInventoryEntityUsingProductId, typeof(ProductInventoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductInventoryEntity); + AddNavigatorMetaData>("ProductListPriceHistories", a => a._productListPriceHistories, (a, b) => a._productListPriceHistories = b, a => a.ProductListPriceHistories, () => new ProductRelations().ProductListPriceHistoryEntityUsingProductId, typeof(ProductListPriceHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductListPriceHistoryEntity); + AddNavigatorMetaData>("ProductProductPhotos", a => a._productProductPhotos, (a, b) => a._productProductPhotos = b, a => a.ProductProductPhotos, () => new ProductRelations().ProductProductPhotoEntityUsingProductId, typeof(ProductProductPhotoEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductProductPhotoEntity); + AddNavigatorMetaData>("ProductReviews", a => a._productReviews, (a, b) => a._productReviews = b, a => a.ProductReviews, () => new ProductRelations().ProductReviewEntityUsingProductId, typeof(ProductReviewEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductReviewEntity); + AddNavigatorMetaData>("ProductVendors", a => a._productVendors, (a, b) => a._productVendors = b, a => a.ProductVendors, () => new ProductRelations().ProductVendorEntityUsingProductId, typeof(ProductVendorEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductVendorEntity); + AddNavigatorMetaData>("PurchaseOrderDetails", a => a._purchaseOrderDetails, (a, b) => a._purchaseOrderDetails = b, a => a.PurchaseOrderDetails, () => new ProductRelations().PurchaseOrderDetailEntityUsingProductId, typeof(PurchaseOrderDetailEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderDetailEntity); + AddNavigatorMetaData>("ShoppingCartItems", a => a._shoppingCartItems, (a, b) => a._shoppingCartItems = b, a => a.ShoppingCartItems, () => new ProductRelations().ShoppingCartItemEntityUsingProductId, typeof(ShoppingCartItemEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ShoppingCartItemEntity); + AddNavigatorMetaData>("SpecialOfferProducts", a => a._specialOfferProducts, (a, b) => a._specialOfferProducts = b, a => a.SpecialOfferProducts, () => new ProductRelations().SpecialOfferProductEntityUsingProductId, typeof(SpecialOfferProductEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferProductEntity); + AddNavigatorMetaData>("TransactionHistories", a => a._transactionHistories, (a, b) => a._transactionHistories = b, a => a.TransactionHistories, () => new ProductRelations().TransactionHistoryEntityUsingProductId, typeof(TransactionHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryEntity); + AddNavigatorMetaData>("WorkOrders", a => a._workOrders, (a, b) => a._workOrders = b, a => a.WorkOrders, () => new ProductRelations().WorkOrderEntityUsingProductId, typeof(WorkOrderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderEntity); + AddNavigatorMetaData("ProductModel", "Products", (a, b) => a._productModel = b, a => a._productModel, (a, b) => a.ProductModel = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductRelations.ProductModelEntityUsingProductModelIdStatic, ()=>new ProductRelations().ProductModelEntityUsingProductModelId, null, new int[] { (int)ProductFieldIndex.ProductModelId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelEntity); + AddNavigatorMetaData("ProductSubcategory", "Products", (a, b) => a._productSubcategory = b, a => a._productSubcategory, (a, b) => a.ProductSubcategory = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductRelations.ProductSubcategoryEntityUsingProductSubcategoryIdStatic, ()=>new ProductRelations().ProductSubcategoryEntityUsingProductSubcategoryId, null, new int[] { (int)ProductFieldIndex.ProductSubcategoryId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductSubcategoryEntity); + AddNavigatorMetaData("UnitMeasure", "Products", (a, b) => a._unitMeasure = b, a => a._unitMeasure, (a, b) => a.UnitMeasure = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductRelations.UnitMeasureEntityUsingSizeUnitMeasureCodeStatic, ()=>new ProductRelations().UnitMeasureEntityUsingSizeUnitMeasureCode, null, new int[] { (int)ProductFieldIndex.SizeUnitMeasureCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity); + AddNavigatorMetaData("UnitMeasure_", "Products_", (a, b) => a._unitMeasure_ = b, a => a._unitMeasure_, (a, b) => a.UnitMeasure_ = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductRelations.UnitMeasureEntityUsingWeightUnitMeasureCodeStatic, ()=>new ProductRelations().UnitMeasureEntityUsingWeightUnitMeasureCode, null, new int[] { (int)ProductFieldIndex.WeightUnitMeasureCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity); + } + } + + /// Static ctor + static ProductEntity() + { + } + + /// CTor + public ProductEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductEntity + public ProductEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Product which data should be fetched into this Product object + public ProductEntity(System.Int32 productId) : this(productId, null) + { + } + + /// CTor + /// PK value for Product which data should be fetched into this Product object + /// The custom validator object for this ProductEntity + public ProductEntity(System.Int32 productId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductId = productId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BillOfMaterial' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBillOfMaterials() { return CreateRelationInfoForNavigator("BillOfMaterials"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BillOfMaterial' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBillOfMaterials_() { return CreateRelationInfoForNavigator("BillOfMaterials_"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductCostHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductCostHistories() { return CreateRelationInfoForNavigator("ProductCostHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductDocument' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductDocuments() { return CreateRelationInfoForNavigator("ProductDocuments"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductInventory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductInventories() { return CreateRelationInfoForNavigator("ProductInventories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductListPriceHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductListPriceHistories() { return CreateRelationInfoForNavigator("ProductListPriceHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductProductPhoto' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductProductPhotos() { return CreateRelationInfoForNavigator("ProductProductPhotos"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductReview' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductReviews() { return CreateRelationInfoForNavigator("ProductReviews"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductVendor' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductVendors() { return CreateRelationInfoForNavigator("ProductVendors"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderDetail' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderDetails() { return CreateRelationInfoForNavigator("PurchaseOrderDetails"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ShoppingCartItem' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoShoppingCartItems() { return CreateRelationInfoForNavigator("ShoppingCartItems"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SpecialOfferProduct' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSpecialOfferProducts() { return CreateRelationInfoForNavigator("SpecialOfferProducts"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TransactionHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoTransactionHistories() { return CreateRelationInfoForNavigator("TransactionHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrder' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoWorkOrders() { return CreateRelationInfoForNavigator("WorkOrders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductModel' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModel() { return CreateRelationInfoForNavigator("ProductModel"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductSubcategory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductSubcategory() { return CreateRelationInfoForNavigator("ProductSubcategory"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure() { return CreateRelationInfoForNavigator("UnitMeasure"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure_() { return CreateRelationInfoForNavigator("UnitMeasure_"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BillOfMaterial' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBillOfMaterials { get { return _staticMetaData.GetPrefetchPathElement("BillOfMaterials", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BillOfMaterial' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBillOfMaterials_ { get { return _staticMetaData.GetPrefetchPathElement("BillOfMaterials_", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductCostHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductCostHistories { get { return _staticMetaData.GetPrefetchPathElement("ProductCostHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductDocument' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductDocuments { get { return _staticMetaData.GetPrefetchPathElement("ProductDocuments", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductInventory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductInventories { get { return _staticMetaData.GetPrefetchPathElement("ProductInventories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductListPriceHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductListPriceHistories { get { return _staticMetaData.GetPrefetchPathElement("ProductListPriceHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductProductPhoto' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductProductPhotos { get { return _staticMetaData.GetPrefetchPathElement("ProductProductPhotos", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductReview' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductReviews { get { return _staticMetaData.GetPrefetchPathElement("ProductReviews", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductVendor' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductVendors { get { return _staticMetaData.GetPrefetchPathElement("ProductVendors", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderDetail' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPurchaseOrderDetails { get { return _staticMetaData.GetPrefetchPathElement("PurchaseOrderDetails", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ShoppingCartItem' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathShoppingCartItems { get { return _staticMetaData.GetPrefetchPathElement("ShoppingCartItems", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOfferProduct' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSpecialOfferProducts { get { return _staticMetaData.GetPrefetchPathElement("SpecialOfferProducts", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TransactionHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathTransactionHistories { get { return _staticMetaData.GetPrefetchPathElement("TransactionHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrder' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathWorkOrders { get { return _staticMetaData.GetPrefetchPathElement("WorkOrders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModel' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModel { get { return _staticMetaData.GetPrefetchPathElement("ProductModel", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductSubcategory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductSubcategory { get { return _staticMetaData.GetPrefetchPathElement("ProductSubcategory", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathUnitMeasure { get { return _staticMetaData.GetPrefetchPathElement("UnitMeasure", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathUnitMeasure_ { get { return _staticMetaData.GetPrefetchPathElement("UnitMeasure_", CommonEntityBase.CreateEntityCollection()); } } + + /// The Class property of the Entity Product

+ /// Mapped on table field: "Product"."Class".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Class + { + get { return (System.String)GetValue((int)ProductFieldIndex.Class, true); } + set { SetValue((int)ProductFieldIndex.Class, value); } + } + + /// The Color property of the Entity Product

+ /// Mapped on table field: "Product"."Color".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Color + { + get { return (System.String)GetValue((int)ProductFieldIndex.Color, true); } + set { SetValue((int)ProductFieldIndex.Color, value); } + } + + /// The DaysToManufacture property of the Entity Product

+ /// Mapped on table field: "Product"."DaysToManufacture".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 DaysToManufacture + { + get { return (System.Int32)GetValue((int)ProductFieldIndex.DaysToManufacture, true); } + set { SetValue((int)ProductFieldIndex.DaysToManufacture, value); } + } + + /// The DiscontinuedDate property of the Entity Product

+ /// Mapped on table field: "Product"."DiscontinuedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable DiscontinuedDate + { + get { return (Nullable)GetValue((int)ProductFieldIndex.DiscontinuedDate, false); } + set { SetValue((int)ProductFieldIndex.DiscontinuedDate, value); } + } + + /// The FinishedGoodsFlag property of the Entity Product

+ /// Mapped on table field: "Product"."FinishedGoodsFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean FinishedGoodsFlag + { + get { return (System.Boolean)GetValue((int)ProductFieldIndex.FinishedGoodsFlag, true); } + set { SetValue((int)ProductFieldIndex.FinishedGoodsFlag, value); } + } + + /// The ListPrice property of the Entity Product

+ /// Mapped on table field: "Product"."ListPrice".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal ListPrice + { + get { return (System.Decimal)GetValue((int)ProductFieldIndex.ListPrice, true); } + set { SetValue((int)ProductFieldIndex.ListPrice, value); } + } + + /// The MakeFlag property of the Entity Product

+ /// Mapped on table field: "Product"."MakeFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean MakeFlag + { + get { return (System.Boolean)GetValue((int)ProductFieldIndex.MakeFlag, true); } + set { SetValue((int)ProductFieldIndex.MakeFlag, value); } + } + + /// The ModifiedDate property of the Entity Product

+ /// Mapped on table field: "Product"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Product

+ /// Mapped on table field: "Product"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ProductFieldIndex.Name, true); } + set { SetValue((int)ProductFieldIndex.Name, value); } + } + + /// The ProductId property of the Entity Product

+ /// Mapped on table field: "Product"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductFieldIndex.ProductId, true); } + set { SetValue((int)ProductFieldIndex.ProductId, value); } } + + /// The ProductLine property of the Entity Product

+ /// Mapped on table field: "Product"."ProductLine".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String ProductLine + { + get { return (System.String)GetValue((int)ProductFieldIndex.ProductLine, true); } + set { SetValue((int)ProductFieldIndex.ProductLine, value); } + } + + /// The ProductModelId property of the Entity Product

+ /// Mapped on table field: "Product"."ProductModelID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ProductModelId + { + get { return (Nullable)GetValue((int)ProductFieldIndex.ProductModelId, false); } + set { SetValue((int)ProductFieldIndex.ProductModelId, value); } + } + + /// The ProductNumber property of the Entity Product

+ /// Mapped on table field: "Product"."ProductNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String ProductNumber + { + get { return (System.String)GetValue((int)ProductFieldIndex.ProductNumber, true); } + set { SetValue((int)ProductFieldIndex.ProductNumber, value); } + } + + /// The ProductSubcategoryId property of the Entity Product

+ /// Mapped on table field: "Product"."ProductSubcategoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ProductSubcategoryId + { + get { return (Nullable)GetValue((int)ProductFieldIndex.ProductSubcategoryId, false); } + set { SetValue((int)ProductFieldIndex.ProductSubcategoryId, value); } + } + + /// The ReorderPoint property of the Entity Product

+ /// Mapped on table field: "Product"."ReorderPoint".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 ReorderPoint + { + get { return (System.Int16)GetValue((int)ProductFieldIndex.ReorderPoint, true); } + set { SetValue((int)ProductFieldIndex.ReorderPoint, value); } + } + + /// The Rowguid property of the Entity Product

+ /// Mapped on table field: "Product"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)ProductFieldIndex.Rowguid, true); } + set { SetValue((int)ProductFieldIndex.Rowguid, value); } + } + + /// The SafetyStockLevel property of the Entity Product

+ /// Mapped on table field: "Product"."SafetyStockLevel".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 SafetyStockLevel + { + get { return (System.Int16)GetValue((int)ProductFieldIndex.SafetyStockLevel, true); } + set { SetValue((int)ProductFieldIndex.SafetyStockLevel, value); } + } + + /// The SellEndDate property of the Entity Product

+ /// Mapped on table field: "Product"."SellEndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable SellEndDate + { + get { return (Nullable)GetValue((int)ProductFieldIndex.SellEndDate, false); } + set { SetValue((int)ProductFieldIndex.SellEndDate, value); } + } + + /// The SellStartDate property of the Entity Product

+ /// Mapped on table field: "Product"."SellStartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime SellStartDate + { + get { return (System.DateTime)GetValue((int)ProductFieldIndex.SellStartDate, true); } + set { SetValue((int)ProductFieldIndex.SellStartDate, value); } + } + + /// The Size property of the Entity Product

+ /// Mapped on table field: "Product"."Size".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 5.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Size + { + get { return (System.String)GetValue((int)ProductFieldIndex.Size, true); } + set { SetValue((int)ProductFieldIndex.Size, value); } + } + + /// The SizeUnitMeasureCode property of the Entity Product

+ /// Mapped on table field: "Product"."SizeUnitMeasureCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String SizeUnitMeasureCode + { + get { return (System.String)GetValue((int)ProductFieldIndex.SizeUnitMeasureCode, true); } + set { SetValue((int)ProductFieldIndex.SizeUnitMeasureCode, value); } + } + + /// The StandardCost property of the Entity Product

+ /// Mapped on table field: "Product"."StandardCost".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal StandardCost + { + get { return (System.Decimal)GetValue((int)ProductFieldIndex.StandardCost, true); } + set { SetValue((int)ProductFieldIndex.StandardCost, value); } + } + + /// The Style property of the Entity Product

+ /// Mapped on table field: "Product"."Style".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 2.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Style + { + get { return (System.String)GetValue((int)ProductFieldIndex.Style, true); } + set { SetValue((int)ProductFieldIndex.Style, value); } + } + + /// The Weight property of the Entity Product

+ /// Mapped on table field: "Product"."Weight".
Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable Weight + { + get { return (Nullable)GetValue((int)ProductFieldIndex.Weight, false); } + set { SetValue((int)ProductFieldIndex.Weight, value); } + } + + /// The WeightUnitMeasureCode property of the Entity Product

+ /// Mapped on table field: "Product"."WeightUnitMeasureCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String WeightUnitMeasureCode + { + get { return (System.String)GetValue((int)ProductFieldIndex.WeightUnitMeasureCode, true); } + set { SetValue((int)ProductFieldIndex.WeightUnitMeasureCode, value); } + } + + /// Gets the EntityCollection with the related entities of type 'BillOfMaterialEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BillOfMaterialEntity))] + public virtual EntityCollection BillOfMaterials { get { return GetOrCreateEntityCollection("Product", true, false, ref _billOfMaterials); } } + + /// Gets the EntityCollection with the related entities of type 'BillOfMaterialEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BillOfMaterialEntity))] + public virtual EntityCollection BillOfMaterials_ { get { return GetOrCreateEntityCollection("Product_", true, false, ref _billOfMaterials_); } } + + /// Gets the EntityCollection with the related entities of type 'ProductCostHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductCostHistoryEntity))] + public virtual EntityCollection ProductCostHistories { get { return GetOrCreateEntityCollection("Product", true, false, ref _productCostHistories); } } + + /// Gets the EntityCollection with the related entities of type 'ProductDocumentEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductDocumentEntity))] + public virtual EntityCollection ProductDocuments { get { return GetOrCreateEntityCollection("Product", true, false, ref _productDocuments); } } + + /// Gets the EntityCollection with the related entities of type 'ProductInventoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductInventoryEntity))] + public virtual EntityCollection ProductInventories { get { return GetOrCreateEntityCollection("Product", true, false, ref _productInventories); } } + + /// Gets the EntityCollection with the related entities of type 'ProductListPriceHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductListPriceHistoryEntity))] + public virtual EntityCollection ProductListPriceHistories { get { return GetOrCreateEntityCollection("Product", true, false, ref _productListPriceHistories); } } + + /// Gets the EntityCollection with the related entities of type 'ProductProductPhotoEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductProductPhotoEntity))] + public virtual EntityCollection ProductProductPhotos { get { return GetOrCreateEntityCollection("Product", true, false, ref _productProductPhotos); } } + + /// Gets the EntityCollection with the related entities of type 'ProductReviewEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductReviewEntity))] + public virtual EntityCollection ProductReviews { get { return GetOrCreateEntityCollection("Product", true, false, ref _productReviews); } } + + /// Gets the EntityCollection with the related entities of type 'ProductVendorEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductVendorEntity))] + public virtual EntityCollection ProductVendors { get { return GetOrCreateEntityCollection("Product", true, false, ref _productVendors); } } + + /// Gets the EntityCollection with the related entities of type 'PurchaseOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(PurchaseOrderDetailEntity))] + public virtual EntityCollection PurchaseOrderDetails { get { return GetOrCreateEntityCollection("Product", true, false, ref _purchaseOrderDetails); } } + + /// Gets the EntityCollection with the related entities of type 'ShoppingCartItemEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ShoppingCartItemEntity))] + public virtual EntityCollection ShoppingCartItems { get { return GetOrCreateEntityCollection("Product", true, false, ref _shoppingCartItems); } } + + /// Gets the EntityCollection with the related entities of type 'SpecialOfferProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SpecialOfferProductEntity))] + public virtual EntityCollection SpecialOfferProducts { get { return GetOrCreateEntityCollection("Product", true, false, ref _specialOfferProducts); } } + + /// Gets the EntityCollection with the related entities of type 'TransactionHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(TransactionHistoryEntity))] + public virtual EntityCollection TransactionHistories { get { return GetOrCreateEntityCollection("Product", true, false, ref _transactionHistories); } } + + /// Gets the EntityCollection with the related entities of type 'WorkOrderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(WorkOrderEntity))] + public virtual EntityCollection WorkOrders { get { return GetOrCreateEntityCollection("Product", true, false, ref _workOrders); } } + + /// Gets / sets related entity of type 'ProductModelEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductModelEntity ProductModel + { + get { return _productModel; } + set { SetSingleRelatedEntityNavigator(value, "ProductModel"); } + } + + /// Gets / sets related entity of type 'ProductSubcategoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductSubcategoryEntity ProductSubcategory + { + get { return _productSubcategory; } + set { SetSingleRelatedEntityNavigator(value, "ProductSubcategory"); } + } + + /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual UnitMeasureEntity UnitMeasure + { + get { return _unitMeasure; } + set { SetSingleRelatedEntityNavigator(value, "UnitMeasure"); } + } + + /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual UnitMeasureEntity UnitMeasure_ + { + get { return _unitMeasure_; } + set { SetSingleRelatedEntityNavigator(value, "UnitMeasure_"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductFieldIndex + { + ///Class. + Class, + ///Color. + Color, + ///DaysToManufacture. + DaysToManufacture, + ///DiscontinuedDate. + DiscontinuedDate, + ///FinishedGoodsFlag. + FinishedGoodsFlag, + ///ListPrice. + ListPrice, + ///MakeFlag. + MakeFlag, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///ProductId. + ProductId, + ///ProductLine. + ProductLine, + ///ProductModelId. + ProductModelId, + ///ProductNumber. + ProductNumber, + ///ProductSubcategoryId. + ProductSubcategoryId, + ///ReorderPoint. + ReorderPoint, + ///Rowguid. + Rowguid, + ///SafetyStockLevel. + SafetyStockLevel, + ///SellEndDate. + SellEndDate, + ///SellStartDate. + SellStartDate, + ///Size. + Size, + ///SizeUnitMeasureCode. + SizeUnitMeasureCode, + ///StandardCost. + StandardCost, + ///Style. + Style, + ///Weight. + Weight, + ///WeightUnitMeasureCode. + WeightUnitMeasureCode, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Product. + public partial class ProductRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ProductEntity and BillOfMaterialEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - BillOfMaterial.ComponentId + public virtual IEntityRelation BillOfMaterialEntityUsingComponentId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BillOfMaterials", true, new[] { ProductFields.ProductId, BillOfMaterialFields.ComponentId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and BillOfMaterialEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - BillOfMaterial.ProductAssemblyId + public virtual IEntityRelation BillOfMaterialEntityUsingProductAssemblyId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BillOfMaterials_", true, new[] { ProductFields.ProductId, BillOfMaterialFields.ProductAssemblyId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductCostHistoryEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ProductCostHistory.ProductId + public virtual IEntityRelation ProductCostHistoryEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductCostHistories", true, new[] { ProductFields.ProductId, ProductCostHistoryFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductDocumentEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ProductDocument.ProductId + public virtual IEntityRelation ProductDocumentEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductDocuments", true, new[] { ProductFields.ProductId, ProductDocumentFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductInventoryEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ProductInventory.ProductId + public virtual IEntityRelation ProductInventoryEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductInventories", true, new[] { ProductFields.ProductId, ProductInventoryFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductListPriceHistoryEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ProductListPriceHistory.ProductId + public virtual IEntityRelation ProductListPriceHistoryEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductListPriceHistories", true, new[] { ProductFields.ProductId, ProductListPriceHistoryFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductProductPhotoEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ProductProductPhoto.ProductId + public virtual IEntityRelation ProductProductPhotoEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductProductPhotos", true, new[] { ProductFields.ProductId, ProductProductPhotoFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductReviewEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ProductReview.ProductId + public virtual IEntityRelation ProductReviewEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductReviews", true, new[] { ProductFields.ProductId, ProductReviewFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductVendorEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ProductVendor.ProductId + public virtual IEntityRelation ProductVendorEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductVendors", true, new[] { ProductFields.ProductId, ProductVendorFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and PurchaseOrderDetailEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - PurchaseOrderDetail.ProductId + public virtual IEntityRelation PurchaseOrderDetailEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "PurchaseOrderDetails", true, new[] { ProductFields.ProductId, PurchaseOrderDetailFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ShoppingCartItemEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - ShoppingCartItem.ProductId + public virtual IEntityRelation ShoppingCartItemEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ShoppingCartItems", true, new[] { ProductFields.ProductId, ShoppingCartItemFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and SpecialOfferProductEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - SpecialOfferProduct.ProductId + public virtual IEntityRelation SpecialOfferProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SpecialOfferProducts", true, new[] { ProductFields.ProductId, SpecialOfferProductFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and TransactionHistoryEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - TransactionHistory.ProductId + public virtual IEntityRelation TransactionHistoryEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TransactionHistories", true, new[] { ProductFields.ProductId, TransactionHistoryFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and WorkOrderEntity over the 1:n relation they have, using the relation between the fields: Product.ProductId - WorkOrder.ProductId + public virtual IEntityRelation WorkOrderEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "WorkOrders", true, new[] { ProductFields.ProductId, WorkOrderFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductModelEntity over the m:1 relation they have, using the relation between the fields: Product.ProductModelId - ProductModel.ProductModelId + public virtual IEntityRelation ProductModelEntityUsingProductModelId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ProductModel", false, new[] { ProductModelFields.ProductModelId, ProductFields.ProductModelId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and ProductSubcategoryEntity over the m:1 relation they have, using the relation between the fields: Product.ProductSubcategoryId - ProductSubcategory.ProductSubcategoryId + public virtual IEntityRelation ProductSubcategoryEntityUsingProductSubcategoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ProductSubcategory", false, new[] { ProductSubcategoryFields.ProductSubcategoryId, ProductFields.ProductSubcategoryId }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: Product.SizeUnitMeasureCode - UnitMeasure.UnitMeasureCode + public virtual IEntityRelation UnitMeasureEntityUsingSizeUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "UnitMeasure", false, new[] { UnitMeasureFields.UnitMeasureCode, ProductFields.SizeUnitMeasureCode }); } + } + + /// Returns a new IEntityRelation object, between ProductEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: Product.WeightUnitMeasureCode - UnitMeasure.UnitMeasureCode + public virtual IEntityRelation UnitMeasureEntityUsingWeightUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "UnitMeasure_", false, new[] { UnitMeasureFields.UnitMeasureCode, ProductFields.WeightUnitMeasureCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductRelations + { + internal static readonly IEntityRelation BillOfMaterialEntityUsingComponentIdStatic = new ProductRelations().BillOfMaterialEntityUsingComponentId; + internal static readonly IEntityRelation BillOfMaterialEntityUsingProductAssemblyIdStatic = new ProductRelations().BillOfMaterialEntityUsingProductAssemblyId; + internal static readonly IEntityRelation ProductCostHistoryEntityUsingProductIdStatic = new ProductRelations().ProductCostHistoryEntityUsingProductId; + internal static readonly IEntityRelation ProductDocumentEntityUsingProductIdStatic = new ProductRelations().ProductDocumentEntityUsingProductId; + internal static readonly IEntityRelation ProductInventoryEntityUsingProductIdStatic = new ProductRelations().ProductInventoryEntityUsingProductId; + internal static readonly IEntityRelation ProductListPriceHistoryEntityUsingProductIdStatic = new ProductRelations().ProductListPriceHistoryEntityUsingProductId; + internal static readonly IEntityRelation ProductProductPhotoEntityUsingProductIdStatic = new ProductRelations().ProductProductPhotoEntityUsingProductId; + internal static readonly IEntityRelation ProductReviewEntityUsingProductIdStatic = new ProductRelations().ProductReviewEntityUsingProductId; + internal static readonly IEntityRelation ProductVendorEntityUsingProductIdStatic = new ProductRelations().ProductVendorEntityUsingProductId; + internal static readonly IEntityRelation PurchaseOrderDetailEntityUsingProductIdStatic = new ProductRelations().PurchaseOrderDetailEntityUsingProductId; + internal static readonly IEntityRelation ShoppingCartItemEntityUsingProductIdStatic = new ProductRelations().ShoppingCartItemEntityUsingProductId; + internal static readonly IEntityRelation SpecialOfferProductEntityUsingProductIdStatic = new ProductRelations().SpecialOfferProductEntityUsingProductId; + internal static readonly IEntityRelation TransactionHistoryEntityUsingProductIdStatic = new ProductRelations().TransactionHistoryEntityUsingProductId; + internal static readonly IEntityRelation WorkOrderEntityUsingProductIdStatic = new ProductRelations().WorkOrderEntityUsingProductId; + internal static readonly IEntityRelation ProductModelEntityUsingProductModelIdStatic = new ProductRelations().ProductModelEntityUsingProductModelId; + internal static readonly IEntityRelation ProductSubcategoryEntityUsingProductSubcategoryIdStatic = new ProductRelations().ProductSubcategoryEntityUsingProductSubcategoryId; + internal static readonly IEntityRelation UnitMeasureEntityUsingSizeUnitMeasureCodeStatic = new ProductRelations().UnitMeasureEntityUsingSizeUnitMeasureCode; + internal static readonly IEntityRelation UnitMeasureEntityUsingWeightUnitMeasureCodeStatic = new ProductRelations().UnitMeasureEntityUsingWeightUnitMeasureCode; + + /// CTor + static StaticProductRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs new file mode 100644 index 00000000..a2e54b06 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductInventoryEntity.cs @@ -0,0 +1,285 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductInventory'.

+ [Serializable] + public partial class ProductInventoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private LocationEntity _location; + private ProductEntity _product; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductInventoryEntityStaticMetaData _staticMetaData = new ProductInventoryEntityStaticMetaData(); + private static ProductInventoryRelations _relationsFactory = new ProductInventoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Location + public static readonly string Location = "Location"; + /// Member name Product + public static readonly string Product = "Product"; + } + + /// Static meta-data storage for navigator related information + protected class ProductInventoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductInventoryEntityStaticMetaData() + { + SetEntityCoreInfo("ProductInventoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductInventoryEntity, typeof(ProductInventoryEntity), typeof(ProductInventoryEntityFactory), false); + AddNavigatorMetaData("Location", "ProductInventories", (a, b) => a._location = b, a => a._location, (a, b) => a.Location = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductInventoryRelations.LocationEntityUsingLocationIdStatic, ()=>new ProductInventoryRelations().LocationEntityUsingLocationId, null, new int[] { (int)ProductInventoryFieldIndex.LocationId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.LocationEntity); + AddNavigatorMetaData("Product", "ProductInventories", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductInventoryRelations.ProductEntityUsingProductIdStatic, ()=>new ProductInventoryRelations().ProductEntityUsingProductId, null, new int[] { (int)ProductInventoryFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + } + } + + /// Static ctor + static ProductInventoryEntity() + { + } + + /// CTor + public ProductInventoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductInventoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductInventoryEntity + public ProductInventoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductInventory which data should be fetched into this ProductInventory object + /// PK value for ProductInventory which data should be fetched into this ProductInventory object + public ProductInventoryEntity(System.Int16 locationId, System.Int32 productId) : this(locationId, productId, null) + { + } + + /// CTor + /// PK value for ProductInventory which data should be fetched into this ProductInventory object + /// PK value for ProductInventory which data should be fetched into this ProductInventory object + /// The custom validator object for this ProductInventoryEntity + public ProductInventoryEntity(System.Int16 locationId, System.Int32 productId, IValidator validator) + { + InitClassEmpty(validator, null); + this.LocationId = locationId; + this.ProductId = productId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductInventoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Location' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoLocation() { return CreateRelationInfoForNavigator("Location"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductInventoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductInventoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Location' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathLocation { get { return _staticMetaData.GetPrefetchPathElement("Location", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// The Bin property of the Entity ProductInventory

+ /// Mapped on table field: "ProductInventory"."Bin".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte Bin + { + get { return (System.Byte)GetValue((int)ProductInventoryFieldIndex.Bin, true); } + set { SetValue((int)ProductInventoryFieldIndex.Bin, value); } + } + + /// The LocationId property of the Entity ProductInventory

+ /// Mapped on table field: "ProductInventory"."LocationID".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int16 LocationId + { + get { return (System.Int16)GetValue((int)ProductInventoryFieldIndex.LocationId, true); } + set { SetValue((int)ProductInventoryFieldIndex.LocationId, value); } + } + + /// The ModifiedDate property of the Entity ProductInventory

+ /// Mapped on table field: "ProductInventory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductInventoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductInventoryFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity ProductInventory

+ /// Mapped on table field: "ProductInventory"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductInventoryFieldIndex.ProductId, true); } + set { SetValue((int)ProductInventoryFieldIndex.ProductId, value); } + } + + /// The Quantity property of the Entity ProductInventory

+ /// Mapped on table field: "ProductInventory"."Quantity".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 Quantity + { + get { return (System.Int16)GetValue((int)ProductInventoryFieldIndex.Quantity, true); } + set { SetValue((int)ProductInventoryFieldIndex.Quantity, value); } + } + + /// The Rowguid property of the Entity ProductInventory

+ /// Mapped on table field: "ProductInventory"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)ProductInventoryFieldIndex.Rowguid, true); } + set { SetValue((int)ProductInventoryFieldIndex.Rowguid, value); } + } + + /// The Shelf property of the Entity ProductInventory

+ /// Mapped on table field: "ProductInventory"."Shelf".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 10.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Shelf + { + get { return (System.String)GetValue((int)ProductInventoryFieldIndex.Shelf, true); } + set { SetValue((int)ProductInventoryFieldIndex.Shelf, value); } + } + + /// Gets / sets related entity of type 'LocationEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual LocationEntity Location + { + get { return _location; } + set { SetSingleRelatedEntityNavigator(value, "Location"); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductInventoryFieldIndex + { + ///Bin. + Bin, + ///LocationId. + LocationId, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///Quantity. + Quantity, + ///Rowguid. + Rowguid, + ///Shelf. + Shelf, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductInventory. + public partial class ProductInventoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductInventoryEntity and LocationEntity over the m:1 relation they have, using the relation between the fields: ProductInventory.LocationId - Location.LocationId + public virtual IEntityRelation LocationEntityUsingLocationId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Location", false, new[] { LocationFields.LocationId, ProductInventoryFields.LocationId }); } + } + + /// Returns a new IEntityRelation object, between ProductInventoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ProductInventory.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ProductInventoryFields.ProductId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductInventoryRelations + { + internal static readonly IEntityRelation LocationEntityUsingLocationIdStatic = new ProductInventoryRelations().LocationEntityUsingLocationId; + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductInventoryRelations().ProductEntityUsingProductId; + + /// CTor + static StaticProductInventoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs new file mode 100644 index 00000000..b2a54cb8 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductListPriceHistoryEntity.cs @@ -0,0 +1,238 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductListPriceHistory'.

+ [Serializable] + public partial class ProductListPriceHistoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductListPriceHistoryEntityStaticMetaData _staticMetaData = new ProductListPriceHistoryEntityStaticMetaData(); + private static ProductListPriceHistoryRelations _relationsFactory = new ProductListPriceHistoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + } + + /// Static meta-data storage for navigator related information + protected class ProductListPriceHistoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductListPriceHistoryEntityStaticMetaData() + { + SetEntityCoreInfo("ProductListPriceHistoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductListPriceHistoryEntity, typeof(ProductListPriceHistoryEntity), typeof(ProductListPriceHistoryEntityFactory), false); + AddNavigatorMetaData("Product", "ProductListPriceHistories", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductListPriceHistoryRelations.ProductEntityUsingProductIdStatic, ()=>new ProductListPriceHistoryRelations().ProductEntityUsingProductId, null, new int[] { (int)ProductListPriceHistoryFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + } + } + + /// Static ctor + static ProductListPriceHistoryEntity() + { + } + + /// CTor + public ProductListPriceHistoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductListPriceHistoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductListPriceHistoryEntity + public ProductListPriceHistoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object + /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object + public ProductListPriceHistoryEntity(System.Int32 productId, System.DateTime startDate) : this(productId, startDate, null) + { + } + + /// CTor + /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object + /// PK value for ProductListPriceHistory which data should be fetched into this ProductListPriceHistory object + /// The custom validator object for this ProductListPriceHistoryEntity + public ProductListPriceHistoryEntity(System.Int32 productId, System.DateTime startDate, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductId = productId; + this.StartDate = startDate; + } + + /// Private CTor for deserialization + /// + /// + protected ProductListPriceHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductListPriceHistoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductListPriceHistoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// The EndDate property of the Entity ProductListPriceHistory

+ /// Mapped on table field: "ProductListPriceHistory"."EndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable EndDate + { + get { return (Nullable)GetValue((int)ProductListPriceHistoryFieldIndex.EndDate, false); } + set { SetValue((int)ProductListPriceHistoryFieldIndex.EndDate, value); } + } + + /// The ListPrice property of the Entity ProductListPriceHistory

+ /// Mapped on table field: "ProductListPriceHistory"."ListPrice".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal ListPrice + { + get { return (System.Decimal)GetValue((int)ProductListPriceHistoryFieldIndex.ListPrice, true); } + set { SetValue((int)ProductListPriceHistoryFieldIndex.ListPrice, value); } + } + + /// The ModifiedDate property of the Entity ProductListPriceHistory

+ /// Mapped on table field: "ProductListPriceHistory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductListPriceHistoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductListPriceHistoryFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity ProductListPriceHistory

+ /// Mapped on table field: "ProductListPriceHistory"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductListPriceHistoryFieldIndex.ProductId, true); } + set { SetValue((int)ProductListPriceHistoryFieldIndex.ProductId, value); } + } + + /// The StartDate property of the Entity ProductListPriceHistory

+ /// Mapped on table field: "ProductListPriceHistory"."StartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.DateTime StartDate + { + get { return (System.DateTime)GetValue((int)ProductListPriceHistoryFieldIndex.StartDate, true); } + set { SetValue((int)ProductListPriceHistoryFieldIndex.StartDate, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductListPriceHistoryFieldIndex + { + ///EndDate. + EndDate, + ///ListPrice. + ListPrice, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///StartDate. + StartDate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductListPriceHistory. + public partial class ProductListPriceHistoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductListPriceHistoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ProductListPriceHistory.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ProductListPriceHistoryFields.ProductId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductListPriceHistoryRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductListPriceHistoryRelations().ProductEntityUsingProductId; + + /// CTor + static StaticProductListPriceHistoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelEntity.cs new file mode 100644 index 00000000..79a95fd2 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelEntity.cs @@ -0,0 +1,285 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductModel'.

+ [Serializable] + public partial class ProductModelEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _products; + private EntityCollection _productModelIllustrations; + private EntityCollection _productModelProductDescriptionCultures; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductModelEntityStaticMetaData _staticMetaData = new ProductModelEntityStaticMetaData(); + private static ProductModelRelations _relationsFactory = new ProductModelRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Products + public static readonly string Products = "Products"; + /// Member name ProductModelIllustrations + public static readonly string ProductModelIllustrations = "ProductModelIllustrations"; + /// Member name ProductModelProductDescriptionCultures + public static readonly string ProductModelProductDescriptionCultures = "ProductModelProductDescriptionCultures"; + } + + /// Static meta-data storage for navigator related information + protected class ProductModelEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductModelEntityStaticMetaData() + { + SetEntityCoreInfo("ProductModelEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelEntity, typeof(ProductModelEntity), typeof(ProductModelEntityFactory), false); + AddNavigatorMetaData>("Products", a => a._products, (a, b) => a._products = b, a => a.Products, () => new ProductModelRelations().ProductEntityUsingProductModelId, typeof(ProductEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData>("ProductModelIllustrations", a => a._productModelIllustrations, (a, b) => a._productModelIllustrations = b, a => a.ProductModelIllustrations, () => new ProductModelRelations().ProductModelIllustrationEntityUsingProductModelId, typeof(ProductModelIllustrationEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelIllustrationEntity); + AddNavigatorMetaData>("ProductModelProductDescriptionCultures", a => a._productModelProductDescriptionCultures, (a, b) => a._productModelProductDescriptionCultures = b, a => a.ProductModelProductDescriptionCultures, () => new ProductModelRelations().ProductModelProductDescriptionCultureEntityUsingProductModelId, typeof(ProductModelProductDescriptionCultureEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelProductDescriptionCultureEntity); + } + } + + /// Static ctor + static ProductModelEntity() + { + } + + /// CTor + public ProductModelEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductModelEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductModelEntity + public ProductModelEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductModel which data should be fetched into this ProductModel object + public ProductModelEntity(System.Int32 productModelId) : this(productModelId, null) + { + } + + /// CTor + /// PK value for ProductModel which data should be fetched into this ProductModel object + /// The custom validator object for this ProductModelEntity + public ProductModelEntity(System.Int32 productModelId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductModelId = productModelId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductModelEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProducts() { return CreateRelationInfoForNavigator("Products"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelIllustration' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModelIllustrations() { return CreateRelationInfoForNavigator("ProductModelIllustrations"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductModelProductDescriptionCulture' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModelProductDescriptionCultures() { return CreateRelationInfoForNavigator("ProductModelProductDescriptionCultures"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductModelEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductModelRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProducts { get { return _staticMetaData.GetPrefetchPathElement("Products", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelIllustration' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModelIllustrations { get { return _staticMetaData.GetPrefetchPathElement("ProductModelIllustrations", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModelProductDescriptionCulture' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModelProductDescriptionCultures { get { return _staticMetaData.GetPrefetchPathElement("ProductModelProductDescriptionCultures", CommonEntityBase.CreateEntityCollection()); } } + + /// The CatalogDescription property of the Entity ProductModel

+ /// Mapped on table field: "ProductModel"."CatalogDescription".
Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String CatalogDescription + { + get { return (System.String)GetValue((int)ProductModelFieldIndex.CatalogDescription, true); } + set { SetValue((int)ProductModelFieldIndex.CatalogDescription, value); } + } + + /// The Instructions property of the Entity ProductModel

+ /// Mapped on table field: "ProductModel"."Instructions".
Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Instructions + { + get { return (System.String)GetValue((int)ProductModelFieldIndex.Instructions, true); } + set { SetValue((int)ProductModelFieldIndex.Instructions, value); } + } + + /// The ModifiedDate property of the Entity ProductModel

+ /// Mapped on table field: "ProductModel"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductModelFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductModelFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity ProductModel

+ /// Mapped on table field: "ProductModel"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ProductModelFieldIndex.Name, true); } + set { SetValue((int)ProductModelFieldIndex.Name, value); } + } + + /// The ProductModelId property of the Entity ProductModel

+ /// Mapped on table field: "ProductModel"."ProductModelID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ProductModelId + { + get { return (System.Int32)GetValue((int)ProductModelFieldIndex.ProductModelId, true); } + set { SetValue((int)ProductModelFieldIndex.ProductModelId, value); } } + + /// The Rowguid property of the Entity ProductModel

+ /// Mapped on table field: "ProductModel"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)ProductModelFieldIndex.Rowguid, true); } + set { SetValue((int)ProductModelFieldIndex.Rowguid, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductEntity))] + public virtual EntityCollection Products { get { return GetOrCreateEntityCollection("ProductModel", true, false, ref _products); } } + + /// Gets the EntityCollection with the related entities of type 'ProductModelIllustrationEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductModelIllustrationEntity))] + public virtual EntityCollection ProductModelIllustrations { get { return GetOrCreateEntityCollection("ProductModel", true, false, ref _productModelIllustrations); } } + + /// Gets the EntityCollection with the related entities of type 'ProductModelProductDescriptionCultureEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductModelProductDescriptionCultureEntity))] + public virtual EntityCollection ProductModelProductDescriptionCultures { get { return GetOrCreateEntityCollection("ProductModel", true, false, ref _productModelProductDescriptionCultures); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductModelFieldIndex + { + ///CatalogDescription. + CatalogDescription, + ///Instructions. + Instructions, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///ProductModelId. + ProductModelId, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductModel. + public partial class ProductModelRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ProductModelEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: ProductModel.ProductModelId - Product.ProductModelId + public virtual IEntityRelation ProductEntityUsingProductModelId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Products", true, new[] { ProductModelFields.ProductModelId, ProductFields.ProductModelId }); } + } + + /// Returns a new IEntityRelation object, between ProductModelEntity and ProductModelIllustrationEntity over the 1:n relation they have, using the relation between the fields: ProductModel.ProductModelId - ProductModelIllustration.ProductModelId + public virtual IEntityRelation ProductModelIllustrationEntityUsingProductModelId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductModelIllustrations", true, new[] { ProductModelFields.ProductModelId, ProductModelIllustrationFields.ProductModelId }); } + } + + /// Returns a new IEntityRelation object, between ProductModelEntity and ProductModelProductDescriptionCultureEntity over the 1:n relation they have, using the relation between the fields: ProductModel.ProductModelId - ProductModelProductDescriptionCulture.ProductModelId + public virtual IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductModelId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductModelProductDescriptionCultures", true, new[] { ProductModelFields.ProductModelId, ProductModelProductDescriptionCultureFields.ProductModelId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductModelRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductModelIdStatic = new ProductModelRelations().ProductEntityUsingProductModelId; + internal static readonly IEntityRelation ProductModelIllustrationEntityUsingProductModelIdStatic = new ProductModelRelations().ProductModelIllustrationEntityUsingProductModelId; + internal static readonly IEntityRelation ProductModelProductDescriptionCultureEntityUsingProductModelIdStatic = new ProductModelRelations().ProductModelProductDescriptionCultureEntityUsingProductModelId; + + /// CTor + static StaticProductModelRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs new file mode 100644 index 00000000..44416842 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelIllustrationEntity.cs @@ -0,0 +1,245 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductModelIllustration'.

+ [Serializable] + public partial class ProductModelIllustrationEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private IllustrationEntity _illustration; + private ProductModelEntity _productModel; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductModelIllustrationEntityStaticMetaData _staticMetaData = new ProductModelIllustrationEntityStaticMetaData(); + private static ProductModelIllustrationRelations _relationsFactory = new ProductModelIllustrationRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Illustration + public static readonly string Illustration = "Illustration"; + /// Member name ProductModel + public static readonly string ProductModel = "ProductModel"; + } + + /// Static meta-data storage for navigator related information + protected class ProductModelIllustrationEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductModelIllustrationEntityStaticMetaData() + { + SetEntityCoreInfo("ProductModelIllustrationEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelIllustrationEntity, typeof(ProductModelIllustrationEntity), typeof(ProductModelIllustrationEntityFactory), false); + AddNavigatorMetaData("Illustration", "ProductModelIllustrations", (a, b) => a._illustration = b, a => a._illustration, (a, b) => a.Illustration = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductModelIllustrationRelations.IllustrationEntityUsingIllustrationIdStatic, ()=>new ProductModelIllustrationRelations().IllustrationEntityUsingIllustrationId, null, new int[] { (int)ProductModelIllustrationFieldIndex.IllustrationId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.IllustrationEntity); + AddNavigatorMetaData("ProductModel", "ProductModelIllustrations", (a, b) => a._productModel = b, a => a._productModel, (a, b) => a.ProductModel = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductModelIllustrationRelations.ProductModelEntityUsingProductModelIdStatic, ()=>new ProductModelIllustrationRelations().ProductModelEntityUsingProductModelId, null, new int[] { (int)ProductModelIllustrationFieldIndex.ProductModelId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelEntity); + } + } + + /// Static ctor + static ProductModelIllustrationEntity() + { + } + + /// CTor + public ProductModelIllustrationEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductModelIllustrationEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductModelIllustrationEntity + public ProductModelIllustrationEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object + /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object + public ProductModelIllustrationEntity(System.Int32 illustrationId, System.Int32 productModelId) : this(illustrationId, productModelId, null) + { + } + + /// CTor + /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object + /// PK value for ProductModelIllustration which data should be fetched into this ProductModelIllustration object + /// The custom validator object for this ProductModelIllustrationEntity + public ProductModelIllustrationEntity(System.Int32 illustrationId, System.Int32 productModelId, IValidator validator) + { + InitClassEmpty(validator, null); + this.IllustrationId = illustrationId; + this.ProductModelId = productModelId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductModelIllustrationEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Illustration' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoIllustration() { return CreateRelationInfoForNavigator("Illustration"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductModel' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModel() { return CreateRelationInfoForNavigator("ProductModel"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductModelIllustrationEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductModelIllustrationRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Illustration' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathIllustration { get { return _staticMetaData.GetPrefetchPathElement("Illustration", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModel' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModel { get { return _staticMetaData.GetPrefetchPathElement("ProductModel", CommonEntityBase.CreateEntityCollection()); } } + + /// The IllustrationId property of the Entity ProductModelIllustration

+ /// Mapped on table field: "ProductModelIllustration"."IllustrationID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 IllustrationId + { + get { return (System.Int32)GetValue((int)ProductModelIllustrationFieldIndex.IllustrationId, true); } + set { SetValue((int)ProductModelIllustrationFieldIndex.IllustrationId, value); } + } + + /// The ModifiedDate property of the Entity ProductModelIllustration

+ /// Mapped on table field: "ProductModelIllustration"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductModelIllustrationFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductModelIllustrationFieldIndex.ModifiedDate, value); } + } + + /// The ProductModelId property of the Entity ProductModelIllustration

+ /// Mapped on table field: "ProductModelIllustration"."ProductModelID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductModelId + { + get { return (System.Int32)GetValue((int)ProductModelIllustrationFieldIndex.ProductModelId, true); } + set { SetValue((int)ProductModelIllustrationFieldIndex.ProductModelId, value); } + } + + /// Gets / sets related entity of type 'IllustrationEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual IllustrationEntity Illustration + { + get { return _illustration; } + set { SetSingleRelatedEntityNavigator(value, "Illustration"); } + } + + /// Gets / sets related entity of type 'ProductModelEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductModelEntity ProductModel + { + get { return _productModel; } + set { SetSingleRelatedEntityNavigator(value, "ProductModel"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductModelIllustrationFieldIndex + { + ///IllustrationId. + IllustrationId, + ///ModifiedDate. + ModifiedDate, + ///ProductModelId. + ProductModelId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductModelIllustration. + public partial class ProductModelIllustrationRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductModelIllustrationEntity and IllustrationEntity over the m:1 relation they have, using the relation between the fields: ProductModelIllustration.IllustrationId - Illustration.IllustrationId + public virtual IEntityRelation IllustrationEntityUsingIllustrationId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Illustration", false, new[] { IllustrationFields.IllustrationId, ProductModelIllustrationFields.IllustrationId }); } + } + + /// Returns a new IEntityRelation object, between ProductModelIllustrationEntity and ProductModelEntity over the m:1 relation they have, using the relation between the fields: ProductModelIllustration.ProductModelId - ProductModel.ProductModelId + public virtual IEntityRelation ProductModelEntityUsingProductModelId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ProductModel", false, new[] { ProductModelFields.ProductModelId, ProductModelIllustrationFields.ProductModelId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductModelIllustrationRelations + { + internal static readonly IEntityRelation IllustrationEntityUsingIllustrationIdStatic = new ProductModelIllustrationRelations().IllustrationEntityUsingIllustrationId; + internal static readonly IEntityRelation ProductModelEntityUsingProductModelIdStatic = new ProductModelIllustrationRelations().ProductModelEntityUsingProductModelId; + + /// CTor + static StaticProductModelIllustrationRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs new file mode 100644 index 00000000..fd62fb4a --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductModelProductDescriptionCultureEntity.cs @@ -0,0 +1,285 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductModelProductDescriptionCulture'.

+ [Serializable] + public partial class ProductModelProductDescriptionCultureEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private CultureEntity _culture; + private ProductDescriptionEntity _productDescription; + private ProductModelEntity _productModel; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductModelProductDescriptionCultureEntityStaticMetaData _staticMetaData = new ProductModelProductDescriptionCultureEntityStaticMetaData(); + private static ProductModelProductDescriptionCultureRelations _relationsFactory = new ProductModelProductDescriptionCultureRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Culture + public static readonly string Culture = "Culture"; + /// Member name ProductDescription + public static readonly string ProductDescription = "ProductDescription"; + /// Member name ProductModel + public static readonly string ProductModel = "ProductModel"; + } + + /// Static meta-data storage for navigator related information + protected class ProductModelProductDescriptionCultureEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductModelProductDescriptionCultureEntityStaticMetaData() + { + SetEntityCoreInfo("ProductModelProductDescriptionCultureEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelProductDescriptionCultureEntity, typeof(ProductModelProductDescriptionCultureEntity), typeof(ProductModelProductDescriptionCultureEntityFactory), false); + AddNavigatorMetaData("Culture", "ProductModelProductDescriptionCultures", (a, b) => a._culture = b, a => a._culture, (a, b) => a.Culture = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductModelProductDescriptionCultureRelations.CultureEntityUsingCultureIdStatic, ()=>new ProductModelProductDescriptionCultureRelations().CultureEntityUsingCultureId, null, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.CultureId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CultureEntity); + AddNavigatorMetaData("ProductDescription", "ProductModelProductDescriptionCultures", (a, b) => a._productDescription = b, a => a._productDescription, (a, b) => a.ProductDescription = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductModelProductDescriptionCultureRelations.ProductDescriptionEntityUsingProductDescriptionIdStatic, ()=>new ProductModelProductDescriptionCultureRelations().ProductDescriptionEntityUsingProductDescriptionId, null, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductDescriptionEntity); + AddNavigatorMetaData("ProductModel", "ProductModelProductDescriptionCultures", (a, b) => a._productModel = b, a => a._productModel, (a, b) => a.ProductModel = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductModelProductDescriptionCultureRelations.ProductModelEntityUsingProductModelIdStatic, ()=>new ProductModelProductDescriptionCultureRelations().ProductModelEntityUsingProductModelId, null, new int[] { (int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelEntity); + } + } + + /// Static ctor + static ProductModelProductDescriptionCultureEntity() + { + } + + /// CTor + public ProductModelProductDescriptionCultureEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductModelProductDescriptionCultureEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductModelProductDescriptionCultureEntity + public ProductModelProductDescriptionCultureEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object + /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object + /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object + public ProductModelProductDescriptionCultureEntity(System.String cultureId, System.Int32 productDescriptionId, System.Int32 productModelId) : this(cultureId, productDescriptionId, productModelId, null) + { + } + + /// CTor + /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object + /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object + /// PK value for ProductModelProductDescriptionCulture which data should be fetched into this ProductModelProductDescriptionCulture object + /// The custom validator object for this ProductModelProductDescriptionCultureEntity + public ProductModelProductDescriptionCultureEntity(System.String cultureId, System.Int32 productDescriptionId, System.Int32 productModelId, IValidator validator) + { + InitClassEmpty(validator, null); + this.CultureId = cultureId; + this.ProductDescriptionId = productDescriptionId; + this.ProductModelId = productModelId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductModelProductDescriptionCultureEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Culture' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCulture() { return CreateRelationInfoForNavigator("Culture"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductDescription' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductDescription() { return CreateRelationInfoForNavigator("ProductDescription"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductModel' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductModel() { return CreateRelationInfoForNavigator("ProductModel"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductModelProductDescriptionCultureEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductModelProductDescriptionCultureRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Culture' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCulture { get { return _staticMetaData.GetPrefetchPathElement("Culture", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductDescription' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductDescription { get { return _staticMetaData.GetPrefetchPathElement("ProductDescription", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductModel' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductModel { get { return _staticMetaData.GetPrefetchPathElement("ProductModel", CommonEntityBase.CreateEntityCollection()); } } + + /// The CultureId property of the Entity ProductModelProductDescriptionCulture

+ /// Mapped on table field: "ProductModelProductDescriptionCulture"."CultureID".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 6.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String CultureId + { + get { return (System.String)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.CultureId, true); } + set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.CultureId, value); } + } + + /// The ModifiedDate property of the Entity ProductModelProductDescriptionCulture

+ /// Mapped on table field: "ProductModelProductDescriptionCulture"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.ModifiedDate, value); } + } + + /// The ProductDescriptionId property of the Entity ProductModelProductDescriptionCulture

+ /// Mapped on table field: "ProductModelProductDescriptionCulture"."ProductDescriptionID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductDescriptionId + { + get { return (System.Int32)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId, true); } + set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId, value); } + } + + /// The ProductModelId property of the Entity ProductModelProductDescriptionCulture

+ /// Mapped on table field: "ProductModelProductDescriptionCulture"."ProductModelID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductModelId + { + get { return (System.Int32)GetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId, true); } + set { SetValue((int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId, value); } + } + + /// Gets / sets related entity of type 'CultureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CultureEntity Culture + { + get { return _culture; } + set { SetSingleRelatedEntityNavigator(value, "Culture"); } + } + + /// Gets / sets related entity of type 'ProductDescriptionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductDescriptionEntity ProductDescription + { + get { return _productDescription; } + set { SetSingleRelatedEntityNavigator(value, "ProductDescription"); } + } + + /// Gets / sets related entity of type 'ProductModelEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductModelEntity ProductModel + { + get { return _productModel; } + set { SetSingleRelatedEntityNavigator(value, "ProductModel"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductModelProductDescriptionCultureFieldIndex + { + ///CultureId. + CultureId, + ///ModifiedDate. + ModifiedDate, + ///ProductDescriptionId. + ProductDescriptionId, + ///ProductModelId. + ProductModelId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductModelProductDescriptionCulture. + public partial class ProductModelProductDescriptionCultureRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductModelProductDescriptionCultureEntity and CultureEntity over the m:1 relation they have, using the relation between the fields: ProductModelProductDescriptionCulture.CultureId - Culture.CultureId + public virtual IEntityRelation CultureEntityUsingCultureId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Culture", false, new[] { CultureFields.CultureId, ProductModelProductDescriptionCultureFields.CultureId }); } + } + + /// Returns a new IEntityRelation object, between ProductModelProductDescriptionCultureEntity and ProductDescriptionEntity over the m:1 relation they have, using the relation between the fields: ProductModelProductDescriptionCulture.ProductDescriptionId - ProductDescription.ProductDescriptionId + public virtual IEntityRelation ProductDescriptionEntityUsingProductDescriptionId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ProductDescription", false, new[] { ProductDescriptionFields.ProductDescriptionId, ProductModelProductDescriptionCultureFields.ProductDescriptionId }); } + } + + /// Returns a new IEntityRelation object, between ProductModelProductDescriptionCultureEntity and ProductModelEntity over the m:1 relation they have, using the relation between the fields: ProductModelProductDescriptionCulture.ProductModelId - ProductModel.ProductModelId + public virtual IEntityRelation ProductModelEntityUsingProductModelId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ProductModel", false, new[] { ProductModelFields.ProductModelId, ProductModelProductDescriptionCultureFields.ProductModelId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductModelProductDescriptionCultureRelations + { + internal static readonly IEntityRelation CultureEntityUsingCultureIdStatic = new ProductModelProductDescriptionCultureRelations().CultureEntityUsingCultureId; + internal static readonly IEntityRelation ProductDescriptionEntityUsingProductDescriptionIdStatic = new ProductModelProductDescriptionCultureRelations().ProductDescriptionEntityUsingProductDescriptionId; + internal static readonly IEntityRelation ProductModelEntityUsingProductModelIdStatic = new ProductModelProductDescriptionCultureRelations().ProductModelEntityUsingProductModelId; + + /// CTor + static StaticProductModelProductDescriptionCultureRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs new file mode 100644 index 00000000..f7b31cb2 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductPhotoEntity.cs @@ -0,0 +1,239 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductPhoto'.

+ [Serializable] + public partial class ProductPhotoEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productProductPhotos; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductPhotoEntityStaticMetaData _staticMetaData = new ProductPhotoEntityStaticMetaData(); + private static ProductPhotoRelations _relationsFactory = new ProductPhotoRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductProductPhotos + public static readonly string ProductProductPhotos = "ProductProductPhotos"; + } + + /// Static meta-data storage for navigator related information + protected class ProductPhotoEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductPhotoEntityStaticMetaData() + { + SetEntityCoreInfo("ProductPhotoEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductPhotoEntity, typeof(ProductPhotoEntity), typeof(ProductPhotoEntityFactory), false); + AddNavigatorMetaData>("ProductProductPhotos", a => a._productProductPhotos, (a, b) => a._productProductPhotos = b, a => a.ProductProductPhotos, () => new ProductPhotoRelations().ProductProductPhotoEntityUsingProductPhotoId, typeof(ProductProductPhotoEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductProductPhotoEntity); + } + } + + /// Static ctor + static ProductPhotoEntity() + { + } + + /// CTor + public ProductPhotoEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductPhotoEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductPhotoEntity + public ProductPhotoEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductPhoto which data should be fetched into this ProductPhoto object + public ProductPhotoEntity(System.Int32 productPhotoId) : this(productPhotoId, null) + { + } + + /// CTor + /// PK value for ProductPhoto which data should be fetched into this ProductPhoto object + /// The custom validator object for this ProductPhotoEntity + public ProductPhotoEntity(System.Int32 productPhotoId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductPhotoId = productPhotoId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductPhotoEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductProductPhoto' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductProductPhotos() { return CreateRelationInfoForNavigator("ProductProductPhotos"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductPhotoEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductPhotoRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductProductPhoto' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductProductPhotos { get { return _staticMetaData.GetPrefetchPathElement("ProductProductPhotos", CommonEntityBase.CreateEntityCollection()); } } + + /// The LargePhoto property of the Entity ProductPhoto

+ /// Mapped on table field: "ProductPhoto"."LargePhoto".
Table field type characteristics (type, precision, scale, length): VarBinary, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.Byte[] LargePhoto + { + get { return (System.Byte[])GetValue((int)ProductPhotoFieldIndex.LargePhoto, true); } + set { SetValue((int)ProductPhotoFieldIndex.LargePhoto, value); } + } + + /// The LargePhotoFileName property of the Entity ProductPhoto

+ /// Mapped on table field: "ProductPhoto"."LargePhotoFileName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String LargePhotoFileName + { + get { return (System.String)GetValue((int)ProductPhotoFieldIndex.LargePhotoFileName, true); } + set { SetValue((int)ProductPhotoFieldIndex.LargePhotoFileName, value); } + } + + /// The ModifiedDate property of the Entity ProductPhoto

+ /// Mapped on table field: "ProductPhoto"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductPhotoFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductPhotoFieldIndex.ModifiedDate, value); } + } + + /// The ProductPhotoId property of the Entity ProductPhoto

+ /// Mapped on table field: "ProductPhoto"."ProductPhotoID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ProductPhotoId + { + get { return (System.Int32)GetValue((int)ProductPhotoFieldIndex.ProductPhotoId, true); } + set { SetValue((int)ProductPhotoFieldIndex.ProductPhotoId, value); } } + + /// The ThumbNailPhoto property of the Entity ProductPhoto

+ /// Mapped on table field: "ProductPhoto"."ThumbNailPhoto".
Table field type characteristics (type, precision, scale, length): VarBinary, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.Byte[] ThumbNailPhoto + { + get { return (System.Byte[])GetValue((int)ProductPhotoFieldIndex.ThumbNailPhoto, true); } + set { SetValue((int)ProductPhotoFieldIndex.ThumbNailPhoto, value); } + } + + /// The ThumbnailPhotoFileName property of the Entity ProductPhoto

+ /// Mapped on table field: "ProductPhoto"."ThumbnailPhotoFileName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String ThumbnailPhotoFileName + { + get { return (System.String)GetValue((int)ProductPhotoFieldIndex.ThumbnailPhotoFileName, true); } + set { SetValue((int)ProductPhotoFieldIndex.ThumbnailPhotoFileName, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductProductPhotoEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductProductPhotoEntity))] + public virtual EntityCollection ProductProductPhotos { get { return GetOrCreateEntityCollection("ProductPhoto", true, false, ref _productProductPhotos); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductPhotoFieldIndex + { + ///LargePhoto. + LargePhoto, + ///LargePhotoFileName. + LargePhotoFileName, + ///ModifiedDate. + ModifiedDate, + ///ProductPhotoId. + ProductPhotoId, + ///ThumbNailPhoto. + ThumbNailPhoto, + ///ThumbnailPhotoFileName. + ThumbnailPhotoFileName, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductPhoto. + public partial class ProductPhotoRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ProductPhotoEntity and ProductProductPhotoEntity over the 1:n relation they have, using the relation between the fields: ProductPhoto.ProductPhotoId - ProductProductPhoto.ProductPhotoId + public virtual IEntityRelation ProductProductPhotoEntityUsingProductPhotoId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductProductPhotos", true, new[] { ProductPhotoFields.ProductPhotoId, ProductProductPhotoFields.ProductPhotoId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductPhotoRelations + { + internal static readonly IEntityRelation ProductProductPhotoEntityUsingProductPhotoIdStatic = new ProductPhotoRelations().ProductProductPhotoEntityUsingProductPhotoId; + + /// CTor + static StaticProductPhotoRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs new file mode 100644 index 00000000..84f341ba --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductProductPhotoEntity.cs @@ -0,0 +1,255 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductProductPhoto'.

+ [Serializable] + public partial class ProductProductPhotoEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + private ProductPhotoEntity _productPhoto; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductProductPhotoEntityStaticMetaData _staticMetaData = new ProductProductPhotoEntityStaticMetaData(); + private static ProductProductPhotoRelations _relationsFactory = new ProductProductPhotoRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + /// Member name ProductPhoto + public static readonly string ProductPhoto = "ProductPhoto"; + } + + /// Static meta-data storage for navigator related information + protected class ProductProductPhotoEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductProductPhotoEntityStaticMetaData() + { + SetEntityCoreInfo("ProductProductPhotoEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductProductPhotoEntity, typeof(ProductProductPhotoEntity), typeof(ProductProductPhotoEntityFactory), false); + AddNavigatorMetaData("Product", "ProductProductPhotos", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductProductPhotoRelations.ProductEntityUsingProductIdStatic, ()=>new ProductProductPhotoRelations().ProductEntityUsingProductId, null, new int[] { (int)ProductProductPhotoFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("ProductPhoto", "ProductProductPhotos", (a, b) => a._productPhoto = b, a => a._productPhoto, (a, b) => a.ProductPhoto = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductProductPhotoRelations.ProductPhotoEntityUsingProductPhotoIdStatic, ()=>new ProductProductPhotoRelations().ProductPhotoEntityUsingProductPhotoId, null, new int[] { (int)ProductProductPhotoFieldIndex.ProductPhotoId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductPhotoEntity); + } + } + + /// Static ctor + static ProductProductPhotoEntity() + { + } + + /// CTor + public ProductProductPhotoEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductProductPhotoEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductProductPhotoEntity + public ProductProductPhotoEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object + /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object + public ProductProductPhotoEntity(System.Int32 productId, System.Int32 productPhotoId) : this(productId, productPhotoId, null) + { + } + + /// CTor + /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object + /// PK value for ProductProductPhoto which data should be fetched into this ProductProductPhoto object + /// The custom validator object for this ProductProductPhotoEntity + public ProductProductPhotoEntity(System.Int32 productId, System.Int32 productPhotoId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductId = productId; + this.ProductPhotoId = productPhotoId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductProductPhotoEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductPhoto' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductPhoto() { return CreateRelationInfoForNavigator("ProductPhoto"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductProductPhotoEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductProductPhotoRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductPhoto' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductPhoto { get { return _staticMetaData.GetPrefetchPathElement("ProductPhoto", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity ProductProductPhoto

+ /// Mapped on table field: "ProductProductPhoto"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductProductPhotoFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductProductPhotoFieldIndex.ModifiedDate, value); } + } + + /// The Primary property of the Entity ProductProductPhoto

+ /// Mapped on table field: "ProductProductPhoto"."Primary".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean Primary + { + get { return (System.Boolean)GetValue((int)ProductProductPhotoFieldIndex.Primary, true); } + set { SetValue((int)ProductProductPhotoFieldIndex.Primary, value); } + } + + /// The ProductId property of the Entity ProductProductPhoto

+ /// Mapped on table field: "ProductProductPhoto"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductProductPhotoFieldIndex.ProductId, true); } + set { SetValue((int)ProductProductPhotoFieldIndex.ProductId, value); } + } + + /// The ProductPhotoId property of the Entity ProductProductPhoto

+ /// Mapped on table field: "ProductProductPhoto"."ProductPhotoID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductPhotoId + { + get { return (System.Int32)GetValue((int)ProductProductPhotoFieldIndex.ProductPhotoId, true); } + set { SetValue((int)ProductProductPhotoFieldIndex.ProductPhotoId, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + /// Gets / sets related entity of type 'ProductPhotoEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductPhotoEntity ProductPhoto + { + get { return _productPhoto; } + set { SetSingleRelatedEntityNavigator(value, "ProductPhoto"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductProductPhotoFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Primary. + Primary, + ///ProductId. + ProductId, + ///ProductPhotoId. + ProductPhotoId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductProductPhoto. + public partial class ProductProductPhotoRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductProductPhotoEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ProductProductPhoto.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ProductProductPhotoFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductProductPhotoEntity and ProductPhotoEntity over the m:1 relation they have, using the relation between the fields: ProductProductPhoto.ProductPhotoId - ProductPhoto.ProductPhotoId + public virtual IEntityRelation ProductPhotoEntityUsingProductPhotoId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ProductPhoto", false, new[] { ProductPhotoFields.ProductPhotoId, ProductProductPhotoFields.ProductPhotoId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductProductPhotoRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductProductPhotoRelations().ProductEntityUsingProductId; + internal static readonly IEntityRelation ProductPhotoEntityUsingProductPhotoIdStatic = new ProductProductPhotoRelations().ProductPhotoEntityUsingProductPhotoId; + + /// CTor + static StaticProductProductPhotoRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs new file mode 100644 index 00000000..7d82ed85 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductReviewEntity.cs @@ -0,0 +1,264 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductReview'.

+ [Serializable] + public partial class ProductReviewEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductReviewEntityStaticMetaData _staticMetaData = new ProductReviewEntityStaticMetaData(); + private static ProductReviewRelations _relationsFactory = new ProductReviewRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + } + + /// Static meta-data storage for navigator related information + protected class ProductReviewEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductReviewEntityStaticMetaData() + { + SetEntityCoreInfo("ProductReviewEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductReviewEntity, typeof(ProductReviewEntity), typeof(ProductReviewEntityFactory), false); + AddNavigatorMetaData("Product", "ProductReviews", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductReviewRelations.ProductEntityUsingProductIdStatic, ()=>new ProductReviewRelations().ProductEntityUsingProductId, null, new int[] { (int)ProductReviewFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + } + } + + /// Static ctor + static ProductReviewEntity() + { + } + + /// CTor + public ProductReviewEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductReviewEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductReviewEntity + public ProductReviewEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductReview which data should be fetched into this ProductReview object + public ProductReviewEntity(System.Int32 productReviewId) : this(productReviewId, null) + { + } + + /// CTor + /// PK value for ProductReview which data should be fetched into this ProductReview object + /// The custom validator object for this ProductReviewEntity + public ProductReviewEntity(System.Int32 productReviewId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductReviewId = productReviewId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductReviewEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductReviewEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductReviewRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// The Comments property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."Comments".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3850.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Comments + { + get { return (System.String)GetValue((int)ProductReviewFieldIndex.Comments, true); } + set { SetValue((int)ProductReviewFieldIndex.Comments, value); } + } + + /// The EmailAddress property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."EmailAddress".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String EmailAddress + { + get { return (System.String)GetValue((int)ProductReviewFieldIndex.EmailAddress, true); } + set { SetValue((int)ProductReviewFieldIndex.EmailAddress, value); } + } + + /// The ModifiedDate property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductReviewFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductReviewFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductReviewFieldIndex.ProductId, true); } + set { SetValue((int)ProductReviewFieldIndex.ProductId, value); } + } + + /// The ProductReviewId property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."ProductReviewID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ProductReviewId + { + get { return (System.Int32)GetValue((int)ProductReviewFieldIndex.ProductReviewId, true); } + set { SetValue((int)ProductReviewFieldIndex.ProductReviewId, value); } } + + /// The Rating property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."Rating".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 Rating + { + get { return (System.Int32)GetValue((int)ProductReviewFieldIndex.Rating, true); } + set { SetValue((int)ProductReviewFieldIndex.Rating, value); } + } + + /// The ReviewDate property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."ReviewDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ReviewDate + { + get { return (System.DateTime)GetValue((int)ProductReviewFieldIndex.ReviewDate, true); } + set { SetValue((int)ProductReviewFieldIndex.ReviewDate, value); } + } + + /// The ReviewerName property of the Entity ProductReview

+ /// Mapped on table field: "ProductReview"."ReviewerName".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String ReviewerName + { + get { return (System.String)GetValue((int)ProductReviewFieldIndex.ReviewerName, true); } + set { SetValue((int)ProductReviewFieldIndex.ReviewerName, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductReviewFieldIndex + { + ///Comments. + Comments, + ///EmailAddress. + EmailAddress, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///ProductReviewId. + ProductReviewId, + ///Rating. + Rating, + ///ReviewDate. + ReviewDate, + ///ReviewerName. + ReviewerName, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductReview. + public partial class ProductReviewRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductReviewEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ProductReview.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ProductReviewFields.ProductId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductReviewRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductReviewRelations().ProductEntityUsingProductId; + + /// CTor + static StaticProductReviewRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs new file mode 100644 index 00000000..ae95994e --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductSubcategoryEntity.cs @@ -0,0 +1,256 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductSubcategory'.

+ [Serializable] + public partial class ProductSubcategoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _products; + private ProductCategoryEntity _productCategory; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductSubcategoryEntityStaticMetaData _staticMetaData = new ProductSubcategoryEntityStaticMetaData(); + private static ProductSubcategoryRelations _relationsFactory = new ProductSubcategoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductCategory + public static readonly string ProductCategory = "ProductCategory"; + /// Member name Products + public static readonly string Products = "Products"; + } + + /// Static meta-data storage for navigator related information + protected class ProductSubcategoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductSubcategoryEntityStaticMetaData() + { + SetEntityCoreInfo("ProductSubcategoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductSubcategoryEntity, typeof(ProductSubcategoryEntity), typeof(ProductSubcategoryEntityFactory), false); + AddNavigatorMetaData>("Products", a => a._products, (a, b) => a._products = b, a => a.Products, () => new ProductSubcategoryRelations().ProductEntityUsingProductSubcategoryId, typeof(ProductEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("ProductCategory", "ProductSubcategories", (a, b) => a._productCategory = b, a => a._productCategory, (a, b) => a.ProductCategory = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductSubcategoryRelations.ProductCategoryEntityUsingProductCategoryIdStatic, ()=>new ProductSubcategoryRelations().ProductCategoryEntityUsingProductCategoryId, null, new int[] { (int)ProductSubcategoryFieldIndex.ProductCategoryId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductCategoryEntity); + } + } + + /// Static ctor + static ProductSubcategoryEntity() + { + } + + /// CTor + public ProductSubcategoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductSubcategoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductSubcategoryEntity + public ProductSubcategoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductSubcategory which data should be fetched into this ProductSubcategory object + public ProductSubcategoryEntity(System.Int32 productSubcategoryId) : this(productSubcategoryId, null) + { + } + + /// CTor + /// PK value for ProductSubcategory which data should be fetched into this ProductSubcategory object + /// The custom validator object for this ProductSubcategoryEntity + public ProductSubcategoryEntity(System.Int32 productSubcategoryId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductSubcategoryId = productSubcategoryId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductSubcategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProducts() { return CreateRelationInfoForNavigator("Products"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ProductCategory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductCategory() { return CreateRelationInfoForNavigator("ProductCategory"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductSubcategoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductSubcategoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProducts { get { return _staticMetaData.GetPrefetchPathElement("Products", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductCategory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductCategory { get { return _staticMetaData.GetPrefetchPathElement("ProductCategory", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity ProductSubcategory

+ /// Mapped on table field: "ProductSubcategory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductSubcategoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductSubcategoryFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity ProductSubcategory

+ /// Mapped on table field: "ProductSubcategory"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ProductSubcategoryFieldIndex.Name, true); } + set { SetValue((int)ProductSubcategoryFieldIndex.Name, value); } + } + + /// The ProductCategoryId property of the Entity ProductSubcategory

+ /// Mapped on table field: "ProductSubcategory"."ProductCategoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductCategoryId + { + get { return (System.Int32)GetValue((int)ProductSubcategoryFieldIndex.ProductCategoryId, true); } + set { SetValue((int)ProductSubcategoryFieldIndex.ProductCategoryId, value); } + } + + /// The ProductSubcategoryId property of the Entity ProductSubcategory

+ /// Mapped on table field: "ProductSubcategory"."ProductSubcategoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ProductSubcategoryId + { + get { return (System.Int32)GetValue((int)ProductSubcategoryFieldIndex.ProductSubcategoryId, true); } + set { SetValue((int)ProductSubcategoryFieldIndex.ProductSubcategoryId, value); } } + + /// The Rowguid property of the Entity ProductSubcategory

+ /// Mapped on table field: "ProductSubcategory"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)ProductSubcategoryFieldIndex.Rowguid, true); } + set { SetValue((int)ProductSubcategoryFieldIndex.Rowguid, value); } + } + + /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductEntity))] + public virtual EntityCollection Products { get { return GetOrCreateEntityCollection("ProductSubcategory", true, false, ref _products); } } + + /// Gets / sets related entity of type 'ProductCategoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductCategoryEntity ProductCategory + { + get { return _productCategory; } + set { SetSingleRelatedEntityNavigator(value, "ProductCategory"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductSubcategoryFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///ProductCategoryId. + ProductCategoryId, + ///ProductSubcategoryId. + ProductSubcategoryId, + ///Rowguid. + Rowguid, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductSubcategory. + public partial class ProductSubcategoryRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ProductSubcategoryEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: ProductSubcategory.ProductSubcategoryId - Product.ProductSubcategoryId + public virtual IEntityRelation ProductEntityUsingProductSubcategoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Products", true, new[] { ProductSubcategoryFields.ProductSubcategoryId, ProductFields.ProductSubcategoryId }); } + } + + /// Returns a new IEntityRelation object, between ProductSubcategoryEntity and ProductCategoryEntity over the m:1 relation they have, using the relation between the fields: ProductSubcategory.ProductCategoryId - ProductCategory.ProductCategoryId + public virtual IEntityRelation ProductCategoryEntityUsingProductCategoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ProductCategory", false, new[] { ProductCategoryFields.ProductCategoryId, ProductSubcategoryFields.ProductCategoryId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductSubcategoryRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductSubcategoryIdStatic = new ProductSubcategoryRelations().ProductEntityUsingProductSubcategoryId; + internal static readonly IEntityRelation ProductCategoryEntityUsingProductCategoryIdStatic = new ProductSubcategoryRelations().ProductCategoryEntityUsingProductCategoryId; + + /// CTor + static StaticProductSubcategoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs new file mode 100644 index 00000000..65c5458f --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ProductVendorEntity.cs @@ -0,0 +1,352 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ProductVendor'.

+ [Serializable] + public partial class ProductVendorEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + private UnitMeasureEntity _unitMeasure; + private VendorEntity _vendor; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ProductVendorEntityStaticMetaData _staticMetaData = new ProductVendorEntityStaticMetaData(); + private static ProductVendorRelations _relationsFactory = new ProductVendorRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + /// Member name UnitMeasure + public static readonly string UnitMeasure = "UnitMeasure"; + /// Member name Vendor + public static readonly string Vendor = "Vendor"; + } + + /// Static meta-data storage for navigator related information + protected class ProductVendorEntityStaticMetaData : EntityStaticMetaDataBase + { + public ProductVendorEntityStaticMetaData() + { + SetEntityCoreInfo("ProductVendorEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductVendorEntity, typeof(ProductVendorEntity), typeof(ProductVendorEntityFactory), false); + AddNavigatorMetaData("Product", "ProductVendors", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductVendorRelations.ProductEntityUsingProductIdStatic, ()=>new ProductVendorRelations().ProductEntityUsingProductId, null, new int[] { (int)ProductVendorFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("UnitMeasure", "ProductVendors", (a, b) => a._unitMeasure = b, a => a._unitMeasure, (a, b) => a.UnitMeasure = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductVendorRelations.UnitMeasureEntityUsingUnitMeasureCodeStatic, ()=>new ProductVendorRelations().UnitMeasureEntityUsingUnitMeasureCode, null, new int[] { (int)ProductVendorFieldIndex.UnitMeasureCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity); + AddNavigatorMetaData("Vendor", "ProductVendors", (a, b) => a._vendor = b, a => a._vendor, (a, b) => a.Vendor = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticProductVendorRelations.VendorEntityUsingVendorIdStatic, ()=>new ProductVendorRelations().VendorEntityUsingVendorId, null, new int[] { (int)ProductVendorFieldIndex.VendorId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.VendorEntity); + } + } + + /// Static ctor + static ProductVendorEntity() + { + } + + /// CTor + public ProductVendorEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ProductVendorEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ProductVendorEntity + public ProductVendorEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ProductVendor which data should be fetched into this ProductVendor object + /// PK value for ProductVendor which data should be fetched into this ProductVendor object + public ProductVendorEntity(System.Int32 productId, System.Int32 vendorId) : this(productId, vendorId, null) + { + } + + /// CTor + /// PK value for ProductVendor which data should be fetched into this ProductVendor object + /// PK value for ProductVendor which data should be fetched into this ProductVendor object + /// The custom validator object for this ProductVendorEntity + public ProductVendorEntity(System.Int32 productId, System.Int32 vendorId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductId = productId; + this.VendorId = vendorId; + } + + /// Private CTor for deserialization + /// + /// + protected ProductVendorEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'UnitMeasure' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoUnitMeasure() { return CreateRelationInfoForNavigator("UnitMeasure"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Vendor' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoVendor() { return CreateRelationInfoForNavigator("Vendor"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ProductVendorEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ProductVendorRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'UnitMeasure' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathUnitMeasure { get { return _staticMetaData.GetPrefetchPathElement("UnitMeasure", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Vendor' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathVendor { get { return _staticMetaData.GetPrefetchPathElement("Vendor", CommonEntityBase.CreateEntityCollection()); } } + + /// The AverageLeadTime property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."AverageLeadTime".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 AverageLeadTime + { + get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.AverageLeadTime, true); } + set { SetValue((int)ProductVendorFieldIndex.AverageLeadTime, value); } + } + + /// The LastReceiptCost property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."LastReceiptCost".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable LastReceiptCost + { + get { return (Nullable)GetValue((int)ProductVendorFieldIndex.LastReceiptCost, false); } + set { SetValue((int)ProductVendorFieldIndex.LastReceiptCost, value); } + } + + /// The LastReceiptDate property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."LastReceiptDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable LastReceiptDate + { + get { return (Nullable)GetValue((int)ProductVendorFieldIndex.LastReceiptDate, false); } + set { SetValue((int)ProductVendorFieldIndex.LastReceiptDate, value); } + } + + /// The MaxOrderQty property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."MaxOrderQty".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 MaxOrderQty + { + get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.MaxOrderQty, true); } + set { SetValue((int)ProductVendorFieldIndex.MaxOrderQty, value); } + } + + /// The MinOrderQty property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."MinOrderQty".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 MinOrderQty + { + get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.MinOrderQty, true); } + set { SetValue((int)ProductVendorFieldIndex.MinOrderQty, value); } + } + + /// The ModifiedDate property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ProductVendorFieldIndex.ModifiedDate, true); } + set { SetValue((int)ProductVendorFieldIndex.ModifiedDate, value); } + } + + /// The OnOrderQty property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."OnOrderQty".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable OnOrderQty + { + get { return (Nullable)GetValue((int)ProductVendorFieldIndex.OnOrderQty, false); } + set { SetValue((int)ProductVendorFieldIndex.OnOrderQty, value); } + } + + /// The ProductId property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.ProductId, true); } + set { SetValue((int)ProductVendorFieldIndex.ProductId, value); } + } + + /// The StandardPrice property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."StandardPrice".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal StandardPrice + { + get { return (System.Decimal)GetValue((int)ProductVendorFieldIndex.StandardPrice, true); } + set { SetValue((int)ProductVendorFieldIndex.StandardPrice, value); } + } + + /// The UnitMeasureCode property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."UnitMeasureCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String UnitMeasureCode + { + get { return (System.String)GetValue((int)ProductVendorFieldIndex.UnitMeasureCode, true); } + set { SetValue((int)ProductVendorFieldIndex.UnitMeasureCode, value); } + } + + /// The VendorId property of the Entity ProductVendor

+ /// Mapped on table field: "ProductVendor"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 VendorId + { + get { return (System.Int32)GetValue((int)ProductVendorFieldIndex.VendorId, true); } + set { SetValue((int)ProductVendorFieldIndex.VendorId, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + /// Gets / sets related entity of type 'UnitMeasureEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual UnitMeasureEntity UnitMeasure + { + get { return _unitMeasure; } + set { SetSingleRelatedEntityNavigator(value, "UnitMeasure"); } + } + + /// Gets / sets related entity of type 'VendorEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual VendorEntity Vendor + { + get { return _vendor; } + set { SetSingleRelatedEntityNavigator(value, "Vendor"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ProductVendorFieldIndex + { + ///AverageLeadTime. + AverageLeadTime, + ///LastReceiptCost. + LastReceiptCost, + ///LastReceiptDate. + LastReceiptDate, + ///MaxOrderQty. + MaxOrderQty, + ///MinOrderQty. + MinOrderQty, + ///ModifiedDate. + ModifiedDate, + ///OnOrderQty. + OnOrderQty, + ///ProductId. + ProductId, + ///StandardPrice. + StandardPrice, + ///UnitMeasureCode. + UnitMeasureCode, + ///VendorId. + VendorId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ProductVendor. + public partial class ProductVendorRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ProductVendorEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ProductVendor.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ProductVendorFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between ProductVendorEntity and UnitMeasureEntity over the m:1 relation they have, using the relation between the fields: ProductVendor.UnitMeasureCode - UnitMeasure.UnitMeasureCode + public virtual IEntityRelation UnitMeasureEntityUsingUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "UnitMeasure", false, new[] { UnitMeasureFields.UnitMeasureCode, ProductVendorFields.UnitMeasureCode }); } + } + + /// Returns a new IEntityRelation object, between ProductVendorEntity and VendorEntity over the m:1 relation they have, using the relation between the fields: ProductVendor.VendorId - Vendor.VendorId + public virtual IEntityRelation VendorEntityUsingVendorId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Vendor", false, new[] { VendorFields.VendorId, ProductVendorFields.VendorId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticProductVendorRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ProductVendorRelations().ProductEntityUsingProductId; + internal static readonly IEntityRelation UnitMeasureEntityUsingUnitMeasureCodeStatic = new ProductVendorRelations().UnitMeasureEntityUsingUnitMeasureCode; + internal static readonly IEntityRelation VendorEntityUsingVendorIdStatic = new ProductVendorRelations().VendorEntityUsingVendorId; + + /// CTor + static StaticProductVendorRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs new file mode 100644 index 00000000..ce17c582 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderDetailEntity.cs @@ -0,0 +1,322 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'PurchaseOrderDetail'.

+ [Serializable] + public partial class PurchaseOrderDetailEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + private PurchaseOrderHeaderEntity _purchaseOrderHeader; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static PurchaseOrderDetailEntityStaticMetaData _staticMetaData = new PurchaseOrderDetailEntityStaticMetaData(); + private static PurchaseOrderDetailRelations _relationsFactory = new PurchaseOrderDetailRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + /// Member name PurchaseOrderHeader + public static readonly string PurchaseOrderHeader = "PurchaseOrderHeader"; + } + + /// Static meta-data storage for navigator related information + protected class PurchaseOrderDetailEntityStaticMetaData : EntityStaticMetaDataBase + { + public PurchaseOrderDetailEntityStaticMetaData() + { + SetEntityCoreInfo("PurchaseOrderDetailEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderDetailEntity, typeof(PurchaseOrderDetailEntity), typeof(PurchaseOrderDetailEntityFactory), false); + AddNavigatorMetaData("Product", "PurchaseOrderDetails", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPurchaseOrderDetailRelations.ProductEntityUsingProductIdStatic, ()=>new PurchaseOrderDetailRelations().ProductEntityUsingProductId, null, new int[] { (int)PurchaseOrderDetailFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("PurchaseOrderHeader", "PurchaseOrderDetails", (a, b) => a._purchaseOrderHeader = b, a => a._purchaseOrderHeader, (a, b) => a.PurchaseOrderHeader = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPurchaseOrderDetailRelations.PurchaseOrderHeaderEntityUsingPurchaseOrderIdStatic, ()=>new PurchaseOrderDetailRelations().PurchaseOrderHeaderEntityUsingPurchaseOrderId, null, new int[] { (int)PurchaseOrderDetailFieldIndex.PurchaseOrderId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity); + } + } + + /// Static ctor + static PurchaseOrderDetailEntity() + { + } + + /// CTor + public PurchaseOrderDetailEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public PurchaseOrderDetailEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this PurchaseOrderDetailEntity + public PurchaseOrderDetailEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object + /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object + public PurchaseOrderDetailEntity(System.Int32 purchaseOrderDetailId, System.Int32 purchaseOrderId) : this(purchaseOrderDetailId, purchaseOrderId, null) + { + } + + /// CTor + /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object + /// PK value for PurchaseOrderDetail which data should be fetched into this PurchaseOrderDetail object + /// The custom validator object for this PurchaseOrderDetailEntity + public PurchaseOrderDetailEntity(System.Int32 purchaseOrderDetailId, System.Int32 purchaseOrderId, IValidator validator) + { + InitClassEmpty(validator, null); + this.PurchaseOrderDetailId = purchaseOrderDetailId; + this.PurchaseOrderId = purchaseOrderId; + } + + /// Private CTor for deserialization + /// + /// + protected PurchaseOrderDetailEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'PurchaseOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeader() { return CreateRelationInfoForNavigator("PurchaseOrderHeader"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this PurchaseOrderDetailEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static PurchaseOrderDetailRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeader { get { return _staticMetaData.GetPrefetchPathElement("PurchaseOrderHeader", CommonEntityBase.CreateEntityCollection()); } } + + /// The DueDate property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."DueDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime DueDate + { + get { return (System.DateTime)GetValue((int)PurchaseOrderDetailFieldIndex.DueDate, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.DueDate, value); } + } + + /// The LineTotal property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."LineTotal".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal LineTotal + { + get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.LineTotal, true); } + } + + /// The ModifiedDate property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)PurchaseOrderDetailFieldIndex.ModifiedDate, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.ModifiedDate, value); } + } + + /// The OrderQty property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."OrderQty".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 OrderQty + { + get { return (System.Int16)GetValue((int)PurchaseOrderDetailFieldIndex.OrderQty, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.OrderQty, value); } + } + + /// The ProductId property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)PurchaseOrderDetailFieldIndex.ProductId, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.ProductId, value); } + } + + /// The PurchaseOrderDetailId property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."PurchaseOrderDetailID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 PurchaseOrderDetailId + { + get { return (System.Int32)GetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderDetailId, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderDetailId, value); } } + + /// The PurchaseOrderId property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."PurchaseOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 PurchaseOrderId + { + get { return (System.Int32)GetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderId, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.PurchaseOrderId, value); } + } + + /// The ReceivedQty property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."ReceivedQty".
Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal ReceivedQty + { + get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.ReceivedQty, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.ReceivedQty, value); } + } + + /// The RejectedQty property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."RejectedQty".
Table field type characteristics (type, precision, scale, length): Decimal, 8, 2, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal RejectedQty + { + get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.RejectedQty, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.RejectedQty, value); } + } + + /// The StockedQty property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."StockedQty".
Table field type characteristics (type, precision, scale, length): Decimal, 9, 2, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal StockedQty + { + get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.StockedQty, true); } + } + + /// The UnitPrice property of the Entity PurchaseOrderDetail

+ /// Mapped on table field: "PurchaseOrderDetail"."UnitPrice".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal UnitPrice + { + get { return (System.Decimal)GetValue((int)PurchaseOrderDetailFieldIndex.UnitPrice, true); } + set { SetValue((int)PurchaseOrderDetailFieldIndex.UnitPrice, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + /// Gets / sets related entity of type 'PurchaseOrderHeaderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual PurchaseOrderHeaderEntity PurchaseOrderHeader + { + get { return _purchaseOrderHeader; } + set { SetSingleRelatedEntityNavigator(value, "PurchaseOrderHeader"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum PurchaseOrderDetailFieldIndex + { + ///DueDate. + DueDate, + ///LineTotal. + LineTotal, + ///ModifiedDate. + ModifiedDate, + ///OrderQty. + OrderQty, + ///ProductId. + ProductId, + ///PurchaseOrderDetailId. + PurchaseOrderDetailId, + ///PurchaseOrderId. + PurchaseOrderId, + ///ReceivedQty. + ReceivedQty, + ///RejectedQty. + RejectedQty, + ///StockedQty. + StockedQty, + ///UnitPrice. + UnitPrice, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: PurchaseOrderDetail. + public partial class PurchaseOrderDetailRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between PurchaseOrderDetailEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: PurchaseOrderDetail.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, PurchaseOrderDetailFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between PurchaseOrderDetailEntity and PurchaseOrderHeaderEntity over the m:1 relation they have, using the relation between the fields: PurchaseOrderDetail.PurchaseOrderId - PurchaseOrderHeader.PurchaseOrderId + public virtual IEntityRelation PurchaseOrderHeaderEntityUsingPurchaseOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "PurchaseOrderHeader", false, new[] { PurchaseOrderHeaderFields.PurchaseOrderId, PurchaseOrderDetailFields.PurchaseOrderId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticPurchaseOrderDetailRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new PurchaseOrderDetailRelations().ProductEntityUsingProductId; + internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingPurchaseOrderIdStatic = new PurchaseOrderDetailRelations().PurchaseOrderHeaderEntityUsingPurchaseOrderId; + + /// CTor + static StaticPurchaseOrderDetailRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs new file mode 100644 index 00000000..447c5cdc --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/PurchaseOrderHeaderEntity.cs @@ -0,0 +1,389 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'PurchaseOrderHeader'.

+ [Serializable] + public partial class PurchaseOrderHeaderEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _purchaseOrderDetails; + private EmployeeEntity _employee; + private ShipMethodEntity _shipMethod; + private VendorEntity _vendor; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static PurchaseOrderHeaderEntityStaticMetaData _staticMetaData = new PurchaseOrderHeaderEntityStaticMetaData(); + private static PurchaseOrderHeaderRelations _relationsFactory = new PurchaseOrderHeaderRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Employee + public static readonly string Employee = "Employee"; + /// Member name ShipMethod + public static readonly string ShipMethod = "ShipMethod"; + /// Member name Vendor + public static readonly string Vendor = "Vendor"; + /// Member name PurchaseOrderDetails + public static readonly string PurchaseOrderDetails = "PurchaseOrderDetails"; + } + + /// Static meta-data storage for navigator related information + protected class PurchaseOrderHeaderEntityStaticMetaData : EntityStaticMetaDataBase + { + public PurchaseOrderHeaderEntityStaticMetaData() + { + SetEntityCoreInfo("PurchaseOrderHeaderEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity, typeof(PurchaseOrderHeaderEntity), typeof(PurchaseOrderHeaderEntityFactory), false); + AddNavigatorMetaData>("PurchaseOrderDetails", a => a._purchaseOrderDetails, (a, b) => a._purchaseOrderDetails = b, a => a.PurchaseOrderDetails, () => new PurchaseOrderHeaderRelations().PurchaseOrderDetailEntityUsingPurchaseOrderId, typeof(PurchaseOrderDetailEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderDetailEntity); + AddNavigatorMetaData("Employee", "PurchaseOrderHeaders", (a, b) => a._employee = b, a => a._employee, (a, b) => a.Employee = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPurchaseOrderHeaderRelations.EmployeeEntityUsingEmployeeIdStatic, ()=>new PurchaseOrderHeaderRelations().EmployeeEntityUsingEmployeeId, null, new int[] { (int)PurchaseOrderHeaderFieldIndex.EmployeeId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity); + AddNavigatorMetaData("ShipMethod", "PurchaseOrderHeaders", (a, b) => a._shipMethod = b, a => a._shipMethod, (a, b) => a.ShipMethod = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPurchaseOrderHeaderRelations.ShipMethodEntityUsingShipMethodIdStatic, ()=>new PurchaseOrderHeaderRelations().ShipMethodEntityUsingShipMethodId, null, new int[] { (int)PurchaseOrderHeaderFieldIndex.ShipMethodId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ShipMethodEntity); + AddNavigatorMetaData("Vendor", "PurchaseOrderHeaders", (a, b) => a._vendor = b, a => a._vendor, (a, b) => a.Vendor = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticPurchaseOrderHeaderRelations.VendorEntityUsingVendorIdStatic, ()=>new PurchaseOrderHeaderRelations().VendorEntityUsingVendorId, null, new int[] { (int)PurchaseOrderHeaderFieldIndex.VendorId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.VendorEntity); + } + } + + /// Static ctor + static PurchaseOrderHeaderEntity() + { + } + + /// CTor + public PurchaseOrderHeaderEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public PurchaseOrderHeaderEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this PurchaseOrderHeaderEntity + public PurchaseOrderHeaderEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for PurchaseOrderHeader which data should be fetched into this PurchaseOrderHeader object + public PurchaseOrderHeaderEntity(System.Int32 purchaseOrderId) : this(purchaseOrderId, null) + { + } + + /// CTor + /// PK value for PurchaseOrderHeader which data should be fetched into this PurchaseOrderHeader object + /// The custom validator object for this PurchaseOrderHeaderEntity + public PurchaseOrderHeaderEntity(System.Int32 purchaseOrderId, IValidator validator) + { + InitClassEmpty(validator, null); + this.PurchaseOrderId = purchaseOrderId; + } + + /// Private CTor for deserialization + /// + /// + protected PurchaseOrderHeaderEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderDetail' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderDetails() { return CreateRelationInfoForNavigator("PurchaseOrderDetails"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployee() { return CreateRelationInfoForNavigator("Employee"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ShipMethod' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoShipMethod() { return CreateRelationInfoForNavigator("ShipMethod"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Vendor' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoVendor() { return CreateRelationInfoForNavigator("Vendor"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this PurchaseOrderHeaderEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static PurchaseOrderHeaderRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderDetail' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPurchaseOrderDetails { get { return _staticMetaData.GetPrefetchPathElement("PurchaseOrderDetails", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployee { get { return _staticMetaData.GetPrefetchPathElement("Employee", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ShipMethod' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathShipMethod { get { return _staticMetaData.GetPrefetchPathElement("ShipMethod", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Vendor' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathVendor { get { return _staticMetaData.GetPrefetchPathElement("Vendor", CommonEntityBase.CreateEntityCollection()); } } + + /// The EmployeeId property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."EmployeeID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 EmployeeId + { + get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.EmployeeId, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.EmployeeId, value); } + } + + /// The Freight property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."Freight".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal Freight + { + get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.Freight, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.Freight, value); } + } + + /// The ModifiedDate property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)PurchaseOrderHeaderFieldIndex.ModifiedDate, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.ModifiedDate, value); } + } + + /// The OrderDate property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."OrderDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime OrderDate + { + get { return (System.DateTime)GetValue((int)PurchaseOrderHeaderFieldIndex.OrderDate, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.OrderDate, value); } + } + + /// The PurchaseOrderId property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."PurchaseOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 PurchaseOrderId + { + get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.PurchaseOrderId, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.PurchaseOrderId, value); } } + + /// The RevisionNumber property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."RevisionNumber".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte RevisionNumber + { + get { return (System.Byte)GetValue((int)PurchaseOrderHeaderFieldIndex.RevisionNumber, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.RevisionNumber, value); } + } + + /// The ShipDate property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."ShipDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ShipDate + { + get { return (Nullable)GetValue((int)PurchaseOrderHeaderFieldIndex.ShipDate, false); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.ShipDate, value); } + } + + /// The ShipMethodId property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."ShipMethodID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ShipMethodId + { + get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.ShipMethodId, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.ShipMethodId, value); } + } + + /// The Status property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."Status".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte Status + { + get { return (System.Byte)GetValue((int)PurchaseOrderHeaderFieldIndex.Status, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.Status, value); } + } + + /// The SubTotal property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."SubTotal".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal SubTotal + { + get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.SubTotal, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.SubTotal, value); } + } + + /// The TaxAmt property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."TaxAmt".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal TaxAmt + { + get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.TaxAmt, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.TaxAmt, value); } + } + + /// The TotalDue property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."TotalDue".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal TotalDue + { + get { return (System.Decimal)GetValue((int)PurchaseOrderHeaderFieldIndex.TotalDue, true); } + } + + /// The VendorId property of the Entity PurchaseOrderHeader

+ /// Mapped on table field: "PurchaseOrderHeader"."VendorID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 VendorId + { + get { return (System.Int32)GetValue((int)PurchaseOrderHeaderFieldIndex.VendorId, true); } + set { SetValue((int)PurchaseOrderHeaderFieldIndex.VendorId, value); } + } + + /// Gets the EntityCollection with the related entities of type 'PurchaseOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(PurchaseOrderDetailEntity))] + public virtual EntityCollection PurchaseOrderDetails { get { return GetOrCreateEntityCollection("PurchaseOrderHeader", true, false, ref _purchaseOrderDetails); } } + + /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual EmployeeEntity Employee + { + get { return _employee; } + set { SetSingleRelatedEntityNavigator(value, "Employee"); } + } + + /// Gets / sets related entity of type 'ShipMethodEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ShipMethodEntity ShipMethod + { + get { return _shipMethod; } + set { SetSingleRelatedEntityNavigator(value, "ShipMethod"); } + } + + /// Gets / sets related entity of type 'VendorEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual VendorEntity Vendor + { + get { return _vendor; } + set { SetSingleRelatedEntityNavigator(value, "Vendor"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum PurchaseOrderHeaderFieldIndex + { + ///EmployeeId. + EmployeeId, + ///Freight. + Freight, + ///ModifiedDate. + ModifiedDate, + ///OrderDate. + OrderDate, + ///PurchaseOrderId. + PurchaseOrderId, + ///RevisionNumber. + RevisionNumber, + ///ShipDate. + ShipDate, + ///ShipMethodId. + ShipMethodId, + ///Status. + Status, + ///SubTotal. + SubTotal, + ///TaxAmt. + TaxAmt, + ///TotalDue. + TotalDue, + ///VendorId. + VendorId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: PurchaseOrderHeader. + public partial class PurchaseOrderHeaderRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and PurchaseOrderDetailEntity over the 1:n relation they have, using the relation between the fields: PurchaseOrderHeader.PurchaseOrderId - PurchaseOrderDetail.PurchaseOrderId + public virtual IEntityRelation PurchaseOrderDetailEntityUsingPurchaseOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "PurchaseOrderDetails", true, new[] { PurchaseOrderHeaderFields.PurchaseOrderId, PurchaseOrderDetailFields.PurchaseOrderId }); } + } + + /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and EmployeeEntity over the m:1 relation they have, using the relation between the fields: PurchaseOrderHeader.EmployeeId - Employee.EmployeeId + public virtual IEntityRelation EmployeeEntityUsingEmployeeId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Employee", false, new[] { EmployeeFields.EmployeeId, PurchaseOrderHeaderFields.EmployeeId }); } + } + + /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and ShipMethodEntity over the m:1 relation they have, using the relation between the fields: PurchaseOrderHeader.ShipMethodId - ShipMethod.ShipMethodId + public virtual IEntityRelation ShipMethodEntityUsingShipMethodId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ShipMethod", false, new[] { ShipMethodFields.ShipMethodId, PurchaseOrderHeaderFields.ShipMethodId }); } + } + + /// Returns a new IEntityRelation object, between PurchaseOrderHeaderEntity and VendorEntity over the m:1 relation they have, using the relation between the fields: PurchaseOrderHeader.VendorId - Vendor.VendorId + public virtual IEntityRelation VendorEntityUsingVendorId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Vendor", false, new[] { VendorFields.VendorId, PurchaseOrderHeaderFields.VendorId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticPurchaseOrderHeaderRelations + { + internal static readonly IEntityRelation PurchaseOrderDetailEntityUsingPurchaseOrderIdStatic = new PurchaseOrderHeaderRelations().PurchaseOrderDetailEntityUsingPurchaseOrderId; + internal static readonly IEntityRelation EmployeeEntityUsingEmployeeIdStatic = new PurchaseOrderHeaderRelations().EmployeeEntityUsingEmployeeId; + internal static readonly IEntityRelation ShipMethodEntityUsingShipMethodIdStatic = new PurchaseOrderHeaderRelations().ShipMethodEntityUsingShipMethodId; + internal static readonly IEntityRelation VendorEntityUsingVendorIdStatic = new PurchaseOrderHeaderRelations().VendorEntityUsingVendorId; + + /// CTor + static StaticPurchaseOrderHeaderRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs new file mode 100644 index 00000000..127fba1b --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderDetailEntity.cs @@ -0,0 +1,323 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesOrderDetail'.

+ [Serializable] + public partial class SalesOrderDetailEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private SalesOrderHeaderEntity _salesOrderHeader; + private SpecialOfferProductEntity _specialOfferProduct; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesOrderDetailEntityStaticMetaData _staticMetaData = new SalesOrderDetailEntityStaticMetaData(); + private static SalesOrderDetailRelations _relationsFactory = new SalesOrderDetailRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SalesOrderHeader + public static readonly string SalesOrderHeader = "SalesOrderHeader"; + /// Member name SpecialOfferProduct + public static readonly string SpecialOfferProduct = "SpecialOfferProduct"; + } + + /// Static meta-data storage for navigator related information + protected class SalesOrderDetailEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesOrderDetailEntityStaticMetaData() + { + SetEntityCoreInfo("SalesOrderDetailEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderDetailEntity, typeof(SalesOrderDetailEntity), typeof(SalesOrderDetailEntityFactory), false); + AddNavigatorMetaData("SalesOrderHeader", "SalesOrderDetails", (a, b) => a._salesOrderHeader = b, a => a._salesOrderHeader, (a, b) => a.SalesOrderHeader = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderDetailRelations.SalesOrderHeaderEntityUsingSalesOrderIdStatic, ()=>new SalesOrderDetailRelations().SalesOrderHeaderEntityUsingSalesOrderId, null, new int[] { (int)SalesOrderDetailFieldIndex.SalesOrderId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData("SpecialOfferProduct", "SalesOrderDetails", (a, b) => a._specialOfferProduct = b, a => a._specialOfferProduct, (a, b) => a.SpecialOfferProduct = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderDetailRelations.SpecialOfferProductEntityUsingProductIdSpecialOfferIdStatic, ()=>new SalesOrderDetailRelations().SpecialOfferProductEntityUsingProductIdSpecialOfferId, null, new int[] { (int)SalesOrderDetailFieldIndex.ProductId, (int)SalesOrderDetailFieldIndex.SpecialOfferId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferProductEntity); + } + } + + /// Static ctor + static SalesOrderDetailEntity() + { + } + + /// CTor + public SalesOrderDetailEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesOrderDetailEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesOrderDetailEntity + public SalesOrderDetailEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object + /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object + public SalesOrderDetailEntity(System.Int32 salesOrderDetailId, System.Int32 salesOrderId) : this(salesOrderDetailId, salesOrderId, null) + { + } + + /// CTor + /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object + /// PK value for SalesOrderDetail which data should be fetched into this SalesOrderDetail object + /// The custom validator object for this SalesOrderDetailEntity + public SalesOrderDetailEntity(System.Int32 salesOrderDetailId, System.Int32 salesOrderId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SalesOrderDetailId = salesOrderDetailId; + this.SalesOrderId = salesOrderId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesOrderDetailEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeader() { return CreateRelationInfoForNavigator("SalesOrderHeader"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SpecialOfferProduct' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSpecialOfferProduct() { return CreateRelationInfoForNavigator("SpecialOfferProduct"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesOrderDetailEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesOrderDetailRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeader { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeader", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOfferProduct' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSpecialOfferProduct { get { return _staticMetaData.GetPrefetchPathElement("SpecialOfferProduct", CommonEntityBase.CreateEntityCollection()); } } + + /// The CarrierTrackingNumber property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."CarrierTrackingNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String CarrierTrackingNumber + { + get { return (System.String)GetValue((int)SalesOrderDetailFieldIndex.CarrierTrackingNumber, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.CarrierTrackingNumber, value); } + } + + /// The LineTotal property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."LineTotal".
Table field type characteristics (type, precision, scale, length): Decimal, 38, 6, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal LineTotal + { + get { return (System.Decimal)GetValue((int)SalesOrderDetailFieldIndex.LineTotal, true); } + } + + /// The ModifiedDate property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesOrderDetailFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.ModifiedDate, value); } + } + + /// The OrderQty property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."OrderQty".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 OrderQty + { + get { return (System.Int16)GetValue((int)SalesOrderDetailFieldIndex.OrderQty, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.OrderQty, value); } + } + + /// The ProductId property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.ProductId, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.ProductId, value); } + } + + /// The Rowguid property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SalesOrderDetailFieldIndex.Rowguid, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.Rowguid, value); } + } + + /// The SalesOrderDetailId property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."SalesOrderDetailID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 SalesOrderDetailId + { + get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.SalesOrderDetailId, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.SalesOrderDetailId, value); } } + + /// The SalesOrderId property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."SalesOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 SalesOrderId + { + get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.SalesOrderId, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.SalesOrderId, value); } + } + + /// The SpecialOfferId property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."SpecialOfferID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 SpecialOfferId + { + get { return (System.Int32)GetValue((int)SalesOrderDetailFieldIndex.SpecialOfferId, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.SpecialOfferId, value); } + } + + /// The UnitPrice property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."UnitPrice".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal UnitPrice + { + get { return (System.Decimal)GetValue((int)SalesOrderDetailFieldIndex.UnitPrice, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.UnitPrice, value); } + } + + /// The UnitPriceDiscount property of the Entity SalesOrderDetail

+ /// Mapped on table field: "SalesOrderDetail"."UnitPriceDiscount".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal UnitPriceDiscount + { + get { return (System.Decimal)GetValue((int)SalesOrderDetailFieldIndex.UnitPriceDiscount, true); } + set { SetValue((int)SalesOrderDetailFieldIndex.UnitPriceDiscount, value); } + } + + /// Gets / sets related entity of type 'SalesOrderHeaderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesOrderHeaderEntity SalesOrderHeader + { + get { return _salesOrderHeader; } + set { SetSingleRelatedEntityNavigator(value, "SalesOrderHeader"); } + } + + /// Gets / sets related entity of type 'SpecialOfferProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SpecialOfferProductEntity SpecialOfferProduct + { + get { return _specialOfferProduct; } + set { SetSingleRelatedEntityNavigator(value, "SpecialOfferProduct"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesOrderDetailFieldIndex + { + ///CarrierTrackingNumber. + CarrierTrackingNumber, + ///LineTotal. + LineTotal, + ///ModifiedDate. + ModifiedDate, + ///OrderQty. + OrderQty, + ///ProductId. + ProductId, + ///Rowguid. + Rowguid, + ///SalesOrderDetailId. + SalesOrderDetailId, + ///SalesOrderId. + SalesOrderId, + ///SpecialOfferId. + SpecialOfferId, + ///UnitPrice. + UnitPrice, + ///UnitPriceDiscount. + UnitPriceDiscount, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesOrderDetail. + public partial class SalesOrderDetailRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between SalesOrderDetailEntity and SalesOrderHeaderEntity over the m:1 relation they have, using the relation between the fields: SalesOrderDetail.SalesOrderId - SalesOrderHeader.SalesOrderId + public virtual IEntityRelation SalesOrderHeaderEntityUsingSalesOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesOrderHeader", false, new[] { SalesOrderHeaderFields.SalesOrderId, SalesOrderDetailFields.SalesOrderId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderDetailEntity and SpecialOfferProductEntity over the m:1 relation they have, using the relation between the fields: SalesOrderDetail.ProductId - SpecialOfferProduct.ProductId, SalesOrderDetail.SpecialOfferId - SpecialOfferProduct.SpecialOfferId + public virtual IEntityRelation SpecialOfferProductEntityUsingProductIdSpecialOfferId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SpecialOfferProduct", false, new[] { SpecialOfferProductFields.ProductId, SalesOrderDetailFields.ProductId, SpecialOfferProductFields.SpecialOfferId, SalesOrderDetailFields.SpecialOfferId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesOrderDetailRelations + { + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingSalesOrderIdStatic = new SalesOrderDetailRelations().SalesOrderHeaderEntityUsingSalesOrderId; + internal static readonly IEntityRelation SpecialOfferProductEntityUsingProductIdSpecialOfferIdStatic = new SalesOrderDetailRelations().SpecialOfferProductEntityUsingProductIdSpecialOfferId; + + /// CTor + static StaticSalesOrderDetailRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs new file mode 100644 index 00000000..437ff134 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderEntity.cs @@ -0,0 +1,676 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesOrderHeader'.

+ [Serializable] + public partial class SalesOrderHeaderEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _salesOrderDetails; + private EntityCollection _salesOrderHeaderSalesReasons; + private AddressEntity _address; + private AddressEntity _address_; + private CreditCardEntity _creditCard; + private CurrencyRateEntity _currencyRate; + private CustomerEntity _customer; + private SalesPersonEntity _salesPerson; + private SalesTerritoryEntity _salesTerritory; + private ShipMethodEntity _shipMethod; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesOrderHeaderEntityStaticMetaData _staticMetaData = new SalesOrderHeaderEntityStaticMetaData(); + private static SalesOrderHeaderRelations _relationsFactory = new SalesOrderHeaderRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Address + public static readonly string Address = "Address"; + /// Member name Address_ + public static readonly string Address_ = "Address_"; + /// Member name CreditCard + public static readonly string CreditCard = "CreditCard"; + /// Member name CurrencyRate + public static readonly string CurrencyRate = "CurrencyRate"; + /// Member name Customer + public static readonly string Customer = "Customer"; + /// Member name SalesPerson + public static readonly string SalesPerson = "SalesPerson"; + /// Member name SalesTerritory + public static readonly string SalesTerritory = "SalesTerritory"; + /// Member name ShipMethod + public static readonly string ShipMethod = "ShipMethod"; + /// Member name SalesOrderDetails + public static readonly string SalesOrderDetails = "SalesOrderDetails"; + /// Member name SalesOrderHeaderSalesReasons + public static readonly string SalesOrderHeaderSalesReasons = "SalesOrderHeaderSalesReasons"; + } + + /// Static meta-data storage for navigator related information + protected class SalesOrderHeaderEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesOrderHeaderEntityStaticMetaData() + { + SetEntityCoreInfo("SalesOrderHeaderEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity, typeof(SalesOrderHeaderEntity), typeof(SalesOrderHeaderEntityFactory), false); + AddNavigatorMetaData>("SalesOrderDetails", a => a._salesOrderDetails, (a, b) => a._salesOrderDetails = b, a => a.SalesOrderDetails, () => new SalesOrderHeaderRelations().SalesOrderDetailEntityUsingSalesOrderId, typeof(SalesOrderDetailEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderDetailEntity); + AddNavigatorMetaData>("SalesOrderHeaderSalesReasons", a => a._salesOrderHeaderSalesReasons, (a, b) => a._salesOrderHeaderSalesReasons = b, a => a.SalesOrderHeaderSalesReasons, () => new SalesOrderHeaderRelations().SalesOrderHeaderSalesReasonEntityUsingSalesOrderId, typeof(SalesOrderHeaderSalesReasonEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderSalesReasonEntity); + AddNavigatorMetaData("Address", "SalesOrderHeaders", (a, b) => a._address = b, a => a._address, (a, b) => a.Address = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.AddressEntityUsingBillToAddressIdStatic, ()=>new SalesOrderHeaderRelations().AddressEntityUsingBillToAddressId, null, new int[] { (int)SalesOrderHeaderFieldIndex.BillToAddressId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity); + AddNavigatorMetaData("Address_", "SalesOrderHeaders_", (a, b) => a._address_ = b, a => a._address_, (a, b) => a.Address_ = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.AddressEntityUsingShipToAddressIdStatic, ()=>new SalesOrderHeaderRelations().AddressEntityUsingShipToAddressId, null, new int[] { (int)SalesOrderHeaderFieldIndex.ShipToAddressId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity); + AddNavigatorMetaData("CreditCard", "SalesOrderHeaders", (a, b) => a._creditCard = b, a => a._creditCard, (a, b) => a.CreditCard = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.CreditCardEntityUsingCreditCardIdStatic, ()=>new SalesOrderHeaderRelations().CreditCardEntityUsingCreditCardId, null, new int[] { (int)SalesOrderHeaderFieldIndex.CreditCardId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CreditCardEntity); + AddNavigatorMetaData("CurrencyRate", "SalesOrderHeaders", (a, b) => a._currencyRate = b, a => a._currencyRate, (a, b) => a.CurrencyRate = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.CurrencyRateEntityUsingCurrencyRateIdStatic, ()=>new SalesOrderHeaderRelations().CurrencyRateEntityUsingCurrencyRateId, null, new int[] { (int)SalesOrderHeaderFieldIndex.CurrencyRateId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyRateEntity); + AddNavigatorMetaData("Customer", "SalesOrderHeaders", (a, b) => a._customer = b, a => a._customer, (a, b) => a.Customer = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.CustomerEntityUsingCustomerIdStatic, ()=>new SalesOrderHeaderRelations().CustomerEntityUsingCustomerId, null, new int[] { (int)SalesOrderHeaderFieldIndex.CustomerId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity); + AddNavigatorMetaData("SalesPerson", "SalesOrderHeaders", (a, b) => a._salesPerson = b, a => a._salesPerson, (a, b) => a.SalesPerson = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.SalesPersonEntityUsingSalesPersonIdStatic, ()=>new SalesOrderHeaderRelations().SalesPersonEntityUsingSalesPersonId, null, new int[] { (int)SalesOrderHeaderFieldIndex.SalesPersonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity); + AddNavigatorMetaData("SalesTerritory", "SalesOrderHeaders", (a, b) => a._salesTerritory = b, a => a._salesTerritory, (a, b) => a.SalesTerritory = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.SalesTerritoryEntityUsingTerritoryIdStatic, ()=>new SalesOrderHeaderRelations().SalesTerritoryEntityUsingTerritoryId, null, new int[] { (int)SalesOrderHeaderFieldIndex.TerritoryId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity); + AddNavigatorMetaData("ShipMethod", "SalesOrderHeaders", (a, b) => a._shipMethod = b, a => a._shipMethod, (a, b) => a.ShipMethod = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderRelations.ShipMethodEntityUsingShipMethodIdStatic, ()=>new SalesOrderHeaderRelations().ShipMethodEntityUsingShipMethodId, null, new int[] { (int)SalesOrderHeaderFieldIndex.ShipMethodId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ShipMethodEntity); + } + } + + /// Static ctor + static SalesOrderHeaderEntity() + { + } + + /// CTor + public SalesOrderHeaderEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesOrderHeaderEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesOrderHeaderEntity + public SalesOrderHeaderEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesOrderHeader which data should be fetched into this SalesOrderHeader object + public SalesOrderHeaderEntity(System.Int32 salesOrderId) : this(salesOrderId, null) + { + } + + /// CTor + /// PK value for SalesOrderHeader which data should be fetched into this SalesOrderHeader object + /// The custom validator object for this SalesOrderHeaderEntity + public SalesOrderHeaderEntity(System.Int32 salesOrderId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SalesOrderId = salesOrderId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesOrderHeaderEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderDetail' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderDetails() { return CreateRelationInfoForNavigator("SalesOrderDetails"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeaderSalesReason' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaderSalesReasons() { return CreateRelationInfoForNavigator("SalesOrderHeaderSalesReasons"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Address' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoAddress() { return CreateRelationInfoForNavigator("Address"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Address' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoAddress_() { return CreateRelationInfoForNavigator("Address_"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CreditCard' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCreditCard() { return CreateRelationInfoForNavigator("CreditCard"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CurrencyRate' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCurrencyRate() { return CreateRelationInfoForNavigator("CurrencyRate"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Customer' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCustomer() { return CreateRelationInfoForNavigator("Customer"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() { return CreateRelationInfoForNavigator("SalesPerson"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() { return CreateRelationInfoForNavigator("SalesTerritory"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ShipMethod' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoShipMethod() { return CreateRelationInfoForNavigator("ShipMethod"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesOrderHeaderEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesOrderHeaderRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderDetail' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderDetails { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderDetails", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeaderSalesReason' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaderSalesReasons { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaderSalesReasons", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathAddress { get { return _staticMetaData.GetPrefetchPathElement("Address", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathAddress_ { get { return _staticMetaData.GetPrefetchPathElement("Address_", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CreditCard' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCreditCard { get { return _staticMetaData.GetPrefetchPathElement("CreditCard", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CurrencyRate' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCurrencyRate { get { return _staticMetaData.GetPrefetchPathElement("CurrencyRate", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCustomer { get { return _staticMetaData.GetPrefetchPathElement("Customer", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesPerson { get { return _staticMetaData.GetPrefetchPathElement("SalesPerson", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritory { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritory", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ShipMethod' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathShipMethod { get { return _staticMetaData.GetPrefetchPathElement("ShipMethod", CommonEntityBase.CreateEntityCollection()); } } + + /// The AccountNumber property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."AccountNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String AccountNumber + { + get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.AccountNumber, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.AccountNumber, value); } + } + + /// The BillToAddressId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."BillToAddressID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 BillToAddressId + { + get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.BillToAddressId, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.BillToAddressId, value); } + } + + /// The Comment property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."Comment".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 128.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Comment + { + get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.Comment, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.Comment, value); } + } + + /// The CreditCardApprovalCode property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."CreditCardApprovalCode".
Table field type characteristics (type, precision, scale, length): VarChar, 0, 0, 15.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String CreditCardApprovalCode + { + get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.CreditCardApprovalCode, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.CreditCardApprovalCode, value); } + } + + /// The CreditCardId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."CreditCardID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable CreditCardId + { + get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.CreditCardId, false); } + set { SetValue((int)SalesOrderHeaderFieldIndex.CreditCardId, value); } + } + + /// The CurrencyRateId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."CurrencyRateID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable CurrencyRateId + { + get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.CurrencyRateId, false); } + set { SetValue((int)SalesOrderHeaderFieldIndex.CurrencyRateId, value); } + } + + /// The CustomerId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."CustomerID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 CustomerId + { + get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.CustomerId, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.CustomerId, value); } + } + + /// The DueDate property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."DueDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime DueDate + { + get { return (System.DateTime)GetValue((int)SalesOrderHeaderFieldIndex.DueDate, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.DueDate, value); } + } + + /// The Freight property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."Freight".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal Freight + { + get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.Freight, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.Freight, value); } + } + + /// The ModifiedDate property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesOrderHeaderFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.ModifiedDate, value); } + } + + /// The OnlineOrderFlag property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."OnlineOrderFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean OnlineOrderFlag + { + get { return (System.Boolean)GetValue((int)SalesOrderHeaderFieldIndex.OnlineOrderFlag, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.OnlineOrderFlag, value); } + } + + /// The OrderDate property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."OrderDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime OrderDate + { + get { return (System.DateTime)GetValue((int)SalesOrderHeaderFieldIndex.OrderDate, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.OrderDate, value); } + } + + /// The PurchaseOrderNumber property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."PurchaseOrderNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String PurchaseOrderNumber + { + get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.PurchaseOrderNumber, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.PurchaseOrderNumber, value); } + } + + /// The RevisionNumber property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."RevisionNumber".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte RevisionNumber + { + get { return (System.Byte)GetValue((int)SalesOrderHeaderFieldIndex.RevisionNumber, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.RevisionNumber, value); } + } + + /// The Rowguid property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SalesOrderHeaderFieldIndex.Rowguid, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.Rowguid, value); } + } + + /// The SalesOrderId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."SalesOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 SalesOrderId + { + get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.SalesOrderId, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.SalesOrderId, value); } } + + /// The SalesOrderNumber property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."SalesOrderNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 25.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String SalesOrderNumber + { + get { return (System.String)GetValue((int)SalesOrderHeaderFieldIndex.SalesOrderNumber, true); } + } + + /// The SalesPersonId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."SalesPersonID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable SalesPersonId + { + get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.SalesPersonId, false); } + set { SetValue((int)SalesOrderHeaderFieldIndex.SalesPersonId, value); } + } + + /// The ShipDate property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."ShipDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ShipDate + { + get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.ShipDate, false); } + set { SetValue((int)SalesOrderHeaderFieldIndex.ShipDate, value); } + } + + /// The ShipMethodId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."ShipMethodID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ShipMethodId + { + get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.ShipMethodId, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.ShipMethodId, value); } + } + + /// The ShipToAddressId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."ShipToAddressID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ShipToAddressId + { + get { return (System.Int32)GetValue((int)SalesOrderHeaderFieldIndex.ShipToAddressId, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.ShipToAddressId, value); } + } + + /// The Status property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."Status".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte Status + { + get { return (System.Byte)GetValue((int)SalesOrderHeaderFieldIndex.Status, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.Status, value); } + } + + /// The SubTotal property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."SubTotal".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal SubTotal + { + get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.SubTotal, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.SubTotal, value); } + } + + /// The TaxAmt property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."TaxAmt".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal TaxAmt + { + get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.TaxAmt, true); } + set { SetValue((int)SalesOrderHeaderFieldIndex.TaxAmt, value); } + } + + /// The TerritoryId property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."TerritoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable TerritoryId + { + get { return (Nullable)GetValue((int)SalesOrderHeaderFieldIndex.TerritoryId, false); } + set { SetValue((int)SalesOrderHeaderFieldIndex.TerritoryId, value); } + } + + /// The TotalDue property of the Entity SalesOrderHeader

+ /// Mapped on table field: "SalesOrderHeader"."TotalDue".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal TotalDue + { + get { return (System.Decimal)GetValue((int)SalesOrderHeaderFieldIndex.TotalDue, true); } + } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderDetailEntity))] + public virtual EntityCollection SalesOrderDetails { get { return GetOrCreateEntityCollection("SalesOrderHeader", true, false, ref _salesOrderDetails); } } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderSalesReasonEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderSalesReasonEntity))] + public virtual EntityCollection SalesOrderHeaderSalesReasons { get { return GetOrCreateEntityCollection("SalesOrderHeader", true, false, ref _salesOrderHeaderSalesReasons); } } + + /// Gets / sets related entity of type 'AddressEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual AddressEntity Address + { + get { return _address; } + set { SetSingleRelatedEntityNavigator(value, "Address"); } + } + + /// Gets / sets related entity of type 'AddressEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual AddressEntity Address_ + { + get { return _address_; } + set { SetSingleRelatedEntityNavigator(value, "Address_"); } + } + + /// Gets / sets related entity of type 'CreditCardEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CreditCardEntity CreditCard + { + get { return _creditCard; } + set { SetSingleRelatedEntityNavigator(value, "CreditCard"); } + } + + /// Gets / sets related entity of type 'CurrencyRateEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CurrencyRateEntity CurrencyRate + { + get { return _currencyRate; } + set { SetSingleRelatedEntityNavigator(value, "CurrencyRate"); } + } + + /// Gets / sets related entity of type 'CustomerEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CustomerEntity Customer + { + get { return _customer; } + set { SetSingleRelatedEntityNavigator(value, "Customer"); } + } + + /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesPersonEntity SalesPerson + { + get { return _salesPerson; } + set { SetSingleRelatedEntityNavigator(value, "SalesPerson"); } + } + + /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesTerritoryEntity SalesTerritory + { + get { return _salesTerritory; } + set { SetSingleRelatedEntityNavigator(value, "SalesTerritory"); } + } + + /// Gets / sets related entity of type 'ShipMethodEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ShipMethodEntity ShipMethod + { + get { return _shipMethod; } + set { SetSingleRelatedEntityNavigator(value, "ShipMethod"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesOrderHeaderFieldIndex + { + ///AccountNumber. + AccountNumber, + ///BillToAddressId. + BillToAddressId, + ///Comment. + Comment, + ///CreditCardApprovalCode. + CreditCardApprovalCode, + ///CreditCardId. + CreditCardId, + ///CurrencyRateId. + CurrencyRateId, + ///CustomerId. + CustomerId, + ///DueDate. + DueDate, + ///Freight. + Freight, + ///ModifiedDate. + ModifiedDate, + ///OnlineOrderFlag. + OnlineOrderFlag, + ///OrderDate. + OrderDate, + ///PurchaseOrderNumber. + PurchaseOrderNumber, + ///RevisionNumber. + RevisionNumber, + ///Rowguid. + Rowguid, + ///SalesOrderId. + SalesOrderId, + ///SalesOrderNumber. + SalesOrderNumber, + ///SalesPersonId. + SalesPersonId, + ///ShipDate. + ShipDate, + ///ShipMethodId. + ShipMethodId, + ///ShipToAddressId. + ShipToAddressId, + ///Status. + Status, + ///SubTotal. + SubTotal, + ///TaxAmt. + TaxAmt, + ///TerritoryId. + TerritoryId, + ///TotalDue. + TotalDue, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesOrderHeader. + public partial class SalesOrderHeaderRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesOrderDetailEntity over the 1:n relation they have, using the relation between the fields: SalesOrderHeader.SalesOrderId - SalesOrderDetail.SalesOrderId + public virtual IEntityRelation SalesOrderDetailEntityUsingSalesOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderDetails", true, new[] { SalesOrderHeaderFields.SalesOrderId, SalesOrderDetailFields.SalesOrderId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesOrderHeaderSalesReasonEntity over the 1:n relation they have, using the relation between the fields: SalesOrderHeader.SalesOrderId - SalesOrderHeaderSalesReason.SalesOrderId + public virtual IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaderSalesReasons", true, new[] { SalesOrderHeaderFields.SalesOrderId, SalesOrderHeaderSalesReasonFields.SalesOrderId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and AddressEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.BillToAddressId - Address.AddressId + public virtual IEntityRelation AddressEntityUsingBillToAddressId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Address", false, new[] { AddressFields.AddressId, SalesOrderHeaderFields.BillToAddressId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and AddressEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.ShipToAddressId - Address.AddressId + public virtual IEntityRelation AddressEntityUsingShipToAddressId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Address_", false, new[] { AddressFields.AddressId, SalesOrderHeaderFields.ShipToAddressId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and CreditCardEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.CreditCardId - CreditCard.CreditCardId + public virtual IEntityRelation CreditCardEntityUsingCreditCardId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "CreditCard", false, new[] { CreditCardFields.CreditCardId, SalesOrderHeaderFields.CreditCardId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and CurrencyRateEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.CurrencyRateId - CurrencyRate.CurrencyRateId + public virtual IEntityRelation CurrencyRateEntityUsingCurrencyRateId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "CurrencyRate", false, new[] { CurrencyRateFields.CurrencyRateId, SalesOrderHeaderFields.CurrencyRateId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and CustomerEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.CustomerId - Customer.CustomerId + public virtual IEntityRelation CustomerEntityUsingCustomerId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Customer", false, new[] { CustomerFields.CustomerId, SalesOrderHeaderFields.CustomerId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.SalesPersonId - SalesPerson.SalesPersonId + public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesPerson", false, new[] { SalesPersonFields.SalesPersonId, SalesOrderHeaderFields.SalesPersonId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.TerritoryId - SalesTerritory.TerritoryId + public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesTerritory", false, new[] { SalesTerritoryFields.TerritoryId, SalesOrderHeaderFields.TerritoryId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderEntity and ShipMethodEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeader.ShipMethodId - ShipMethod.ShipMethodId + public virtual IEntityRelation ShipMethodEntityUsingShipMethodId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ShipMethod", false, new[] { ShipMethodFields.ShipMethodId, SalesOrderHeaderFields.ShipMethodId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesOrderHeaderRelations + { + internal static readonly IEntityRelation SalesOrderDetailEntityUsingSalesOrderIdStatic = new SalesOrderHeaderRelations().SalesOrderDetailEntityUsingSalesOrderId; + internal static readonly IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesOrderIdStatic = new SalesOrderHeaderRelations().SalesOrderHeaderSalesReasonEntityUsingSalesOrderId; + internal static readonly IEntityRelation AddressEntityUsingBillToAddressIdStatic = new SalesOrderHeaderRelations().AddressEntityUsingBillToAddressId; + internal static readonly IEntityRelation AddressEntityUsingShipToAddressIdStatic = new SalesOrderHeaderRelations().AddressEntityUsingShipToAddressId; + internal static readonly IEntityRelation CreditCardEntityUsingCreditCardIdStatic = new SalesOrderHeaderRelations().CreditCardEntityUsingCreditCardId; + internal static readonly IEntityRelation CurrencyRateEntityUsingCurrencyRateIdStatic = new SalesOrderHeaderRelations().CurrencyRateEntityUsingCurrencyRateId; + internal static readonly IEntityRelation CustomerEntityUsingCustomerIdStatic = new SalesOrderHeaderRelations().CustomerEntityUsingCustomerId; + internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new SalesOrderHeaderRelations().SalesPersonEntityUsingSalesPersonId; + internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new SalesOrderHeaderRelations().SalesTerritoryEntityUsingTerritoryId; + internal static readonly IEntityRelation ShipMethodEntityUsingShipMethodIdStatic = new SalesOrderHeaderRelations().ShipMethodEntityUsingShipMethodId; + + /// CTor + static StaticSalesOrderHeaderRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs new file mode 100644 index 00000000..c19511de --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesOrderHeaderSalesReasonEntity.cs @@ -0,0 +1,245 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesOrderHeaderSalesReason'.

+ [Serializable] + public partial class SalesOrderHeaderSalesReasonEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private SalesOrderHeaderEntity _salesOrderHeader; + private SalesReasonEntity _salesReason; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesOrderHeaderSalesReasonEntityStaticMetaData _staticMetaData = new SalesOrderHeaderSalesReasonEntityStaticMetaData(); + private static SalesOrderHeaderSalesReasonRelations _relationsFactory = new SalesOrderHeaderSalesReasonRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SalesOrderHeader + public static readonly string SalesOrderHeader = "SalesOrderHeader"; + /// Member name SalesReason + public static readonly string SalesReason = "SalesReason"; + } + + /// Static meta-data storage for navigator related information + protected class SalesOrderHeaderSalesReasonEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesOrderHeaderSalesReasonEntityStaticMetaData() + { + SetEntityCoreInfo("SalesOrderHeaderSalesReasonEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderSalesReasonEntity, typeof(SalesOrderHeaderSalesReasonEntity), typeof(SalesOrderHeaderSalesReasonEntityFactory), false); + AddNavigatorMetaData("SalesOrderHeader", "SalesOrderHeaderSalesReasons", (a, b) => a._salesOrderHeader = b, a => a._salesOrderHeader, (a, b) => a.SalesOrderHeader = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderSalesReasonRelations.SalesOrderHeaderEntityUsingSalesOrderIdStatic, ()=>new SalesOrderHeaderSalesReasonRelations().SalesOrderHeaderEntityUsingSalesOrderId, null, new int[] { (int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData("SalesReason", "SalesOrderHeaderSalesReasons", (a, b) => a._salesReason = b, a => a._salesReason, (a, b) => a.SalesReason = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesOrderHeaderSalesReasonRelations.SalesReasonEntityUsingSalesReasonIdStatic, ()=>new SalesOrderHeaderSalesReasonRelations().SalesReasonEntityUsingSalesReasonId, null, new int[] { (int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesReasonEntity); + } + } + + /// Static ctor + static SalesOrderHeaderSalesReasonEntity() + { + } + + /// CTor + public SalesOrderHeaderSalesReasonEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesOrderHeaderSalesReasonEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesOrderHeaderSalesReasonEntity + public SalesOrderHeaderSalesReasonEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object + /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object + public SalesOrderHeaderSalesReasonEntity(System.Int32 salesOrderId, System.Int32 salesReasonId) : this(salesOrderId, salesReasonId, null) + { + } + + /// CTor + /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object + /// PK value for SalesOrderHeaderSalesReason which data should be fetched into this SalesOrderHeaderSalesReason object + /// The custom validator object for this SalesOrderHeaderSalesReasonEntity + public SalesOrderHeaderSalesReasonEntity(System.Int32 salesOrderId, System.Int32 salesReasonId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SalesOrderId = salesOrderId; + this.SalesReasonId = salesReasonId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesOrderHeaderSalesReasonEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeader() { return CreateRelationInfoForNavigator("SalesOrderHeader"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesReason' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesReason() { return CreateRelationInfoForNavigator("SalesReason"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesOrderHeaderSalesReasonEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesOrderHeaderSalesReasonRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeader { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeader", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesReason' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesReason { get { return _staticMetaData.GetPrefetchPathElement("SalesReason", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity SalesOrderHeaderSalesReason

+ /// Mapped on table field: "SalesOrderHeaderSalesReason"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesOrderHeaderSalesReasonFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesOrderHeaderSalesReasonFieldIndex.ModifiedDate, value); } + } + + /// The SalesOrderId property of the Entity SalesOrderHeaderSalesReason

+ /// Mapped on table field: "SalesOrderHeaderSalesReason"."SalesOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 SalesOrderId + { + get { return (System.Int32)GetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId, true); } + set { SetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId, value); } + } + + /// The SalesReasonId property of the Entity SalesOrderHeaderSalesReason

+ /// Mapped on table field: "SalesOrderHeaderSalesReason"."SalesReasonID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 SalesReasonId + { + get { return (System.Int32)GetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId, true); } + set { SetValue((int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId, value); } + } + + /// Gets / sets related entity of type 'SalesOrderHeaderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesOrderHeaderEntity SalesOrderHeader + { + get { return _salesOrderHeader; } + set { SetSingleRelatedEntityNavigator(value, "SalesOrderHeader"); } + } + + /// Gets / sets related entity of type 'SalesReasonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesReasonEntity SalesReason + { + get { return _salesReason; } + set { SetSingleRelatedEntityNavigator(value, "SalesReason"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesOrderHeaderSalesReasonFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///SalesOrderId. + SalesOrderId, + ///SalesReasonId. + SalesReasonId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesOrderHeaderSalesReason. + public partial class SalesOrderHeaderSalesReasonRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between SalesOrderHeaderSalesReasonEntity and SalesOrderHeaderEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeaderSalesReason.SalesOrderId - SalesOrderHeader.SalesOrderId + public virtual IEntityRelation SalesOrderHeaderEntityUsingSalesOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesOrderHeader", false, new[] { SalesOrderHeaderFields.SalesOrderId, SalesOrderHeaderSalesReasonFields.SalesOrderId }); } + } + + /// Returns a new IEntityRelation object, between SalesOrderHeaderSalesReasonEntity and SalesReasonEntity over the m:1 relation they have, using the relation between the fields: SalesOrderHeaderSalesReason.SalesReasonId - SalesReason.SalesReasonId + public virtual IEntityRelation SalesReasonEntityUsingSalesReasonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesReason", false, new[] { SalesReasonFields.SalesReasonId, SalesOrderHeaderSalesReasonFields.SalesReasonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesOrderHeaderSalesReasonRelations + { + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingSalesOrderIdStatic = new SalesOrderHeaderSalesReasonRelations().SalesOrderHeaderEntityUsingSalesOrderId; + internal static readonly IEntityRelation SalesReasonEntityUsingSalesReasonIdStatic = new SalesOrderHeaderSalesReasonRelations().SalesReasonEntityUsingSalesReasonId; + + /// CTor + static StaticSalesOrderHeaderSalesReasonRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs new file mode 100644 index 00000000..898ad171 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonEntity.cs @@ -0,0 +1,393 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesPerson'.

+ [Serializable] + public partial class SalesPersonEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _salesOrderHeaders; + private EntityCollection _salesPersonQuotaHistories; + private EntityCollection _salesTerritoryHistories; + private EntityCollection _stores; + private SalesTerritoryEntity _salesTerritory; + private EmployeeEntity _employee; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesPersonEntityStaticMetaData _staticMetaData = new SalesPersonEntityStaticMetaData(); + private static SalesPersonRelations _relationsFactory = new SalesPersonRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SalesTerritory + public static readonly string SalesTerritory = "SalesTerritory"; + /// Member name SalesOrderHeaders + public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; + /// Member name SalesPersonQuotaHistories + public static readonly string SalesPersonQuotaHistories = "SalesPersonQuotaHistories"; + /// Member name SalesTerritoryHistories + public static readonly string SalesTerritoryHistories = "SalesTerritoryHistories"; + /// Member name Stores + public static readonly string Stores = "Stores"; + /// Member name Employee + public static readonly string Employee = "Employee"; + } + + /// Static meta-data storage for navigator related information + protected class SalesPersonEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesPersonEntityStaticMetaData() + { + SetEntityCoreInfo("SalesPersonEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity, typeof(SalesPersonEntity), typeof(SalesPersonEntityFactory), false); + AddNavigatorMetaData>("SalesOrderHeaders", a => a._salesOrderHeaders, (a, b) => a._salesOrderHeaders = b, a => a.SalesOrderHeaders, () => new SalesPersonRelations().SalesOrderHeaderEntityUsingSalesPersonId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData>("SalesPersonQuotaHistories", a => a._salesPersonQuotaHistories, (a, b) => a._salesPersonQuotaHistories = b, a => a.SalesPersonQuotaHistories, () => new SalesPersonRelations().SalesPersonQuotaHistoryEntityUsingSalesPersonId, typeof(SalesPersonQuotaHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonQuotaHistoryEntity); + AddNavigatorMetaData>("SalesTerritoryHistories", a => a._salesTerritoryHistories, (a, b) => a._salesTerritoryHistories = b, a => a.SalesTerritoryHistories, () => new SalesPersonRelations().SalesTerritoryHistoryEntityUsingSalesPersonId, typeof(SalesTerritoryHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryHistoryEntity); + AddNavigatorMetaData>("Stores", a => a._stores, (a, b) => a._stores = b, a => a.Stores, () => new SalesPersonRelations().StoreEntityUsingSalesPersonId, typeof(StoreEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.StoreEntity); + AddNavigatorMetaData("SalesTerritory", "SalesPeople", (a, b) => a._salesTerritory = b, a => a._salesTerritory, (a, b) => a.SalesTerritory = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesPersonRelations.SalesTerritoryEntityUsingTerritoryIdStatic, ()=>new SalesPersonRelations().SalesTerritoryEntityUsingTerritoryId, null, new int[] { (int)SalesPersonFieldIndex.TerritoryId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity); + AddNavigatorMetaData("Employee", "SalesPerson", (a, b) => a._employee = b, a => a._employee, (a, b) => a.Employee = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesPersonRelations.EmployeeEntityUsingSalesPersonIdStatic, ()=>new SalesPersonRelations().EmployeeEntityUsingSalesPersonId, null, new int[] { (int)SalesPersonFieldIndex.SalesPersonId }, null, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity); + } + } + + /// Static ctor + static SalesPersonEntity() + { + } + + /// CTor + public SalesPersonEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesPersonEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesPersonEntity + public SalesPersonEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesPerson which data should be fetched into this SalesPerson object + public SalesPersonEntity(System.Int32 salesPersonId) : this(salesPersonId, null) + { + } + + /// CTor + /// PK value for SalesPerson which data should be fetched into this SalesPerson object + /// The custom validator object for this SalesPersonEntity + public SalesPersonEntity(System.Int32 salesPersonId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SalesPersonId = salesPersonId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesPersonEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() { return CreateRelationInfoForNavigator("SalesOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesPersonQuotaHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesPersonQuotaHistories() { return CreateRelationInfoForNavigator("SalesPersonQuotaHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTerritoryHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritoryHistories() { return CreateRelationInfoForNavigator("SalesTerritoryHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Store' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoStores() { return CreateRelationInfoForNavigator("Stores"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() { return CreateRelationInfoForNavigator("SalesTerritory"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Employee' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployee() { return CreateRelationInfoForNavigator("Employee"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesPersonEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesPersonRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPersonQuotaHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesPersonQuotaHistories { get { return _staticMetaData.GetPrefetchPathElement("SalesPersonQuotaHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritoryHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritoryHistories { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritoryHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Store' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathStores { get { return _staticMetaData.GetPrefetchPathElement("Stores", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritory { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritory", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Employee' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployee { get { return _staticMetaData.GetPrefetchPathElement("Employee", CommonEntityBase.CreateEntityCollection()); } } + + /// The Bonus property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."Bonus".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal Bonus + { + get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.Bonus, true); } + set { SetValue((int)SalesPersonFieldIndex.Bonus, value); } + } + + /// The CommissionPct property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."CommissionPct".
Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal CommissionPct + { + get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.CommissionPct, true); } + set { SetValue((int)SalesPersonFieldIndex.CommissionPct, value); } + } + + /// The ModifiedDate property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesPersonFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesPersonFieldIndex.ModifiedDate, value); } + } + + /// The Rowguid property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SalesPersonFieldIndex.Rowguid, true); } + set { SetValue((int)SalesPersonFieldIndex.Rowguid, value); } + } + + /// The SalesLastYear property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."SalesLastYear".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal SalesLastYear + { + get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.SalesLastYear, true); } + set { SetValue((int)SalesPersonFieldIndex.SalesLastYear, value); } + } + + /// The SalesPersonId property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 SalesPersonId + { + get { return (System.Int32)GetValue((int)SalesPersonFieldIndex.SalesPersonId, true); } + set { SetValue((int)SalesPersonFieldIndex.SalesPersonId, value); } + } + + /// The SalesQuota property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."SalesQuota".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable SalesQuota + { + get { return (Nullable)GetValue((int)SalesPersonFieldIndex.SalesQuota, false); } + set { SetValue((int)SalesPersonFieldIndex.SalesQuota, value); } + } + + /// The SalesYtd property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."SalesYTD".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal SalesYtd + { + get { return (System.Decimal)GetValue((int)SalesPersonFieldIndex.SalesYtd, true); } + set { SetValue((int)SalesPersonFieldIndex.SalesYtd, value); } + } + + /// The TerritoryId property of the Entity SalesPerson

+ /// Mapped on table field: "SalesPerson"."TerritoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable TerritoryId + { + get { return (Nullable)GetValue((int)SalesPersonFieldIndex.TerritoryId, false); } + set { SetValue((int)SalesPersonFieldIndex.TerritoryId, value); } + } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders { get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _salesOrderHeaders); } } + + /// Gets the EntityCollection with the related entities of type 'SalesPersonQuotaHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesPersonQuotaHistoryEntity))] + public virtual EntityCollection SalesPersonQuotaHistories { get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _salesPersonQuotaHistories); } } + + /// Gets the EntityCollection with the related entities of type 'SalesTerritoryHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesTerritoryHistoryEntity))] + public virtual EntityCollection SalesTerritoryHistories { get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _salesTerritoryHistories); } } + + /// Gets the EntityCollection with the related entities of type 'StoreEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(StoreEntity))] + public virtual EntityCollection Stores { get { return GetOrCreateEntityCollection("SalesPerson", true, false, ref _stores); } } + + /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesTerritoryEntity SalesTerritory + { + get { return _salesTerritory; } + set { SetSingleRelatedEntityNavigator(value, "SalesTerritory"); } + } + + /// Gets / sets related entity of type 'EmployeeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual EmployeeEntity Employee + { + get { return _employee; } + set { SetSingleRelatedEntityNavigator(value, "Employee"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesPersonFieldIndex + { + ///Bonus. + Bonus, + ///CommissionPct. + CommissionPct, + ///ModifiedDate. + ModifiedDate, + ///Rowguid. + Rowguid, + ///SalesLastYear. + SalesLastYear, + ///SalesPersonId. + SalesPersonId, + ///SalesQuota. + SalesQuota, + ///SalesYtd. + SalesYtd, + ///TerritoryId. + TerritoryId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesPerson. + public partial class SalesPersonRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: SalesPerson.SalesPersonId - SalesOrderHeader.SalesPersonId + public virtual IEntityRelation SalesOrderHeaderEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders", true, new[] { SalesPersonFields.SalesPersonId, SalesOrderHeaderFields.SalesPersonId }); } + } + + /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesPersonQuotaHistoryEntity over the 1:n relation they have, using the relation between the fields: SalesPerson.SalesPersonId - SalesPersonQuotaHistory.SalesPersonId + public virtual IEntityRelation SalesPersonQuotaHistoryEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesPersonQuotaHistories", true, new[] { SalesPersonFields.SalesPersonId, SalesPersonQuotaHistoryFields.SalesPersonId }); } + } + + /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesTerritoryHistoryEntity over the 1:n relation they have, using the relation between the fields: SalesPerson.SalesPersonId - SalesTerritoryHistory.SalesPersonId + public virtual IEntityRelation SalesTerritoryHistoryEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesTerritoryHistories", true, new[] { SalesPersonFields.SalesPersonId, SalesTerritoryHistoryFields.SalesPersonId }); } + } + + /// Returns a new IEntityRelation object, between SalesPersonEntity and StoreEntity over the 1:n relation they have, using the relation between the fields: SalesPerson.SalesPersonId - Store.SalesPersonId + public virtual IEntityRelation StoreEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Stores", true, new[] { SalesPersonFields.SalesPersonId, StoreFields.SalesPersonId }); } + } + + /// Returns a new IEntityRelation object, between SalesPersonEntity and EmployeeEntity over the 1:1 relation they have, using the relation between the fields: SalesPerson.SalesPersonId - Employee.EmployeeId + public virtual IEntityRelation EmployeeEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "Employee", false, new[] { EmployeeFields.EmployeeId, SalesPersonFields.SalesPersonId }); } + } + + /// Returns a new IEntityRelation object, between SalesPersonEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: SalesPerson.TerritoryId - SalesTerritory.TerritoryId + public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesTerritory", false, new[] { SalesTerritoryFields.TerritoryId, SalesPersonFields.TerritoryId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesPersonRelations + { + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingSalesPersonIdStatic = new SalesPersonRelations().SalesOrderHeaderEntityUsingSalesPersonId; + internal static readonly IEntityRelation SalesPersonQuotaHistoryEntityUsingSalesPersonIdStatic = new SalesPersonRelations().SalesPersonQuotaHistoryEntityUsingSalesPersonId; + internal static readonly IEntityRelation SalesTerritoryHistoryEntityUsingSalesPersonIdStatic = new SalesPersonRelations().SalesTerritoryHistoryEntityUsingSalesPersonId; + internal static readonly IEntityRelation StoreEntityUsingSalesPersonIdStatic = new SalesPersonRelations().StoreEntityUsingSalesPersonId; + internal static readonly IEntityRelation EmployeeEntityUsingSalesPersonIdStatic = new SalesPersonRelations().EmployeeEntityUsingSalesPersonId; + internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new SalesPersonRelations().SalesTerritoryEntityUsingTerritoryId; + + /// CTor + static StaticSalesPersonRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs new file mode 100644 index 00000000..833f219b --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesPersonQuotaHistoryEntity.cs @@ -0,0 +1,238 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesPersonQuotaHistory'.

+ [Serializable] + public partial class SalesPersonQuotaHistoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private SalesPersonEntity _salesPerson; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesPersonQuotaHistoryEntityStaticMetaData _staticMetaData = new SalesPersonQuotaHistoryEntityStaticMetaData(); + private static SalesPersonQuotaHistoryRelations _relationsFactory = new SalesPersonQuotaHistoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SalesPerson + public static readonly string SalesPerson = "SalesPerson"; + } + + /// Static meta-data storage for navigator related information + protected class SalesPersonQuotaHistoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesPersonQuotaHistoryEntityStaticMetaData() + { + SetEntityCoreInfo("SalesPersonQuotaHistoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonQuotaHistoryEntity, typeof(SalesPersonQuotaHistoryEntity), typeof(SalesPersonQuotaHistoryEntityFactory), false); + AddNavigatorMetaData("SalesPerson", "SalesPersonQuotaHistories", (a, b) => a._salesPerson = b, a => a._salesPerson, (a, b) => a.SalesPerson = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesPersonQuotaHistoryRelations.SalesPersonEntityUsingSalesPersonIdStatic, ()=>new SalesPersonQuotaHistoryRelations().SalesPersonEntityUsingSalesPersonId, null, new int[] { (int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity); + } + } + + /// Static ctor + static SalesPersonQuotaHistoryEntity() + { + } + + /// CTor + public SalesPersonQuotaHistoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesPersonQuotaHistoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesPersonQuotaHistoryEntity + public SalesPersonQuotaHistoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object + /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object + public SalesPersonQuotaHistoryEntity(System.DateTime quotaDate, System.Int32 salesPersonId) : this(quotaDate, salesPersonId, null) + { + } + + /// CTor + /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object + /// PK value for SalesPersonQuotaHistory which data should be fetched into this SalesPersonQuotaHistory object + /// The custom validator object for this SalesPersonQuotaHistoryEntity + public SalesPersonQuotaHistoryEntity(System.DateTime quotaDate, System.Int32 salesPersonId, IValidator validator) + { + InitClassEmpty(validator, null); + this.QuotaDate = quotaDate; + this.SalesPersonId = salesPersonId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesPersonQuotaHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() { return CreateRelationInfoForNavigator("SalesPerson"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesPersonQuotaHistoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesPersonQuotaHistoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesPerson { get { return _staticMetaData.GetPrefetchPathElement("SalesPerson", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity SalesPersonQuotaHistory

+ /// Mapped on table field: "SalesPersonQuotaHistory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesPersonQuotaHistoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.ModifiedDate, value); } + } + + /// The QuotaDate property of the Entity SalesPersonQuotaHistory

+ /// Mapped on table field: "SalesPersonQuotaHistory"."QuotaDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.DateTime QuotaDate + { + get { return (System.DateTime)GetValue((int)SalesPersonQuotaHistoryFieldIndex.QuotaDate, true); } + set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.QuotaDate, value); } + } + + /// The Rowguid property of the Entity SalesPersonQuotaHistory

+ /// Mapped on table field: "SalesPersonQuotaHistory"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SalesPersonQuotaHistoryFieldIndex.Rowguid, true); } + set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.Rowguid, value); } + } + + /// The SalesPersonId property of the Entity SalesPersonQuotaHistory

+ /// Mapped on table field: "SalesPersonQuotaHistory"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 SalesPersonId + { + get { return (System.Int32)GetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId, true); } + set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId, value); } + } + + /// The SalesQuota property of the Entity SalesPersonQuotaHistory

+ /// Mapped on table field: "SalesPersonQuotaHistory"."SalesQuota".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal SalesQuota + { + get { return (System.Decimal)GetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesQuota, true); } + set { SetValue((int)SalesPersonQuotaHistoryFieldIndex.SalesQuota, value); } + } + + /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesPersonEntity SalesPerson + { + get { return _salesPerson; } + set { SetSingleRelatedEntityNavigator(value, "SalesPerson"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesPersonQuotaHistoryFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///QuotaDate. + QuotaDate, + ///Rowguid. + Rowguid, + ///SalesPersonId. + SalesPersonId, + ///SalesQuota. + SalesQuota, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesPersonQuotaHistory. + public partial class SalesPersonQuotaHistoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between SalesPersonQuotaHistoryEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: SalesPersonQuotaHistory.SalesPersonId - SalesPerson.SalesPersonId + public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesPerson", false, new[] { SalesPersonFields.SalesPersonId, SalesPersonQuotaHistoryFields.SalesPersonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesPersonQuotaHistoryRelations + { + internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new SalesPersonQuotaHistoryRelations().SalesPersonEntityUsingSalesPersonId; + + /// CTor + static StaticSalesPersonQuotaHistoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs new file mode 100644 index 00000000..f2f5543a --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesReasonEntity.cs @@ -0,0 +1,219 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesReason'.

+ [Serializable] + public partial class SalesReasonEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _salesOrderHeaderSalesReasons; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesReasonEntityStaticMetaData _staticMetaData = new SalesReasonEntityStaticMetaData(); + private static SalesReasonRelations _relationsFactory = new SalesReasonRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SalesOrderHeaderSalesReasons + public static readonly string SalesOrderHeaderSalesReasons = "SalesOrderHeaderSalesReasons"; + } + + /// Static meta-data storage for navigator related information + protected class SalesReasonEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesReasonEntityStaticMetaData() + { + SetEntityCoreInfo("SalesReasonEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesReasonEntity, typeof(SalesReasonEntity), typeof(SalesReasonEntityFactory), false); + AddNavigatorMetaData>("SalesOrderHeaderSalesReasons", a => a._salesOrderHeaderSalesReasons, (a, b) => a._salesOrderHeaderSalesReasons = b, a => a.SalesOrderHeaderSalesReasons, () => new SalesReasonRelations().SalesOrderHeaderSalesReasonEntityUsingSalesReasonId, typeof(SalesOrderHeaderSalesReasonEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderSalesReasonEntity); + } + } + + /// Static ctor + static SalesReasonEntity() + { + } + + /// CTor + public SalesReasonEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesReasonEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesReasonEntity + public SalesReasonEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesReason which data should be fetched into this SalesReason object + public SalesReasonEntity(System.Int32 salesReasonId) : this(salesReasonId, null) + { + } + + /// CTor + /// PK value for SalesReason which data should be fetched into this SalesReason object + /// The custom validator object for this SalesReasonEntity + public SalesReasonEntity(System.Int32 salesReasonId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SalesReasonId = salesReasonId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesReasonEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeaderSalesReason' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaderSalesReasons() { return CreateRelationInfoForNavigator("SalesOrderHeaderSalesReasons"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesReasonEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesReasonRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeaderSalesReason' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaderSalesReasons { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaderSalesReasons", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity SalesReason

+ /// Mapped on table field: "SalesReason"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesReasonFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesReasonFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity SalesReason

+ /// Mapped on table field: "SalesReason"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)SalesReasonFieldIndex.Name, true); } + set { SetValue((int)SalesReasonFieldIndex.Name, value); } + } + + /// The ReasonType property of the Entity SalesReason

+ /// Mapped on table field: "SalesReason"."ReasonType".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String ReasonType + { + get { return (System.String)GetValue((int)SalesReasonFieldIndex.ReasonType, true); } + set { SetValue((int)SalesReasonFieldIndex.ReasonType, value); } + } + + /// The SalesReasonId property of the Entity SalesReason

+ /// Mapped on table field: "SalesReason"."SalesReasonID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 SalesReasonId + { + get { return (System.Int32)GetValue((int)SalesReasonFieldIndex.SalesReasonId, true); } + set { SetValue((int)SalesReasonFieldIndex.SalesReasonId, value); } } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderSalesReasonEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderSalesReasonEntity))] + public virtual EntityCollection SalesOrderHeaderSalesReasons { get { return GetOrCreateEntityCollection("SalesReason", true, false, ref _salesOrderHeaderSalesReasons); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesReasonFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///ReasonType. + ReasonType, + ///SalesReasonId. + SalesReasonId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesReason. + public partial class SalesReasonRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between SalesReasonEntity and SalesOrderHeaderSalesReasonEntity over the 1:n relation they have, using the relation between the fields: SalesReason.SalesReasonId - SalesOrderHeaderSalesReason.SalesReasonId + public virtual IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesReasonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaderSalesReasons", true, new[] { SalesReasonFields.SalesReasonId, SalesOrderHeaderSalesReasonFields.SalesReasonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesReasonRelations + { + internal static readonly IEntityRelation SalesOrderHeaderSalesReasonEntityUsingSalesReasonIdStatic = new SalesReasonRelations().SalesOrderHeaderSalesReasonEntityUsingSalesReasonId; + + /// CTor + static StaticSalesReasonRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs new file mode 100644 index 00000000..371052c6 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTaxRateEntity.cs @@ -0,0 +1,254 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesTaxRate'.

+ [Serializable] + public partial class SalesTaxRateEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private StateProvinceEntity _stateProvince; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesTaxRateEntityStaticMetaData _staticMetaData = new SalesTaxRateEntityStaticMetaData(); + private static SalesTaxRateRelations _relationsFactory = new SalesTaxRateRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name StateProvince + public static readonly string StateProvince = "StateProvince"; + } + + /// Static meta-data storage for navigator related information + protected class SalesTaxRateEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesTaxRateEntityStaticMetaData() + { + SetEntityCoreInfo("SalesTaxRateEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTaxRateEntity, typeof(SalesTaxRateEntity), typeof(SalesTaxRateEntityFactory), false); + AddNavigatorMetaData("StateProvince", "SalesTaxRates", (a, b) => a._stateProvince = b, a => a._stateProvince, (a, b) => a.StateProvince = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesTaxRateRelations.StateProvinceEntityUsingStateProvinceIdStatic, ()=>new SalesTaxRateRelations().StateProvinceEntityUsingStateProvinceId, null, new int[] { (int)SalesTaxRateFieldIndex.StateProvinceId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity); + } + } + + /// Static ctor + static SalesTaxRateEntity() + { + } + + /// CTor + public SalesTaxRateEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesTaxRateEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesTaxRateEntity + public SalesTaxRateEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesTaxRate which data should be fetched into this SalesTaxRate object + public SalesTaxRateEntity(System.Int32 salesTaxRateId) : this(salesTaxRateId, null) + { + } + + /// CTor + /// PK value for SalesTaxRate which data should be fetched into this SalesTaxRate object + /// The custom validator object for this SalesTaxRateEntity + public SalesTaxRateEntity(System.Int32 salesTaxRateId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SalesTaxRateId = salesTaxRateId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesTaxRateEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'StateProvince' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoStateProvince() { return CreateRelationInfoForNavigator("StateProvince"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesTaxRateEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesTaxRateRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathStateProvince { get { return _staticMetaData.GetPrefetchPathElement("StateProvince", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity SalesTaxRate

+ /// Mapped on table field: "SalesTaxRate"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesTaxRateFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesTaxRateFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity SalesTaxRate

+ /// Mapped on table field: "SalesTaxRate"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)SalesTaxRateFieldIndex.Name, true); } + set { SetValue((int)SalesTaxRateFieldIndex.Name, value); } + } + + /// The Rowguid property of the Entity SalesTaxRate

+ /// Mapped on table field: "SalesTaxRate"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SalesTaxRateFieldIndex.Rowguid, true); } + set { SetValue((int)SalesTaxRateFieldIndex.Rowguid, value); } + } + + /// The SalesTaxRateId property of the Entity SalesTaxRate

+ /// Mapped on table field: "SalesTaxRate"."SalesTaxRateID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 SalesTaxRateId + { + get { return (System.Int32)GetValue((int)SalesTaxRateFieldIndex.SalesTaxRateId, true); } + set { SetValue((int)SalesTaxRateFieldIndex.SalesTaxRateId, value); } } + + /// The StateProvinceId property of the Entity SalesTaxRate

+ /// Mapped on table field: "SalesTaxRate"."StateProvinceID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 StateProvinceId + { + get { return (System.Int32)GetValue((int)SalesTaxRateFieldIndex.StateProvinceId, true); } + set { SetValue((int)SalesTaxRateFieldIndex.StateProvinceId, value); } + } + + /// The TaxRate property of the Entity SalesTaxRate

+ /// Mapped on table field: "SalesTaxRate"."TaxRate".
Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal TaxRate + { + get { return (System.Decimal)GetValue((int)SalesTaxRateFieldIndex.TaxRate, true); } + set { SetValue((int)SalesTaxRateFieldIndex.TaxRate, value); } + } + + /// The TaxType property of the Entity SalesTaxRate

+ /// Mapped on table field: "SalesTaxRate"."TaxType".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte TaxType + { + get { return (System.Byte)GetValue((int)SalesTaxRateFieldIndex.TaxType, true); } + set { SetValue((int)SalesTaxRateFieldIndex.TaxType, value); } + } + + /// Gets / sets related entity of type 'StateProvinceEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual StateProvinceEntity StateProvince + { + get { return _stateProvince; } + set { SetSingleRelatedEntityNavigator(value, "StateProvince"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesTaxRateFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///Rowguid. + Rowguid, + ///SalesTaxRateId. + SalesTaxRateId, + ///StateProvinceId. + StateProvinceId, + ///TaxRate. + TaxRate, + ///TaxType. + TaxType, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesTaxRate. + public partial class SalesTaxRateRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between SalesTaxRateEntity and StateProvinceEntity over the m:1 relation they have, using the relation between the fields: SalesTaxRate.StateProvinceId - StateProvince.StateProvinceId + public virtual IEntityRelation StateProvinceEntityUsingStateProvinceId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "StateProvince", false, new[] { StateProvinceFields.StateProvinceId, SalesTaxRateFields.StateProvinceId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesTaxRateRelations + { + internal static readonly IEntityRelation StateProvinceEntityUsingStateProvinceIdStatic = new SalesTaxRateRelations().StateProvinceEntityUsingStateProvinceId; + + /// CTor + static StaticSalesTaxRateRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs new file mode 100644 index 00000000..e8ae3a10 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryEntity.cs @@ -0,0 +1,398 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesTerritory'.

+ [Serializable] + public partial class SalesTerritoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _customers; + private EntityCollection _salesOrderHeaders; + private EntityCollection _salesPeople; + private EntityCollection _salesTerritoryHistories; + private EntityCollection _stateProvinces; + private CountryRegionEntity _countryRegion; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesTerritoryEntityStaticMetaData _staticMetaData = new SalesTerritoryEntityStaticMetaData(); + private static SalesTerritoryRelations _relationsFactory = new SalesTerritoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name CountryRegion + public static readonly string CountryRegion = "CountryRegion"; + /// Member name Customers + public static readonly string Customers = "Customers"; + /// Member name SalesOrderHeaders + public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; + /// Member name SalesPeople + public static readonly string SalesPeople = "SalesPeople"; + /// Member name SalesTerritoryHistories + public static readonly string SalesTerritoryHistories = "SalesTerritoryHistories"; + /// Member name StateProvinces + public static readonly string StateProvinces = "StateProvinces"; + } + + /// Static meta-data storage for navigator related information + protected class SalesTerritoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesTerritoryEntityStaticMetaData() + { + SetEntityCoreInfo("SalesTerritoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity, typeof(SalesTerritoryEntity), typeof(SalesTerritoryEntityFactory), false); + AddNavigatorMetaData>("Customers", a => a._customers, (a, b) => a._customers = b, a => a.Customers, () => new SalesTerritoryRelations().CustomerEntityUsingTerritoryId, typeof(CustomerEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity); + AddNavigatorMetaData>("SalesOrderHeaders", a => a._salesOrderHeaders, (a, b) => a._salesOrderHeaders = b, a => a.SalesOrderHeaders, () => new SalesTerritoryRelations().SalesOrderHeaderEntityUsingTerritoryId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + AddNavigatorMetaData>("SalesPeople", a => a._salesPeople, (a, b) => a._salesPeople = b, a => a.SalesPeople, () => new SalesTerritoryRelations().SalesPersonEntityUsingTerritoryId, typeof(SalesPersonEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity); + AddNavigatorMetaData>("SalesTerritoryHistories", a => a._salesTerritoryHistories, (a, b) => a._salesTerritoryHistories = b, a => a.SalesTerritoryHistories, () => new SalesTerritoryRelations().SalesTerritoryHistoryEntityUsingTerritoryId, typeof(SalesTerritoryHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryHistoryEntity); + AddNavigatorMetaData>("StateProvinces", a => a._stateProvinces, (a, b) => a._stateProvinces = b, a => a.StateProvinces, () => new SalesTerritoryRelations().StateProvinceEntityUsingTerritoryId, typeof(StateProvinceEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity); + AddNavigatorMetaData("CountryRegion", "SalesTerritories", (a, b) => a._countryRegion = b, a => a._countryRegion, (a, b) => a.CountryRegion = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesTerritoryRelations.CountryRegionEntityUsingCountryRegionCodeStatic, ()=>new SalesTerritoryRelations().CountryRegionEntityUsingCountryRegionCode, null, new int[] { (int)SalesTerritoryFieldIndex.CountryRegionCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionEntity); + } + } + + /// Static ctor + static SalesTerritoryEntity() + { + } + + /// CTor + public SalesTerritoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesTerritoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesTerritoryEntity + public SalesTerritoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesTerritory which data should be fetched into this SalesTerritory object + public SalesTerritoryEntity(System.Int32 territoryId) : this(territoryId, null) + { + } + + /// CTor + /// PK value for SalesTerritory which data should be fetched into this SalesTerritory object + /// The custom validator object for this SalesTerritoryEntity + public SalesTerritoryEntity(System.Int32 territoryId, IValidator validator) + { + InitClassEmpty(validator, null); + this.TerritoryId = territoryId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesTerritoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Customer' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCustomers() { return CreateRelationInfoForNavigator("Customers"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() { return CreateRelationInfoForNavigator("SalesOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesPerson' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesPeople() { return CreateRelationInfoForNavigator("SalesPeople"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTerritoryHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritoryHistories() { return CreateRelationInfoForNavigator("SalesTerritoryHistories"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'StateProvince' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoStateProvinces() { return CreateRelationInfoForNavigator("StateProvinces"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CountryRegion' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCountryRegion() { return CreateRelationInfoForNavigator("CountryRegion"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesTerritoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesTerritoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCustomers { get { return _staticMetaData.GetPrefetchPathElement("Customers", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesPeople { get { return _staticMetaData.GetPrefetchPathElement("SalesPeople", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritoryHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritoryHistories { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritoryHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'StateProvince' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathStateProvinces { get { return _staticMetaData.GetPrefetchPathElement("StateProvinces", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegion' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCountryRegion { get { return _staticMetaData.GetPrefetchPathElement("CountryRegion", CommonEntityBase.CreateEntityCollection()); } } + + /// The CostLastYear property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."CostLastYear".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal CostLastYear + { + get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.CostLastYear, true); } + set { SetValue((int)SalesTerritoryFieldIndex.CostLastYear, value); } + } + + /// The CostYtd property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."CostYTD".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal CostYtd + { + get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.CostYtd, true); } + set { SetValue((int)SalesTerritoryFieldIndex.CostYtd, value); } + } + + /// The CountryRegionCode property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."CountryRegionCode".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String CountryRegionCode + { + get { return (System.String)GetValue((int)SalesTerritoryFieldIndex.CountryRegionCode, true); } + set { SetValue((int)SalesTerritoryFieldIndex.CountryRegionCode, value); } + } + + /// The Group property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."Group".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Group + { + get { return (System.String)GetValue((int)SalesTerritoryFieldIndex.Group, true); } + set { SetValue((int)SalesTerritoryFieldIndex.Group, value); } + } + + /// The ModifiedDate property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesTerritoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesTerritoryFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)SalesTerritoryFieldIndex.Name, true); } + set { SetValue((int)SalesTerritoryFieldIndex.Name, value); } + } + + /// The Rowguid property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SalesTerritoryFieldIndex.Rowguid, true); } + set { SetValue((int)SalesTerritoryFieldIndex.Rowguid, value); } + } + + /// The SalesLastYear property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."SalesLastYear".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal SalesLastYear + { + get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.SalesLastYear, true); } + set { SetValue((int)SalesTerritoryFieldIndex.SalesLastYear, value); } + } + + /// The SalesYtd property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."SalesYTD".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal SalesYtd + { + get { return (System.Decimal)GetValue((int)SalesTerritoryFieldIndex.SalesYtd, true); } + set { SetValue((int)SalesTerritoryFieldIndex.SalesYtd, value); } + } + + /// The TerritoryId property of the Entity SalesTerritory

+ /// Mapped on table field: "SalesTerritory"."TerritoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 TerritoryId + { + get { return (System.Int32)GetValue((int)SalesTerritoryFieldIndex.TerritoryId, true); } + set { SetValue((int)SalesTerritoryFieldIndex.TerritoryId, value); } } + + /// Gets the EntityCollection with the related entities of type 'CustomerEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(CustomerEntity))] + public virtual EntityCollection Customers { get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _customers); } } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders { get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _salesOrderHeaders); } } + + /// Gets the EntityCollection with the related entities of type 'SalesPersonEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesPersonEntity))] + public virtual EntityCollection SalesPeople { get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _salesPeople); } } + + /// Gets the EntityCollection with the related entities of type 'SalesTerritoryHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesTerritoryHistoryEntity))] + public virtual EntityCollection SalesTerritoryHistories { get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _salesTerritoryHistories); } } + + /// Gets the EntityCollection with the related entities of type 'StateProvinceEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(StateProvinceEntity))] + public virtual EntityCollection StateProvinces { get { return GetOrCreateEntityCollection("SalesTerritory", true, false, ref _stateProvinces); } } + + /// Gets / sets related entity of type 'CountryRegionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CountryRegionEntity CountryRegion + { + get { return _countryRegion; } + set { SetSingleRelatedEntityNavigator(value, "CountryRegion"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesTerritoryFieldIndex + { + ///CostLastYear. + CostLastYear, + ///CostYtd. + CostYtd, + ///CountryRegionCode. + CountryRegionCode, + ///Group. + Group, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///Rowguid. + Rowguid, + ///SalesLastYear. + SalesLastYear, + ///SalesYtd. + SalesYtd, + ///TerritoryId. + TerritoryId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesTerritory. + public partial class SalesTerritoryRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between SalesTerritoryEntity and CustomerEntity over the 1:n relation they have, using the relation between the fields: SalesTerritory.TerritoryId - Customer.TerritoryId + public virtual IEntityRelation CustomerEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Customers", true, new[] { SalesTerritoryFields.TerritoryId, CustomerFields.TerritoryId }); } + } + + /// Returns a new IEntityRelation object, between SalesTerritoryEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: SalesTerritory.TerritoryId - SalesOrderHeader.TerritoryId + public virtual IEntityRelation SalesOrderHeaderEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders", true, new[] { SalesTerritoryFields.TerritoryId, SalesOrderHeaderFields.TerritoryId }); } + } + + /// Returns a new IEntityRelation object, between SalesTerritoryEntity and SalesPersonEntity over the 1:n relation they have, using the relation between the fields: SalesTerritory.TerritoryId - SalesPerson.TerritoryId + public virtual IEntityRelation SalesPersonEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesPeople", true, new[] { SalesTerritoryFields.TerritoryId, SalesPersonFields.TerritoryId }); } + } + + /// Returns a new IEntityRelation object, between SalesTerritoryEntity and SalesTerritoryHistoryEntity over the 1:n relation they have, using the relation between the fields: SalesTerritory.TerritoryId - SalesTerritoryHistory.TerritoryId + public virtual IEntityRelation SalesTerritoryHistoryEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesTerritoryHistories", true, new[] { SalesTerritoryFields.TerritoryId, SalesTerritoryHistoryFields.TerritoryId }); } + } + + /// Returns a new IEntityRelation object, between SalesTerritoryEntity and StateProvinceEntity over the 1:n relation they have, using the relation between the fields: SalesTerritory.TerritoryId - StateProvince.TerritoryId + public virtual IEntityRelation StateProvinceEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "StateProvinces", true, new[] { SalesTerritoryFields.TerritoryId, StateProvinceFields.TerritoryId }); } + } + + /// Returns a new IEntityRelation object, between SalesTerritoryEntity and CountryRegionEntity over the m:1 relation they have, using the relation between the fields: SalesTerritory.CountryRegionCode - CountryRegion.CountryRegionCode + public virtual IEntityRelation CountryRegionEntityUsingCountryRegionCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "CountryRegion", false, new[] { CountryRegionFields.CountryRegionCode, SalesTerritoryFields.CountryRegionCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesTerritoryRelations + { + internal static readonly IEntityRelation CustomerEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().CustomerEntityUsingTerritoryId; + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().SalesOrderHeaderEntityUsingTerritoryId; + internal static readonly IEntityRelation SalesPersonEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().SalesPersonEntityUsingTerritoryId; + internal static readonly IEntityRelation SalesTerritoryHistoryEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().SalesTerritoryHistoryEntityUsingTerritoryId; + internal static readonly IEntityRelation StateProvinceEntityUsingTerritoryIdStatic = new SalesTerritoryRelations().StateProvinceEntityUsingTerritoryId; + internal static readonly IEntityRelation CountryRegionEntityUsingCountryRegionCodeStatic = new SalesTerritoryRelations().CountryRegionEntityUsingCountryRegionCode; + + /// CTor + static StaticSalesTerritoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs new file mode 100644 index 00000000..e2595e4c --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SalesTerritoryHistoryEntity.cs @@ -0,0 +1,278 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SalesTerritoryHistory'.

+ [Serializable] + public partial class SalesTerritoryHistoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private SalesPersonEntity _salesPerson; + private SalesTerritoryEntity _salesTerritory; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SalesTerritoryHistoryEntityStaticMetaData _staticMetaData = new SalesTerritoryHistoryEntityStaticMetaData(); + private static SalesTerritoryHistoryRelations _relationsFactory = new SalesTerritoryHistoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SalesPerson + public static readonly string SalesPerson = "SalesPerson"; + /// Member name SalesTerritory + public static readonly string SalesTerritory = "SalesTerritory"; + } + + /// Static meta-data storage for navigator related information + protected class SalesTerritoryHistoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public SalesTerritoryHistoryEntityStaticMetaData() + { + SetEntityCoreInfo("SalesTerritoryHistoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryHistoryEntity, typeof(SalesTerritoryHistoryEntity), typeof(SalesTerritoryHistoryEntityFactory), false); + AddNavigatorMetaData("SalesPerson", "SalesTerritoryHistories", (a, b) => a._salesPerson = b, a => a._salesPerson, (a, b) => a.SalesPerson = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesTerritoryHistoryRelations.SalesPersonEntityUsingSalesPersonIdStatic, ()=>new SalesTerritoryHistoryRelations().SalesPersonEntityUsingSalesPersonId, null, new int[] { (int)SalesTerritoryHistoryFieldIndex.SalesPersonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity); + AddNavigatorMetaData("SalesTerritory", "SalesTerritoryHistories", (a, b) => a._salesTerritory = b, a => a._salesTerritory, (a, b) => a.SalesTerritory = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSalesTerritoryHistoryRelations.SalesTerritoryEntityUsingTerritoryIdStatic, ()=>new SalesTerritoryHistoryRelations().SalesTerritoryEntityUsingTerritoryId, null, new int[] { (int)SalesTerritoryHistoryFieldIndex.TerritoryId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity); + } + } + + /// Static ctor + static SalesTerritoryHistoryEntity() + { + } + + /// CTor + public SalesTerritoryHistoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SalesTerritoryHistoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SalesTerritoryHistoryEntity + public SalesTerritoryHistoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object + /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object + /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object + public SalesTerritoryHistoryEntity(System.Int32 salesPersonId, System.DateTime startDate, System.Int32 territoryId) : this(salesPersonId, startDate, territoryId, null) + { + } + + /// CTor + /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object + /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object + /// PK value for SalesTerritoryHistory which data should be fetched into this SalesTerritoryHistory object + /// The custom validator object for this SalesTerritoryHistoryEntity + public SalesTerritoryHistoryEntity(System.Int32 salesPersonId, System.DateTime startDate, System.Int32 territoryId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SalesPersonId = salesPersonId; + this.StartDate = startDate; + this.TerritoryId = territoryId; + } + + /// Private CTor for deserialization + /// + /// + protected SalesTerritoryHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() { return CreateRelationInfoForNavigator("SalesPerson"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() { return CreateRelationInfoForNavigator("SalesTerritory"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SalesTerritoryHistoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SalesTerritoryHistoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesPerson { get { return _staticMetaData.GetPrefetchPathElement("SalesPerson", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritory { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritory", CommonEntityBase.CreateEntityCollection()); } } + + /// The EndDate property of the Entity SalesTerritoryHistory

+ /// Mapped on table field: "SalesTerritoryHistory"."EndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable EndDate + { + get { return (Nullable)GetValue((int)SalesTerritoryHistoryFieldIndex.EndDate, false); } + set { SetValue((int)SalesTerritoryHistoryFieldIndex.EndDate, value); } + } + + /// The ModifiedDate property of the Entity SalesTerritoryHistory

+ /// Mapped on table field: "SalesTerritoryHistory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SalesTerritoryHistoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)SalesTerritoryHistoryFieldIndex.ModifiedDate, value); } + } + + /// The Rowguid property of the Entity SalesTerritoryHistory

+ /// Mapped on table field: "SalesTerritoryHistory"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SalesTerritoryHistoryFieldIndex.Rowguid, true); } + set { SetValue((int)SalesTerritoryHistoryFieldIndex.Rowguid, value); } + } + + /// The SalesPersonId property of the Entity SalesTerritoryHistory

+ /// Mapped on table field: "SalesTerritoryHistory"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 SalesPersonId + { + get { return (System.Int32)GetValue((int)SalesTerritoryHistoryFieldIndex.SalesPersonId, true); } + set { SetValue((int)SalesTerritoryHistoryFieldIndex.SalesPersonId, value); } + } + + /// The StartDate property of the Entity SalesTerritoryHistory

+ /// Mapped on table field: "SalesTerritoryHistory"."StartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.DateTime StartDate + { + get { return (System.DateTime)GetValue((int)SalesTerritoryHistoryFieldIndex.StartDate, true); } + set { SetValue((int)SalesTerritoryHistoryFieldIndex.StartDate, value); } + } + + /// The TerritoryId property of the Entity SalesTerritoryHistory

+ /// Mapped on table field: "SalesTerritoryHistory"."TerritoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 TerritoryId + { + get { return (System.Int32)GetValue((int)SalesTerritoryHistoryFieldIndex.TerritoryId, true); } + set { SetValue((int)SalesTerritoryHistoryFieldIndex.TerritoryId, value); } + } + + /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesPersonEntity SalesPerson + { + get { return _salesPerson; } + set { SetSingleRelatedEntityNavigator(value, "SalesPerson"); } + } + + /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesTerritoryEntity SalesTerritory + { + get { return _salesTerritory; } + set { SetSingleRelatedEntityNavigator(value, "SalesTerritory"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SalesTerritoryHistoryFieldIndex + { + ///EndDate. + EndDate, + ///ModifiedDate. + ModifiedDate, + ///Rowguid. + Rowguid, + ///SalesPersonId. + SalesPersonId, + ///StartDate. + StartDate, + ///TerritoryId. + TerritoryId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SalesTerritoryHistory. + public partial class SalesTerritoryHistoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between SalesTerritoryHistoryEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: SalesTerritoryHistory.SalesPersonId - SalesPerson.SalesPersonId + public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesPerson", false, new[] { SalesPersonFields.SalesPersonId, SalesTerritoryHistoryFields.SalesPersonId }); } + } + + /// Returns a new IEntityRelation object, between SalesTerritoryHistoryEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: SalesTerritoryHistory.TerritoryId - SalesTerritory.TerritoryId + public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesTerritory", false, new[] { SalesTerritoryFields.TerritoryId, SalesTerritoryHistoryFields.TerritoryId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSalesTerritoryHistoryRelations + { + internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new SalesTerritoryHistoryRelations().SalesPersonEntityUsingSalesPersonId; + internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new SalesTerritoryHistoryRelations().SalesTerritoryEntityUsingTerritoryId; + + /// CTor + static StaticSalesTerritoryHistoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs new file mode 100644 index 00000000..fef767fa --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ScrapReasonEntity.cs @@ -0,0 +1,209 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ScrapReason'.

+ [Serializable] + public partial class ScrapReasonEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _workOrders; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ScrapReasonEntityStaticMetaData _staticMetaData = new ScrapReasonEntityStaticMetaData(); + private static ScrapReasonRelations _relationsFactory = new ScrapReasonRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name WorkOrders + public static readonly string WorkOrders = "WorkOrders"; + } + + /// Static meta-data storage for navigator related information + protected class ScrapReasonEntityStaticMetaData : EntityStaticMetaDataBase + { + public ScrapReasonEntityStaticMetaData() + { + SetEntityCoreInfo("ScrapReasonEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ScrapReasonEntity, typeof(ScrapReasonEntity), typeof(ScrapReasonEntityFactory), false); + AddNavigatorMetaData>("WorkOrders", a => a._workOrders, (a, b) => a._workOrders = b, a => a.WorkOrders, () => new ScrapReasonRelations().WorkOrderEntityUsingScrapReasonId, typeof(WorkOrderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderEntity); + } + } + + /// Static ctor + static ScrapReasonEntity() + { + } + + /// CTor + public ScrapReasonEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ScrapReasonEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ScrapReasonEntity + public ScrapReasonEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ScrapReason which data should be fetched into this ScrapReason object + public ScrapReasonEntity(System.Int16 scrapReasonId) : this(scrapReasonId, null) + { + } + + /// CTor + /// PK value for ScrapReason which data should be fetched into this ScrapReason object + /// The custom validator object for this ScrapReasonEntity + public ScrapReasonEntity(System.Int16 scrapReasonId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ScrapReasonId = scrapReasonId; + } + + /// Private CTor for deserialization + /// + /// + protected ScrapReasonEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrder' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoWorkOrders() { return CreateRelationInfoForNavigator("WorkOrders"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ScrapReasonEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ScrapReasonRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrder' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathWorkOrders { get { return _staticMetaData.GetPrefetchPathElement("WorkOrders", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity ScrapReason

+ /// Mapped on table field: "ScrapReason"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ScrapReasonFieldIndex.ModifiedDate, true); } + set { SetValue((int)ScrapReasonFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity ScrapReason

+ /// Mapped on table field: "ScrapReason"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ScrapReasonFieldIndex.Name, true); } + set { SetValue((int)ScrapReasonFieldIndex.Name, value); } + } + + /// The ScrapReasonId property of the Entity ScrapReason

+ /// Mapped on table field: "ScrapReason"."ScrapReasonID".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int16 ScrapReasonId + { + get { return (System.Int16)GetValue((int)ScrapReasonFieldIndex.ScrapReasonId, true); } + set { SetValue((int)ScrapReasonFieldIndex.ScrapReasonId, value); } } + + /// Gets the EntityCollection with the related entities of type 'WorkOrderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(WorkOrderEntity))] + public virtual EntityCollection WorkOrders { get { return GetOrCreateEntityCollection("ScrapReason", true, false, ref _workOrders); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ScrapReasonFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///ScrapReasonId. + ScrapReasonId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ScrapReason. + public partial class ScrapReasonRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ScrapReasonEntity and WorkOrderEntity over the 1:n relation they have, using the relation between the fields: ScrapReason.ScrapReasonId - WorkOrder.ScrapReasonId + public virtual IEntityRelation WorkOrderEntityUsingScrapReasonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "WorkOrders", true, new[] { ScrapReasonFields.ScrapReasonId, WorkOrderFields.ScrapReasonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticScrapReasonRelations + { + internal static readonly IEntityRelation WorkOrderEntityUsingScrapReasonIdStatic = new ScrapReasonRelations().WorkOrderEntityUsingScrapReasonId; + + /// CTor + static StaticScrapReasonRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ShiftEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ShiftEntity.cs new file mode 100644 index 00000000..c71ff114 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ShiftEntity.cs @@ -0,0 +1,229 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Shift'.

+ [Serializable] + public partial class ShiftEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _employeeDepartmentHistories; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ShiftEntityStaticMetaData _staticMetaData = new ShiftEntityStaticMetaData(); + private static ShiftRelations _relationsFactory = new ShiftRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name EmployeeDepartmentHistories + public static readonly string EmployeeDepartmentHistories = "EmployeeDepartmentHistories"; + } + + /// Static meta-data storage for navigator related information + protected class ShiftEntityStaticMetaData : EntityStaticMetaDataBase + { + public ShiftEntityStaticMetaData() + { + SetEntityCoreInfo("ShiftEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ShiftEntity, typeof(ShiftEntity), typeof(ShiftEntityFactory), false); + AddNavigatorMetaData>("EmployeeDepartmentHistories", a => a._employeeDepartmentHistories, (a, b) => a._employeeDepartmentHistories = b, a => a.EmployeeDepartmentHistories, () => new ShiftRelations().EmployeeDepartmentHistoryEntityUsingShiftId, typeof(EmployeeDepartmentHistoryEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeDepartmentHistoryEntity); + } + } + + /// Static ctor + static ShiftEntity() + { + } + + /// CTor + public ShiftEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ShiftEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ShiftEntity + public ShiftEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Shift which data should be fetched into this Shift object + public ShiftEntity(System.Byte shiftId) : this(shiftId, null) + { + } + + /// CTor + /// PK value for Shift which data should be fetched into this Shift object + /// The custom validator object for this ShiftEntity + public ShiftEntity(System.Byte shiftId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ShiftId = shiftId; + } + + /// Private CTor for deserialization + /// + /// + protected ShiftEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'EmployeeDepartmentHistory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoEmployeeDepartmentHistories() { return CreateRelationInfoForNavigator("EmployeeDepartmentHistories"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ShiftEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ShiftRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'EmployeeDepartmentHistory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathEmployeeDepartmentHistories { get { return _staticMetaData.GetPrefetchPathElement("EmployeeDepartmentHistories", CommonEntityBase.CreateEntityCollection()); } } + + /// The EndTime property of the Entity Shift

+ /// Mapped on table field: "Shift"."EndTime".
Table field type characteristics (type, precision, scale, length): Time, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.TimeSpan EndTime + { + get { return (System.TimeSpan)GetValue((int)ShiftFieldIndex.EndTime, true); } + set { SetValue((int)ShiftFieldIndex.EndTime, value); } + } + + /// The ModifiedDate property of the Entity Shift

+ /// Mapped on table field: "Shift"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ShiftFieldIndex.ModifiedDate, true); } + set { SetValue((int)ShiftFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Shift

+ /// Mapped on table field: "Shift"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ShiftFieldIndex.Name, true); } + set { SetValue((int)ShiftFieldIndex.Name, value); } + } + + /// The ShiftId property of the Entity Shift

+ /// Mapped on table field: "Shift"."ShiftID".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Byte ShiftId + { + get { return (System.Byte)GetValue((int)ShiftFieldIndex.ShiftId, true); } + set { SetValue((int)ShiftFieldIndex.ShiftId, value); } } + + /// The StartTime property of the Entity Shift

+ /// Mapped on table field: "Shift"."StartTime".
Table field type characteristics (type, precision, scale, length): Time, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.TimeSpan StartTime + { + get { return (System.TimeSpan)GetValue((int)ShiftFieldIndex.StartTime, true); } + set { SetValue((int)ShiftFieldIndex.StartTime, value); } + } + + /// Gets the EntityCollection with the related entities of type 'EmployeeDepartmentHistoryEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(EmployeeDepartmentHistoryEntity))] + public virtual EntityCollection EmployeeDepartmentHistories { get { return GetOrCreateEntityCollection("Shift", true, false, ref _employeeDepartmentHistories); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ShiftFieldIndex + { + ///EndTime. + EndTime, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///ShiftId. + ShiftId, + ///StartTime. + StartTime, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Shift. + public partial class ShiftRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ShiftEntity and EmployeeDepartmentHistoryEntity over the 1:n relation they have, using the relation between the fields: Shift.ShiftId - EmployeeDepartmentHistory.ShiftId + public virtual IEntityRelation EmployeeDepartmentHistoryEntityUsingShiftId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "EmployeeDepartmentHistories", true, new[] { ShiftFields.ShiftId, EmployeeDepartmentHistoryFields.ShiftId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticShiftRelations + { + internal static readonly IEntityRelation EmployeeDepartmentHistoryEntityUsingShiftIdStatic = new ShiftRelations().EmployeeDepartmentHistoryEntityUsingShiftId; + + /// CTor + static StaticShiftRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs new file mode 100644 index 00000000..63a7eec1 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ShipMethodEntity.cs @@ -0,0 +1,262 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ShipMethod'.

+ [Serializable] + public partial class ShipMethodEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _purchaseOrderHeaders; + private EntityCollection _salesOrderHeaders; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ShipMethodEntityStaticMetaData _staticMetaData = new ShipMethodEntityStaticMetaData(); + private static ShipMethodRelations _relationsFactory = new ShipMethodRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name PurchaseOrderHeaders + public static readonly string PurchaseOrderHeaders = "PurchaseOrderHeaders"; + /// Member name SalesOrderHeaders + public static readonly string SalesOrderHeaders = "SalesOrderHeaders"; + } + + /// Static meta-data storage for navigator related information + protected class ShipMethodEntityStaticMetaData : EntityStaticMetaDataBase + { + public ShipMethodEntityStaticMetaData() + { + SetEntityCoreInfo("ShipMethodEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ShipMethodEntity, typeof(ShipMethodEntity), typeof(ShipMethodEntityFactory), false); + AddNavigatorMetaData>("PurchaseOrderHeaders", a => a._purchaseOrderHeaders, (a, b) => a._purchaseOrderHeaders = b, a => a.PurchaseOrderHeaders, () => new ShipMethodRelations().PurchaseOrderHeaderEntityUsingShipMethodId, typeof(PurchaseOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity); + AddNavigatorMetaData>("SalesOrderHeaders", a => a._salesOrderHeaders, (a, b) => a._salesOrderHeaders = b, a => a.SalesOrderHeaders, () => new ShipMethodRelations().SalesOrderHeaderEntityUsingShipMethodId, typeof(SalesOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity); + } + } + + /// Static ctor + static ShipMethodEntity() + { + } + + /// CTor + public ShipMethodEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ShipMethodEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ShipMethodEntity + public ShipMethodEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ShipMethod which data should be fetched into this ShipMethod object + public ShipMethodEntity(System.Int32 shipMethodId) : this(shipMethodId, null) + { + } + + /// CTor + /// PK value for ShipMethod which data should be fetched into this ShipMethod object + /// The custom validator object for this ShipMethodEntity + public ShipMethodEntity(System.Int32 shipMethodId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ShipMethodId = shipMethodId; + } + + /// Private CTor for deserialization + /// + /// + protected ShipMethodEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeaders() { return CreateRelationInfoForNavigator("PurchaseOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderHeaders() { return CreateRelationInfoForNavigator("SalesOrderHeaders"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ShipMethodEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ShipMethodRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("PurchaseOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity ShipMethod

+ /// Mapped on table field: "ShipMethod"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ShipMethodFieldIndex.ModifiedDate, true); } + set { SetValue((int)ShipMethodFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity ShipMethod

+ /// Mapped on table field: "ShipMethod"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)ShipMethodFieldIndex.Name, true); } + set { SetValue((int)ShipMethodFieldIndex.Name, value); } + } + + /// The Rowguid property of the Entity ShipMethod

+ /// Mapped on table field: "ShipMethod"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)ShipMethodFieldIndex.Rowguid, true); } + set { SetValue((int)ShipMethodFieldIndex.Rowguid, value); } + } + + /// The ShipBase property of the Entity ShipMethod

+ /// Mapped on table field: "ShipMethod"."ShipBase".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal ShipBase + { + get { return (System.Decimal)GetValue((int)ShipMethodFieldIndex.ShipBase, true); } + set { SetValue((int)ShipMethodFieldIndex.ShipBase, value); } + } + + /// The ShipMethodId property of the Entity ShipMethod

+ /// Mapped on table field: "ShipMethod"."ShipMethodID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ShipMethodId + { + get { return (System.Int32)GetValue((int)ShipMethodFieldIndex.ShipMethodId, true); } + set { SetValue((int)ShipMethodFieldIndex.ShipMethodId, value); } } + + /// The ShipRate property of the Entity ShipMethod

+ /// Mapped on table field: "ShipMethod"."ShipRate".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal ShipRate + { + get { return (System.Decimal)GetValue((int)ShipMethodFieldIndex.ShipRate, true); } + set { SetValue((int)ShipMethodFieldIndex.ShipRate, value); } + } + + /// Gets the EntityCollection with the related entities of type 'PurchaseOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(PurchaseOrderHeaderEntity))] + public virtual EntityCollection PurchaseOrderHeaders { get { return GetOrCreateEntityCollection("ShipMethod", true, false, ref _purchaseOrderHeaders); } } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderHeaderEntity))] + public virtual EntityCollection SalesOrderHeaders { get { return GetOrCreateEntityCollection("ShipMethod", true, false, ref _salesOrderHeaders); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ShipMethodFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///Rowguid. + Rowguid, + ///ShipBase. + ShipBase, + ///ShipMethodId. + ShipMethodId, + ///ShipRate. + ShipRate, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ShipMethod. + public partial class ShipMethodRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between ShipMethodEntity and PurchaseOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: ShipMethod.ShipMethodId - PurchaseOrderHeader.ShipMethodId + public virtual IEntityRelation PurchaseOrderHeaderEntityUsingShipMethodId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "PurchaseOrderHeaders", true, new[] { ShipMethodFields.ShipMethodId, PurchaseOrderHeaderFields.ShipMethodId }); } + } + + /// Returns a new IEntityRelation object, between ShipMethodEntity and SalesOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: ShipMethod.ShipMethodId - SalesOrderHeader.ShipMethodId + public virtual IEntityRelation SalesOrderHeaderEntityUsingShipMethodId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderHeaders", true, new[] { ShipMethodFields.ShipMethodId, SalesOrderHeaderFields.ShipMethodId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticShipMethodRelations + { + internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingShipMethodIdStatic = new ShipMethodRelations().PurchaseOrderHeaderEntityUsingShipMethodId; + internal static readonly IEntityRelation SalesOrderHeaderEntityUsingShipMethodIdStatic = new ShipMethodRelations().SalesOrderHeaderEntityUsingShipMethodId; + + /// CTor + static StaticShipMethodRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs new file mode 100644 index 00000000..76cb1e21 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/ShoppingCartItemEntity.cs @@ -0,0 +1,244 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'ShoppingCartItem'.

+ [Serializable] + public partial class ShoppingCartItemEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static ShoppingCartItemEntityStaticMetaData _staticMetaData = new ShoppingCartItemEntityStaticMetaData(); + private static ShoppingCartItemRelations _relationsFactory = new ShoppingCartItemRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + } + + /// Static meta-data storage for navigator related information + protected class ShoppingCartItemEntityStaticMetaData : EntityStaticMetaDataBase + { + public ShoppingCartItemEntityStaticMetaData() + { + SetEntityCoreInfo("ShoppingCartItemEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ShoppingCartItemEntity, typeof(ShoppingCartItemEntity), typeof(ShoppingCartItemEntityFactory), false); + AddNavigatorMetaData("Product", "ShoppingCartItems", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticShoppingCartItemRelations.ProductEntityUsingProductIdStatic, ()=>new ShoppingCartItemRelations().ProductEntityUsingProductId, null, new int[] { (int)ShoppingCartItemFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + } + } + + /// Static ctor + static ShoppingCartItemEntity() + { + } + + /// CTor + public ShoppingCartItemEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public ShoppingCartItemEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this ShoppingCartItemEntity + public ShoppingCartItemEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for ShoppingCartItem which data should be fetched into this ShoppingCartItem object + public ShoppingCartItemEntity(System.Int32 shoppingCartItemId) : this(shoppingCartItemId, null) + { + } + + /// CTor + /// PK value for ShoppingCartItem which data should be fetched into this ShoppingCartItem object + /// The custom validator object for this ShoppingCartItemEntity + public ShoppingCartItemEntity(System.Int32 shoppingCartItemId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ShoppingCartItemId = shoppingCartItemId; + } + + /// Private CTor for deserialization + /// + /// + protected ShoppingCartItemEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this ShoppingCartItemEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static ShoppingCartItemRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// The DateCreated property of the Entity ShoppingCartItem

+ /// Mapped on table field: "ShoppingCartItem"."DateCreated".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime DateCreated + { + get { return (System.DateTime)GetValue((int)ShoppingCartItemFieldIndex.DateCreated, true); } + set { SetValue((int)ShoppingCartItemFieldIndex.DateCreated, value); } + } + + /// The ModifiedDate property of the Entity ShoppingCartItem

+ /// Mapped on table field: "ShoppingCartItem"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)ShoppingCartItemFieldIndex.ModifiedDate, true); } + set { SetValue((int)ShoppingCartItemFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity ShoppingCartItem

+ /// Mapped on table field: "ShoppingCartItem"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)ShoppingCartItemFieldIndex.ProductId, true); } + set { SetValue((int)ShoppingCartItemFieldIndex.ProductId, value); } + } + + /// The Quantity property of the Entity ShoppingCartItem

+ /// Mapped on table field: "ShoppingCartItem"."Quantity".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 Quantity + { + get { return (System.Int32)GetValue((int)ShoppingCartItemFieldIndex.Quantity, true); } + set { SetValue((int)ShoppingCartItemFieldIndex.Quantity, value); } + } + + /// The ShoppingCartId property of the Entity ShoppingCartItem

+ /// Mapped on table field: "ShoppingCartItem"."ShoppingCartID".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String ShoppingCartId + { + get { return (System.String)GetValue((int)ShoppingCartItemFieldIndex.ShoppingCartId, true); } + set { SetValue((int)ShoppingCartItemFieldIndex.ShoppingCartId, value); } + } + + /// The ShoppingCartItemId property of the Entity ShoppingCartItem

+ /// Mapped on table field: "ShoppingCartItem"."ShoppingCartItemID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 ShoppingCartItemId + { + get { return (System.Int32)GetValue((int)ShoppingCartItemFieldIndex.ShoppingCartItemId, true); } + set { SetValue((int)ShoppingCartItemFieldIndex.ShoppingCartItemId, value); } } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum ShoppingCartItemFieldIndex + { + ///DateCreated. + DateCreated, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///Quantity. + Quantity, + ///ShoppingCartId. + ShoppingCartId, + ///ShoppingCartItemId. + ShoppingCartItemId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: ShoppingCartItem. + public partial class ShoppingCartItemRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between ShoppingCartItemEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: ShoppingCartItem.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, ShoppingCartItemFields.ProductId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticShoppingCartItemRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new ShoppingCartItemRelations().ProductEntityUsingProductId; + + /// CTor + static StaticShoppingCartItemRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs new file mode 100644 index 00000000..23af502e --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferEntity.cs @@ -0,0 +1,289 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SpecialOffer'.

+ [Serializable] + public partial class SpecialOfferEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _specialOfferProducts; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SpecialOfferEntityStaticMetaData _staticMetaData = new SpecialOfferEntityStaticMetaData(); + private static SpecialOfferRelations _relationsFactory = new SpecialOfferRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SpecialOfferProducts + public static readonly string SpecialOfferProducts = "SpecialOfferProducts"; + } + + /// Static meta-data storage for navigator related information + protected class SpecialOfferEntityStaticMetaData : EntityStaticMetaDataBase + { + public SpecialOfferEntityStaticMetaData() + { + SetEntityCoreInfo("SpecialOfferEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferEntity, typeof(SpecialOfferEntity), typeof(SpecialOfferEntityFactory), false); + AddNavigatorMetaData>("SpecialOfferProducts", a => a._specialOfferProducts, (a, b) => a._specialOfferProducts = b, a => a.SpecialOfferProducts, () => new SpecialOfferRelations().SpecialOfferProductEntityUsingSpecialOfferId, typeof(SpecialOfferProductEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferProductEntity); + } + } + + /// Static ctor + static SpecialOfferEntity() + { + } + + /// CTor + public SpecialOfferEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SpecialOfferEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SpecialOfferEntity + public SpecialOfferEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SpecialOffer which data should be fetched into this SpecialOffer object + public SpecialOfferEntity(System.Int32 specialOfferId) : this(specialOfferId, null) + { + } + + /// CTor + /// PK value for SpecialOffer which data should be fetched into this SpecialOffer object + /// The custom validator object for this SpecialOfferEntity + public SpecialOfferEntity(System.Int32 specialOfferId, IValidator validator) + { + InitClassEmpty(validator, null); + this.SpecialOfferId = specialOfferId; + } + + /// Private CTor for deserialization + /// + /// + protected SpecialOfferEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SpecialOfferProduct' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSpecialOfferProducts() { return CreateRelationInfoForNavigator("SpecialOfferProducts"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SpecialOfferEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SpecialOfferRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOfferProduct' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSpecialOfferProducts { get { return _staticMetaData.GetPrefetchPathElement("SpecialOfferProducts", CommonEntityBase.CreateEntityCollection()); } } + + /// The Category property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."Category".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Category + { + get { return (System.String)GetValue((int)SpecialOfferFieldIndex.Category, true); } + set { SetValue((int)SpecialOfferFieldIndex.Category, value); } + } + + /// The Description property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."Description".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 255.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Description + { + get { return (System.String)GetValue((int)SpecialOfferFieldIndex.Description, true); } + set { SetValue((int)SpecialOfferFieldIndex.Description, value); } + } + + /// The DiscountPct property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."DiscountPct".
Table field type characteristics (type, precision, scale, length): SmallMoney, 10, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal DiscountPct + { + get { return (System.Decimal)GetValue((int)SpecialOfferFieldIndex.DiscountPct, true); } + set { SetValue((int)SpecialOfferFieldIndex.DiscountPct, value); } + } + + /// The EndDate property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."EndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime EndDate + { + get { return (System.DateTime)GetValue((int)SpecialOfferFieldIndex.EndDate, true); } + set { SetValue((int)SpecialOfferFieldIndex.EndDate, value); } + } + + /// The MaxQty property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."MaxQty".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable MaxQty + { + get { return (Nullable)GetValue((int)SpecialOfferFieldIndex.MaxQty, false); } + set { SetValue((int)SpecialOfferFieldIndex.MaxQty, value); } + } + + /// The MinQty property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."MinQty".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 MinQty + { + get { return (System.Int32)GetValue((int)SpecialOfferFieldIndex.MinQty, true); } + set { SetValue((int)SpecialOfferFieldIndex.MinQty, value); } + } + + /// The ModifiedDate property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SpecialOfferFieldIndex.ModifiedDate, true); } + set { SetValue((int)SpecialOfferFieldIndex.ModifiedDate, value); } + } + + /// The Rowguid property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SpecialOfferFieldIndex.Rowguid, true); } + set { SetValue((int)SpecialOfferFieldIndex.Rowguid, value); } + } + + /// The SpecialOfferId property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."SpecialOfferID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 SpecialOfferId + { + get { return (System.Int32)GetValue((int)SpecialOfferFieldIndex.SpecialOfferId, true); } + set { SetValue((int)SpecialOfferFieldIndex.SpecialOfferId, value); } } + + /// The StartDate property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."StartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime StartDate + { + get { return (System.DateTime)GetValue((int)SpecialOfferFieldIndex.StartDate, true); } + set { SetValue((int)SpecialOfferFieldIndex.StartDate, value); } + } + + /// The Type property of the Entity SpecialOffer

+ /// Mapped on table field: "SpecialOffer"."Type".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Type + { + get { return (System.String)GetValue((int)SpecialOfferFieldIndex.Type, true); } + set { SetValue((int)SpecialOfferFieldIndex.Type, value); } + } + + /// Gets the EntityCollection with the related entities of type 'SpecialOfferProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SpecialOfferProductEntity))] + public virtual EntityCollection SpecialOfferProducts { get { return GetOrCreateEntityCollection("SpecialOffer", true, false, ref _specialOfferProducts); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SpecialOfferFieldIndex + { + ///Category. + Category, + ///Description. + Description, + ///DiscountPct. + DiscountPct, + ///EndDate. + EndDate, + ///MaxQty. + MaxQty, + ///MinQty. + MinQty, + ///ModifiedDate. + ModifiedDate, + ///Rowguid. + Rowguid, + ///SpecialOfferId. + SpecialOfferId, + ///StartDate. + StartDate, + ///Type. + Type, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SpecialOffer. + public partial class SpecialOfferRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between SpecialOfferEntity and SpecialOfferProductEntity over the 1:n relation they have, using the relation between the fields: SpecialOffer.SpecialOfferId - SpecialOfferProduct.SpecialOfferId + public virtual IEntityRelation SpecialOfferProductEntityUsingSpecialOfferId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SpecialOfferProducts", true, new[] { SpecialOfferFields.SpecialOfferId, SpecialOfferProductFields.SpecialOfferId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSpecialOfferRelations + { + internal static readonly IEntityRelation SpecialOfferProductEntityUsingSpecialOfferIdStatic = new SpecialOfferRelations().SpecialOfferProductEntityUsingSpecialOfferId; + + /// CTor + static StaticSpecialOfferRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs new file mode 100644 index 00000000..9f104b37 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/SpecialOfferProductEntity.cs @@ -0,0 +1,277 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'SpecialOfferProduct'.

+ [Serializable] + public partial class SpecialOfferProductEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _salesOrderDetails; + private ProductEntity _product; + private SpecialOfferEntity _specialOffer; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static SpecialOfferProductEntityStaticMetaData _staticMetaData = new SpecialOfferProductEntityStaticMetaData(); + private static SpecialOfferProductRelations _relationsFactory = new SpecialOfferProductRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + /// Member name SpecialOffer + public static readonly string SpecialOffer = "SpecialOffer"; + /// Member name SalesOrderDetails + public static readonly string SalesOrderDetails = "SalesOrderDetails"; + } + + /// Static meta-data storage for navigator related information + protected class SpecialOfferProductEntityStaticMetaData : EntityStaticMetaDataBase + { + public SpecialOfferProductEntityStaticMetaData() + { + SetEntityCoreInfo("SpecialOfferProductEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferProductEntity, typeof(SpecialOfferProductEntity), typeof(SpecialOfferProductEntityFactory), false); + AddNavigatorMetaData>("SalesOrderDetails", a => a._salesOrderDetails, (a, b) => a._salesOrderDetails = b, a => a.SalesOrderDetails, () => new SpecialOfferProductRelations().SalesOrderDetailEntityUsingProductIdSpecialOfferId, typeof(SalesOrderDetailEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderDetailEntity); + AddNavigatorMetaData("Product", "SpecialOfferProducts", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSpecialOfferProductRelations.ProductEntityUsingProductIdStatic, ()=>new SpecialOfferProductRelations().ProductEntityUsingProductId, null, new int[] { (int)SpecialOfferProductFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("SpecialOffer", "SpecialOfferProducts", (a, b) => a._specialOffer = b, a => a._specialOffer, (a, b) => a.SpecialOffer = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticSpecialOfferProductRelations.SpecialOfferEntityUsingSpecialOfferIdStatic, ()=>new SpecialOfferProductRelations().SpecialOfferEntityUsingSpecialOfferId, null, new int[] { (int)SpecialOfferProductFieldIndex.SpecialOfferId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferEntity); + } + } + + /// Static ctor + static SpecialOfferProductEntity() + { + } + + /// CTor + public SpecialOfferProductEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public SpecialOfferProductEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this SpecialOfferProductEntity + public SpecialOfferProductEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object + /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object + public SpecialOfferProductEntity(System.Int32 productId, System.Int32 specialOfferId) : this(productId, specialOfferId, null) + { + } + + /// CTor + /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object + /// PK value for SpecialOfferProduct which data should be fetched into this SpecialOfferProduct object + /// The custom validator object for this SpecialOfferProductEntity + public SpecialOfferProductEntity(System.Int32 productId, System.Int32 specialOfferId, IValidator validator) + { + InitClassEmpty(validator, null); + this.ProductId = productId; + this.SpecialOfferId = specialOfferId; + } + + /// Private CTor for deserialization + /// + /// + protected SpecialOfferProductEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesOrderDetail' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesOrderDetails() { return CreateRelationInfoForNavigator("SalesOrderDetails"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SpecialOffer' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSpecialOffer() { return CreateRelationInfoForNavigator("SpecialOffer"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this SpecialOfferProductEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static SpecialOfferProductRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesOrderDetail' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesOrderDetails { get { return _staticMetaData.GetPrefetchPathElement("SalesOrderDetails", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SpecialOffer' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSpecialOffer { get { return _staticMetaData.GetPrefetchPathElement("SpecialOffer", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity SpecialOfferProduct

+ /// Mapped on table field: "SpecialOfferProduct"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)SpecialOfferProductFieldIndex.ModifiedDate, true); } + set { SetValue((int)SpecialOfferProductFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity SpecialOfferProduct

+ /// Mapped on table field: "SpecialOfferProduct"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)SpecialOfferProductFieldIndex.ProductId, true); } + set { SetValue((int)SpecialOfferProductFieldIndex.ProductId, value); } + } + + /// The Rowguid property of the Entity SpecialOfferProduct

+ /// Mapped on table field: "SpecialOfferProduct"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)SpecialOfferProductFieldIndex.Rowguid, true); } + set { SetValue((int)SpecialOfferProductFieldIndex.Rowguid, value); } + } + + /// The SpecialOfferId property of the Entity SpecialOfferProduct

+ /// Mapped on table field: "SpecialOfferProduct"."SpecialOfferID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 SpecialOfferId + { + get { return (System.Int32)GetValue((int)SpecialOfferProductFieldIndex.SpecialOfferId, true); } + set { SetValue((int)SpecialOfferProductFieldIndex.SpecialOfferId, value); } + } + + /// Gets the EntityCollection with the related entities of type 'SalesOrderDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesOrderDetailEntity))] + public virtual EntityCollection SalesOrderDetails { get { return GetOrCreateEntityCollection("SpecialOfferProduct", true, false, ref _salesOrderDetails); } } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + /// Gets / sets related entity of type 'SpecialOfferEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SpecialOfferEntity SpecialOffer + { + get { return _specialOffer; } + set { SetSingleRelatedEntityNavigator(value, "SpecialOffer"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum SpecialOfferProductFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///Rowguid. + Rowguid, + ///SpecialOfferId. + SpecialOfferId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: SpecialOfferProduct. + public partial class SpecialOfferProductRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between SpecialOfferProductEntity and SalesOrderDetailEntity over the 1:n relation they have, using the relation between the fields: SpecialOfferProduct.ProductId - SalesOrderDetail.ProductId, SpecialOfferProduct.SpecialOfferId - SalesOrderDetail.SpecialOfferId + public virtual IEntityRelation SalesOrderDetailEntityUsingProductIdSpecialOfferId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesOrderDetails", true, new[] { SpecialOfferProductFields.ProductId, SalesOrderDetailFields.ProductId, SpecialOfferProductFields.SpecialOfferId, SalesOrderDetailFields.SpecialOfferId }); } + } + + /// Returns a new IEntityRelation object, between SpecialOfferProductEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: SpecialOfferProduct.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, SpecialOfferProductFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between SpecialOfferProductEntity and SpecialOfferEntity over the m:1 relation they have, using the relation between the fields: SpecialOfferProduct.SpecialOfferId - SpecialOffer.SpecialOfferId + public virtual IEntityRelation SpecialOfferEntityUsingSpecialOfferId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SpecialOffer", false, new[] { SpecialOfferFields.SpecialOfferId, SpecialOfferProductFields.SpecialOfferId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticSpecialOfferProductRelations + { + internal static readonly IEntityRelation SalesOrderDetailEntityUsingProductIdSpecialOfferIdStatic = new SpecialOfferProductRelations().SalesOrderDetailEntityUsingProductIdSpecialOfferId; + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new SpecialOfferProductRelations().ProductEntityUsingProductId; + internal static readonly IEntityRelation SpecialOfferEntityUsingSpecialOfferIdStatic = new SpecialOfferProductRelations().SpecialOfferEntityUsingSpecialOfferId; + + /// CTor + static StaticSpecialOfferProductRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs new file mode 100644 index 00000000..e60f0e45 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/StateProvinceEntity.cs @@ -0,0 +1,336 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'StateProvince'.

+ [Serializable] + public partial class StateProvinceEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _addresses; + private EntityCollection _salesTaxRates; + private CountryRegionEntity _countryRegion; + private SalesTerritoryEntity _salesTerritory; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static StateProvinceEntityStaticMetaData _staticMetaData = new StateProvinceEntityStaticMetaData(); + private static StateProvinceRelations _relationsFactory = new StateProvinceRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name CountryRegion + public static readonly string CountryRegion = "CountryRegion"; + /// Member name SalesTerritory + public static readonly string SalesTerritory = "SalesTerritory"; + /// Member name Addresses + public static readonly string Addresses = "Addresses"; + /// Member name SalesTaxRates + public static readonly string SalesTaxRates = "SalesTaxRates"; + } + + /// Static meta-data storage for navigator related information + protected class StateProvinceEntityStaticMetaData : EntityStaticMetaDataBase + { + public StateProvinceEntityStaticMetaData() + { + SetEntityCoreInfo("StateProvinceEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity, typeof(StateProvinceEntity), typeof(StateProvinceEntityFactory), false); + AddNavigatorMetaData>("Addresses", a => a._addresses, (a, b) => a._addresses = b, a => a.Addresses, () => new StateProvinceRelations().AddressEntityUsingStateProvinceId, typeof(AddressEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity); + AddNavigatorMetaData>("SalesTaxRates", a => a._salesTaxRates, (a, b) => a._salesTaxRates = b, a => a.SalesTaxRates, () => new StateProvinceRelations().SalesTaxRateEntityUsingStateProvinceId, typeof(SalesTaxRateEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTaxRateEntity); + AddNavigatorMetaData("CountryRegion", "StateProvinces", (a, b) => a._countryRegion = b, a => a._countryRegion, (a, b) => a.CountryRegion = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticStateProvinceRelations.CountryRegionEntityUsingCountryRegionCodeStatic, ()=>new StateProvinceRelations().CountryRegionEntityUsingCountryRegionCode, null, new int[] { (int)StateProvinceFieldIndex.CountryRegionCode }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionEntity); + AddNavigatorMetaData("SalesTerritory", "StateProvinces", (a, b) => a._salesTerritory = b, a => a._salesTerritory, (a, b) => a.SalesTerritory = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticStateProvinceRelations.SalesTerritoryEntityUsingTerritoryIdStatic, ()=>new StateProvinceRelations().SalesTerritoryEntityUsingTerritoryId, null, new int[] { (int)StateProvinceFieldIndex.TerritoryId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity); + } + } + + /// Static ctor + static StateProvinceEntity() + { + } + + /// CTor + public StateProvinceEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public StateProvinceEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this StateProvinceEntity + public StateProvinceEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for StateProvince which data should be fetched into this StateProvince object + public StateProvinceEntity(System.Int32 stateProvinceId) : this(stateProvinceId, null) + { + } + + /// CTor + /// PK value for StateProvince which data should be fetched into this StateProvince object + /// The custom validator object for this StateProvinceEntity + public StateProvinceEntity(System.Int32 stateProvinceId, IValidator validator) + { + InitClassEmpty(validator, null); + this.StateProvinceId = stateProvinceId; + } + + /// Private CTor for deserialization + /// + /// + protected StateProvinceEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Address' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoAddresses() { return CreateRelationInfoForNavigator("Addresses"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'SalesTaxRate' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTaxRates() { return CreateRelationInfoForNavigator("SalesTaxRates"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'CountryRegion' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCountryRegion() { return CreateRelationInfoForNavigator("CountryRegion"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesTerritory' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesTerritory() { return CreateRelationInfoForNavigator("SalesTerritory"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this StateProvinceEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static StateProvinceRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Address' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathAddresses { get { return _staticMetaData.GetPrefetchPathElement("Addresses", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTaxRate' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTaxRates { get { return _staticMetaData.GetPrefetchPathElement("SalesTaxRates", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'CountryRegion' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCountryRegion { get { return _staticMetaData.GetPrefetchPathElement("CountryRegion", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesTerritory' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesTerritory { get { return _staticMetaData.GetPrefetchPathElement("SalesTerritory", CommonEntityBase.CreateEntityCollection()); } } + + /// The CountryRegionCode property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."CountryRegionCode".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String CountryRegionCode + { + get { return (System.String)GetValue((int)StateProvinceFieldIndex.CountryRegionCode, true); } + set { SetValue((int)StateProvinceFieldIndex.CountryRegionCode, value); } + } + + /// The IsOnlyStateProvinceFlag property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."IsOnlyStateProvinceFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean IsOnlyStateProvinceFlag + { + get { return (System.Boolean)GetValue((int)StateProvinceFieldIndex.IsOnlyStateProvinceFlag, true); } + set { SetValue((int)StateProvinceFieldIndex.IsOnlyStateProvinceFlag, value); } + } + + /// The ModifiedDate property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)StateProvinceFieldIndex.ModifiedDate, true); } + set { SetValue((int)StateProvinceFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)StateProvinceFieldIndex.Name, true); } + set { SetValue((int)StateProvinceFieldIndex.Name, value); } + } + + /// The Rowguid property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)StateProvinceFieldIndex.Rowguid, true); } + set { SetValue((int)StateProvinceFieldIndex.Rowguid, value); } + } + + /// The StateProvinceCode property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."StateProvinceCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String StateProvinceCode + { + get { return (System.String)GetValue((int)StateProvinceFieldIndex.StateProvinceCode, true); } + set { SetValue((int)StateProvinceFieldIndex.StateProvinceCode, value); } + } + + /// The StateProvinceId property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."StateProvinceID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 StateProvinceId + { + get { return (System.Int32)GetValue((int)StateProvinceFieldIndex.StateProvinceId, true); } + set { SetValue((int)StateProvinceFieldIndex.StateProvinceId, value); } } + + /// The TerritoryId property of the Entity StateProvince

+ /// Mapped on table field: "StateProvince"."TerritoryID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 TerritoryId + { + get { return (System.Int32)GetValue((int)StateProvinceFieldIndex.TerritoryId, true); } + set { SetValue((int)StateProvinceFieldIndex.TerritoryId, value); } + } + + /// Gets the EntityCollection with the related entities of type 'AddressEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(AddressEntity))] + public virtual EntityCollection Addresses { get { return GetOrCreateEntityCollection("StateProvince", true, false, ref _addresses); } } + + /// Gets the EntityCollection with the related entities of type 'SalesTaxRateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(SalesTaxRateEntity))] + public virtual EntityCollection SalesTaxRates { get { return GetOrCreateEntityCollection("StateProvince", true, false, ref _salesTaxRates); } } + + /// Gets / sets related entity of type 'CountryRegionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual CountryRegionEntity CountryRegion + { + get { return _countryRegion; } + set { SetSingleRelatedEntityNavigator(value, "CountryRegion"); } + } + + /// Gets / sets related entity of type 'SalesTerritoryEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesTerritoryEntity SalesTerritory + { + get { return _salesTerritory; } + set { SetSingleRelatedEntityNavigator(value, "SalesTerritory"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum StateProvinceFieldIndex + { + ///CountryRegionCode. + CountryRegionCode, + ///IsOnlyStateProvinceFlag. + IsOnlyStateProvinceFlag, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///Rowguid. + Rowguid, + ///StateProvinceCode. + StateProvinceCode, + ///StateProvinceId. + StateProvinceId, + ///TerritoryId. + TerritoryId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: StateProvince. + public partial class StateProvinceRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between StateProvinceEntity and AddressEntity over the 1:n relation they have, using the relation between the fields: StateProvince.StateProvinceId - Address.StateProvinceId + public virtual IEntityRelation AddressEntityUsingStateProvinceId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Addresses", true, new[] { StateProvinceFields.StateProvinceId, AddressFields.StateProvinceId }); } + } + + /// Returns a new IEntityRelation object, between StateProvinceEntity and SalesTaxRateEntity over the 1:n relation they have, using the relation between the fields: StateProvince.StateProvinceId - SalesTaxRate.StateProvinceId + public virtual IEntityRelation SalesTaxRateEntityUsingStateProvinceId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "SalesTaxRates", true, new[] { StateProvinceFields.StateProvinceId, SalesTaxRateFields.StateProvinceId }); } + } + + /// Returns a new IEntityRelation object, between StateProvinceEntity and CountryRegionEntity over the m:1 relation they have, using the relation between the fields: StateProvince.CountryRegionCode - CountryRegion.CountryRegionCode + public virtual IEntityRelation CountryRegionEntityUsingCountryRegionCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "CountryRegion", false, new[] { CountryRegionFields.CountryRegionCode, StateProvinceFields.CountryRegionCode }); } + } + + /// Returns a new IEntityRelation object, between StateProvinceEntity and SalesTerritoryEntity over the m:1 relation they have, using the relation between the fields: StateProvince.TerritoryId - SalesTerritory.TerritoryId + public virtual IEntityRelation SalesTerritoryEntityUsingTerritoryId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesTerritory", false, new[] { SalesTerritoryFields.TerritoryId, StateProvinceFields.TerritoryId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticStateProvinceRelations + { + internal static readonly IEntityRelation AddressEntityUsingStateProvinceIdStatic = new StateProvinceRelations().AddressEntityUsingStateProvinceId; + internal static readonly IEntityRelation SalesTaxRateEntityUsingStateProvinceIdStatic = new StateProvinceRelations().SalesTaxRateEntityUsingStateProvinceId; + internal static readonly IEntityRelation CountryRegionEntityUsingCountryRegionCodeStatic = new StateProvinceRelations().CountryRegionEntityUsingCountryRegionCode; + internal static readonly IEntityRelation SalesTerritoryEntityUsingTerritoryIdStatic = new StateProvinceRelations().SalesTerritoryEntityUsingTerritoryId; + + /// CTor + static StaticStateProvinceRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/StoreEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/StoreEntity.cs new file mode 100644 index 00000000..6852a494 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/StoreEntity.cs @@ -0,0 +1,294 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Store'.

+ [Serializable] + public partial class StoreEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _customers; + private SalesPersonEntity _salesPerson; + private BusinessEntityEntity _businessEntity; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static StoreEntityStaticMetaData _staticMetaData = new StoreEntityStaticMetaData(); + private static StoreRelations _relationsFactory = new StoreRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name SalesPerson + public static readonly string SalesPerson = "SalesPerson"; + /// Member name Customers + public static readonly string Customers = "Customers"; + /// Member name BusinessEntity + public static readonly string BusinessEntity = "BusinessEntity"; + } + + /// Static meta-data storage for navigator related information + protected class StoreEntityStaticMetaData : EntityStaticMetaDataBase + { + public StoreEntityStaticMetaData() + { + SetEntityCoreInfo("StoreEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.StoreEntity, typeof(StoreEntity), typeof(StoreEntityFactory), false); + AddNavigatorMetaData>("Customers", a => a._customers, (a, b) => a._customers = b, a => a.Customers, () => new StoreRelations().CustomerEntityUsingStoreId, typeof(CustomerEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity); + AddNavigatorMetaData("SalesPerson", "Stores", (a, b) => a._salesPerson = b, a => a._salesPerson, (a, b) => a.SalesPerson = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticStoreRelations.SalesPersonEntityUsingSalesPersonIdStatic, ()=>new StoreRelations().SalesPersonEntityUsingSalesPersonId, null, new int[] { (int)StoreFieldIndex.SalesPersonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity); + AddNavigatorMetaData("BusinessEntity", "Store", (a, b) => a._businessEntity = b, a => a._businessEntity, (a, b) => a.BusinessEntity = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticStoreRelations.BusinessEntityEntityUsingCustomerIdStatic, ()=>new StoreRelations().BusinessEntityEntityUsingCustomerId, null, new int[] { (int)StoreFieldIndex.CustomerId }, null, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity); + } + } + + /// Static ctor + static StoreEntity() + { + } + + /// CTor + public StoreEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public StoreEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this StoreEntity + public StoreEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Store which data should be fetched into this Store object + public StoreEntity(System.Int32 customerId) : this(customerId, null) + { + } + + /// CTor + /// PK value for Store which data should be fetched into this Store object + /// The custom validator object for this StoreEntity + public StoreEntity(System.Int32 customerId, IValidator validator) + { + InitClassEmpty(validator, null); + this.CustomerId = customerId; + } + + /// Private CTor for deserialization + /// + /// + protected StoreEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Customer' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoCustomers() { return CreateRelationInfoForNavigator("Customers"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'SalesPerson' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoSalesPerson() { return CreateRelationInfoForNavigator("SalesPerson"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() { return CreateRelationInfoForNavigator("BusinessEntity"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this StoreEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static StoreRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Customer' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathCustomers { get { return _staticMetaData.GetPrefetchPathElement("Customers", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'SalesPerson' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathSalesPerson { get { return _staticMetaData.GetPrefetchPathElement("SalesPerson", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntity { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntity", CommonEntityBase.CreateEntityCollection()); } } + + /// The CustomerId property of the Entity Store

+ /// Mapped on table field: "Store"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 CustomerId + { + get { return (System.Int32)GetValue((int)StoreFieldIndex.CustomerId, true); } + set { SetValue((int)StoreFieldIndex.CustomerId, value); } + } + + /// The Demographics property of the Entity Store

+ /// Mapped on table field: "Store"."Demographics".
Table field type characteristics (type, precision, scale, length): Xml, 0, 0, 2147483647.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String Demographics + { + get { return (System.String)GetValue((int)StoreFieldIndex.Demographics, true); } + set { SetValue((int)StoreFieldIndex.Demographics, value); } + } + + /// The ModifiedDate property of the Entity Store

+ /// Mapped on table field: "Store"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)StoreFieldIndex.ModifiedDate, true); } + set { SetValue((int)StoreFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Store

+ /// Mapped on table field: "Store"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)StoreFieldIndex.Name, true); } + set { SetValue((int)StoreFieldIndex.Name, value); } + } + + /// The Rowguid property of the Entity Store

+ /// Mapped on table field: "Store"."rowguid".
Table field type characteristics (type, precision, scale, length): UniqueIdentifier, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Guid Rowguid + { + get { return (System.Guid)GetValue((int)StoreFieldIndex.Rowguid, true); } + set { SetValue((int)StoreFieldIndex.Rowguid, value); } + } + + /// The SalesPersonId property of the Entity Store

+ /// Mapped on table field: "Store"."SalesPersonID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable SalesPersonId + { + get { return (Nullable)GetValue((int)StoreFieldIndex.SalesPersonId, false); } + set { SetValue((int)StoreFieldIndex.SalesPersonId, value); } + } + + /// Gets the EntityCollection with the related entities of type 'CustomerEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(CustomerEntity))] + public virtual EntityCollection Customers { get { return GetOrCreateEntityCollection("Store", true, false, ref _customers); } } + + /// Gets / sets related entity of type 'SalesPersonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual SalesPersonEntity SalesPerson + { + get { return _salesPerson; } + set { SetSingleRelatedEntityNavigator(value, "SalesPerson"); } + } + + /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual BusinessEntityEntity BusinessEntity + { + get { return _businessEntity; } + set { SetSingleRelatedEntityNavigator(value, "BusinessEntity"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum StoreFieldIndex + { + ///CustomerId. + CustomerId, + ///Demographics. + Demographics, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///Rowguid. + Rowguid, + ///SalesPersonId. + SalesPersonId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Store. + public partial class StoreRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between StoreEntity and CustomerEntity over the 1:n relation they have, using the relation between the fields: Store.CustomerId - Customer.StoreId + public virtual IEntityRelation CustomerEntityUsingStoreId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Customers", true, new[] { StoreFields.CustomerId, CustomerFields.StoreId }); } + } + + /// Returns a new IEntityRelation object, between StoreEntity and BusinessEntityEntity over the 1:1 relation they have, using the relation between the fields: Store.CustomerId - BusinessEntity.BusinessEntityId + public virtual IEntityRelation BusinessEntityEntityUsingCustomerId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "BusinessEntity", false, new[] { BusinessEntityFields.BusinessEntityId, StoreFields.CustomerId }); } + } + + /// Returns a new IEntityRelation object, between StoreEntity and SalesPersonEntity over the m:1 relation they have, using the relation between the fields: Store.SalesPersonId - SalesPerson.SalesPersonId + public virtual IEntityRelation SalesPersonEntityUsingSalesPersonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "SalesPerson", false, new[] { SalesPersonFields.SalesPersonId, StoreFields.SalesPersonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticStoreRelations + { + internal static readonly IEntityRelation CustomerEntityUsingStoreIdStatic = new StoreRelations().CustomerEntityUsingStoreId; + internal static readonly IEntityRelation BusinessEntityEntityUsingCustomerIdStatic = new StoreRelations().BusinessEntityEntityUsingCustomerId; + internal static readonly IEntityRelation SalesPersonEntityUsingSalesPersonIdStatic = new StoreRelations().SalesPersonEntityUsingSalesPersonId; + + /// CTor + static StaticStoreRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs new file mode 100644 index 00000000..db80cf8c --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryArchiveEntity.cs @@ -0,0 +1,248 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'TransactionHistoryArchive'.

+ [Serializable] + public partial class TransactionHistoryArchiveEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static TransactionHistoryArchiveEntityStaticMetaData _staticMetaData = new TransactionHistoryArchiveEntityStaticMetaData(); + private static TransactionHistoryArchiveRelations _relationsFactory = new TransactionHistoryArchiveRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + } + + /// Static meta-data storage for navigator related information + protected class TransactionHistoryArchiveEntityStaticMetaData : EntityStaticMetaDataBase + { + public TransactionHistoryArchiveEntityStaticMetaData() + { + SetEntityCoreInfo("TransactionHistoryArchiveEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryArchiveEntity, typeof(TransactionHistoryArchiveEntity), typeof(TransactionHistoryArchiveEntityFactory), false); + } + } + + /// Static ctor + static TransactionHistoryArchiveEntity() + { + } + + /// CTor + public TransactionHistoryArchiveEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public TransactionHistoryArchiveEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this TransactionHistoryArchiveEntity + public TransactionHistoryArchiveEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for TransactionHistoryArchive which data should be fetched into this TransactionHistoryArchive object + public TransactionHistoryArchiveEntity(System.Int32 transactionId) : this(transactionId, null) + { + } + + /// CTor + /// PK value for TransactionHistoryArchive which data should be fetched into this TransactionHistoryArchive object + /// The custom validator object for this TransactionHistoryArchiveEntity + public TransactionHistoryArchiveEntity(System.Int32 transactionId, IValidator validator) + { + InitClassEmpty(validator, null); + this.TransactionId = transactionId; + } + + /// Private CTor for deserialization + /// + /// + protected TransactionHistoryArchiveEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this TransactionHistoryArchiveEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static TransactionHistoryArchiveRelations Relations { get { return _relationsFactory; } } + + /// The ActualCost property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."ActualCost".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal ActualCost + { + get { return (System.Decimal)GetValue((int)TransactionHistoryArchiveFieldIndex.ActualCost, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.ActualCost, value); } + } + + /// The ModifiedDate property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)TransactionHistoryArchiveFieldIndex.ModifiedDate, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.ProductId, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.ProductId, value); } + } + + /// The Quantity property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."Quantity".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 Quantity + { + get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.Quantity, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.Quantity, value); } + } + + /// The ReferenceOrderId property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."ReferenceOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ReferenceOrderId + { + get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderId, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderId, value); } + } + + /// The ReferenceOrderLineId property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."ReferenceOrderLineID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ReferenceOrderLineId + { + get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderLineId, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.ReferenceOrderLineId, value); } + } + + /// The TransactionDate property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."TransactionDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime TransactionDate + { + get { return (System.DateTime)GetValue((int)TransactionHistoryArchiveFieldIndex.TransactionDate, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.TransactionDate, value); } + } + + /// The TransactionId property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."TransactionID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 TransactionId + { + get { return (System.Int32)GetValue((int)TransactionHistoryArchiveFieldIndex.TransactionId, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.TransactionId, value); } + } + + /// The TransactionType property of the Entity TransactionHistoryArchive

+ /// Mapped on table field: "TransactionHistoryArchive"."TransactionType".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String TransactionType + { + get { return (System.String)GetValue((int)TransactionHistoryArchiveFieldIndex.TransactionType, true); } + set { SetValue((int)TransactionHistoryArchiveFieldIndex.TransactionType, value); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum TransactionHistoryArchiveFieldIndex + { + ///ActualCost. + ActualCost, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///Quantity. + Quantity, + ///ReferenceOrderId. + ReferenceOrderId, + ///ReferenceOrderLineId. + ReferenceOrderLineId, + ///TransactionDate. + TransactionDate, + ///TransactionId. + TransactionId, + ///TransactionType. + TransactionType, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: TransactionHistoryArchive. + public partial class TransactionHistoryArchiveRelations: RelationFactory + { + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticTransactionHistoryArchiveRelations + { + + /// CTor + static StaticTransactionHistoryArchiveRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs new file mode 100644 index 00000000..50f04095 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/TransactionHistoryEntity.cs @@ -0,0 +1,274 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'TransactionHistory'.

+ [Serializable] + public partial class TransactionHistoryEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private ProductEntity _product; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static TransactionHistoryEntityStaticMetaData _staticMetaData = new TransactionHistoryEntityStaticMetaData(); + private static TransactionHistoryRelations _relationsFactory = new TransactionHistoryRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + } + + /// Static meta-data storage for navigator related information + protected class TransactionHistoryEntityStaticMetaData : EntityStaticMetaDataBase + { + public TransactionHistoryEntityStaticMetaData() + { + SetEntityCoreInfo("TransactionHistoryEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryEntity, typeof(TransactionHistoryEntity), typeof(TransactionHistoryEntityFactory), false); + AddNavigatorMetaData("Product", "TransactionHistories", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticTransactionHistoryRelations.ProductEntityUsingProductIdStatic, ()=>new TransactionHistoryRelations().ProductEntityUsingProductId, null, new int[] { (int)TransactionHistoryFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + } + } + + /// Static ctor + static TransactionHistoryEntity() + { + } + + /// CTor + public TransactionHistoryEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public TransactionHistoryEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this TransactionHistoryEntity + public TransactionHistoryEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for TransactionHistory which data should be fetched into this TransactionHistory object + public TransactionHistoryEntity(System.Int32 transactionId) : this(transactionId, null) + { + } + + /// CTor + /// PK value for TransactionHistory which data should be fetched into this TransactionHistory object + /// The custom validator object for this TransactionHistoryEntity + public TransactionHistoryEntity(System.Int32 transactionId, IValidator validator) + { + InitClassEmpty(validator, null); + this.TransactionId = transactionId; + } + + /// Private CTor for deserialization + /// + /// + protected TransactionHistoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this TransactionHistoryEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static TransactionHistoryRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// The ActualCost property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."ActualCost".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal ActualCost + { + get { return (System.Decimal)GetValue((int)TransactionHistoryFieldIndex.ActualCost, true); } + set { SetValue((int)TransactionHistoryFieldIndex.ActualCost, value); } + } + + /// The ModifiedDate property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)TransactionHistoryFieldIndex.ModifiedDate, true); } + set { SetValue((int)TransactionHistoryFieldIndex.ModifiedDate, value); } + } + + /// The ProductId property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.ProductId, true); } + set { SetValue((int)TransactionHistoryFieldIndex.ProductId, value); } + } + + /// The Quantity property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."Quantity".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 Quantity + { + get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.Quantity, true); } + set { SetValue((int)TransactionHistoryFieldIndex.Quantity, value); } + } + + /// The ReferenceOrderId property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."ReferenceOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ReferenceOrderId + { + get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.ReferenceOrderId, true); } + set { SetValue((int)TransactionHistoryFieldIndex.ReferenceOrderId, value); } + } + + /// The ReferenceOrderLineId property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."ReferenceOrderLineID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ReferenceOrderLineId + { + get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.ReferenceOrderLineId, true); } + set { SetValue((int)TransactionHistoryFieldIndex.ReferenceOrderLineId, value); } + } + + /// The TransactionDate property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."TransactionDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime TransactionDate + { + get { return (System.DateTime)GetValue((int)TransactionHistoryFieldIndex.TransactionDate, true); } + set { SetValue((int)TransactionHistoryFieldIndex.TransactionDate, value); } + } + + /// The TransactionId property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."TransactionID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 TransactionId + { + get { return (System.Int32)GetValue((int)TransactionHistoryFieldIndex.TransactionId, true); } + set { SetValue((int)TransactionHistoryFieldIndex.TransactionId, value); } } + + /// The TransactionType property of the Entity TransactionHistory

+ /// Mapped on table field: "TransactionHistory"."TransactionType".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 1.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String TransactionType + { + get { return (System.String)GetValue((int)TransactionHistoryFieldIndex.TransactionType, true); } + set { SetValue((int)TransactionHistoryFieldIndex.TransactionType, value); } + } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum TransactionHistoryFieldIndex + { + ///ActualCost. + ActualCost, + ///ModifiedDate. + ModifiedDate, + ///ProductId. + ProductId, + ///Quantity. + Quantity, + ///ReferenceOrderId. + ReferenceOrderId, + ///ReferenceOrderLineId. + ReferenceOrderLineId, + ///TransactionDate. + TransactionDate, + ///TransactionId. + TransactionId, + ///TransactionType. + TransactionType, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: TransactionHistory. + public partial class TransactionHistoryRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between TransactionHistoryEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: TransactionHistory.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, TransactionHistoryFields.ProductId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticTransactionHistoryRelations + { + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new TransactionHistoryRelations().ProductEntityUsingProductId; + + /// CTor + static StaticTransactionHistoryRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs new file mode 100644 index 00000000..ae8a53c3 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/UnitMeasureEntity.cs @@ -0,0 +1,279 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'UnitMeasure'.

+ [Serializable] + public partial class UnitMeasureEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _billOfMaterials; + private EntityCollection _products; + private EntityCollection _products_; + private EntityCollection _productVendors; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static UnitMeasureEntityStaticMetaData _staticMetaData = new UnitMeasureEntityStaticMetaData(); + private static UnitMeasureRelations _relationsFactory = new UnitMeasureRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name BillOfMaterials + public static readonly string BillOfMaterials = "BillOfMaterials"; + /// Member name Products + public static readonly string Products = "Products"; + /// Member name Products_ + public static readonly string Products_ = "Products_"; + /// Member name ProductVendors + public static readonly string ProductVendors = "ProductVendors"; + } + + /// Static meta-data storage for navigator related information + protected class UnitMeasureEntityStaticMetaData : EntityStaticMetaDataBase + { + public UnitMeasureEntityStaticMetaData() + { + SetEntityCoreInfo("UnitMeasureEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity, typeof(UnitMeasureEntity), typeof(UnitMeasureEntityFactory), false); + AddNavigatorMetaData>("BillOfMaterials", a => a._billOfMaterials, (a, b) => a._billOfMaterials = b, a => a.BillOfMaterials, () => new UnitMeasureRelations().BillOfMaterialEntityUsingUnitMeasureCode, typeof(BillOfMaterialEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.BillOfMaterialEntity); + AddNavigatorMetaData>("Products", a => a._products, (a, b) => a._products = b, a => a.Products, () => new UnitMeasureRelations().ProductEntityUsingSizeUnitMeasureCode, typeof(ProductEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData>("Products_", a => a._products_, (a, b) => a._products_ = b, a => a.Products_, () => new UnitMeasureRelations().ProductEntityUsingWeightUnitMeasureCode, typeof(ProductEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData>("ProductVendors", a => a._productVendors, (a, b) => a._productVendors = b, a => a.ProductVendors, () => new UnitMeasureRelations().ProductVendorEntityUsingUnitMeasureCode, typeof(ProductVendorEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductVendorEntity); + } + } + + /// Static ctor + static UnitMeasureEntity() + { + } + + /// CTor + public UnitMeasureEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public UnitMeasureEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this UnitMeasureEntity + public UnitMeasureEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for UnitMeasure which data should be fetched into this UnitMeasure object + public UnitMeasureEntity(System.String unitMeasureCode) : this(unitMeasureCode, null) + { + } + + /// CTor + /// PK value for UnitMeasure which data should be fetched into this UnitMeasure object + /// The custom validator object for this UnitMeasureEntity + public UnitMeasureEntity(System.String unitMeasureCode, IValidator validator) + { + InitClassEmpty(validator, null); + this.UnitMeasureCode = unitMeasureCode; + } + + /// Private CTor for deserialization + /// + /// + protected UnitMeasureEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'BillOfMaterial' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBillOfMaterials() { return CreateRelationInfoForNavigator("BillOfMaterials"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProducts() { return CreateRelationInfoForNavigator("Products"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProducts_() { return CreateRelationInfoForNavigator("Products_"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductVendor' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductVendors() { return CreateRelationInfoForNavigator("ProductVendors"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this UnitMeasureEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static UnitMeasureRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BillOfMaterial' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBillOfMaterials { get { return _staticMetaData.GetPrefetchPathElement("BillOfMaterials", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProducts { get { return _staticMetaData.GetPrefetchPathElement("Products", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProducts_ { get { return _staticMetaData.GetPrefetchPathElement("Products_", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductVendor' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductVendors { get { return _staticMetaData.GetPrefetchPathElement("ProductVendors", CommonEntityBase.CreateEntityCollection()); } } + + /// The ModifiedDate property of the Entity UnitMeasure

+ /// Mapped on table field: "UnitMeasure"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)UnitMeasureFieldIndex.ModifiedDate, true); } + set { SetValue((int)UnitMeasureFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity UnitMeasure

+ /// Mapped on table field: "UnitMeasure"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)UnitMeasureFieldIndex.Name, true); } + set { SetValue((int)UnitMeasureFieldIndex.Name, value); } + } + + /// The UnitMeasureCode property of the Entity UnitMeasure

+ /// Mapped on table field: "UnitMeasure"."UnitMeasureCode".
Table field type characteristics (type, precision, scale, length): NChar, 0, 0, 3.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.String UnitMeasureCode + { + get { return (System.String)GetValue((int)UnitMeasureFieldIndex.UnitMeasureCode, true); } + set { SetValue((int)UnitMeasureFieldIndex.UnitMeasureCode, value); } + } + + /// Gets the EntityCollection with the related entities of type 'BillOfMaterialEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(BillOfMaterialEntity))] + public virtual EntityCollection BillOfMaterials { get { return GetOrCreateEntityCollection("UnitMeasure", true, false, ref _billOfMaterials); } } + + /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductEntity))] + public virtual EntityCollection Products { get { return GetOrCreateEntityCollection("UnitMeasure", true, false, ref _products); } } + + /// Gets the EntityCollection with the related entities of type 'ProductEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductEntity))] + public virtual EntityCollection Products_ { get { return GetOrCreateEntityCollection("UnitMeasure_", true, false, ref _products_); } } + + /// Gets the EntityCollection with the related entities of type 'ProductVendorEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductVendorEntity))] + public virtual EntityCollection ProductVendors { get { return GetOrCreateEntityCollection("UnitMeasure", true, false, ref _productVendors); } } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum UnitMeasureFieldIndex + { + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///UnitMeasureCode. + UnitMeasureCode, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: UnitMeasure. + public partial class UnitMeasureRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between UnitMeasureEntity and BillOfMaterialEntity over the 1:n relation they have, using the relation between the fields: UnitMeasure.UnitMeasureCode - BillOfMaterial.UnitMeasureCode + public virtual IEntityRelation BillOfMaterialEntityUsingUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "BillOfMaterials", true, new[] { UnitMeasureFields.UnitMeasureCode, BillOfMaterialFields.UnitMeasureCode }); } + } + + /// Returns a new IEntityRelation object, between UnitMeasureEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: UnitMeasure.UnitMeasureCode - Product.SizeUnitMeasureCode + public virtual IEntityRelation ProductEntityUsingSizeUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Products", true, new[] { UnitMeasureFields.UnitMeasureCode, ProductFields.SizeUnitMeasureCode }); } + } + + /// Returns a new IEntityRelation object, between UnitMeasureEntity and ProductEntity over the 1:n relation they have, using the relation between the fields: UnitMeasure.UnitMeasureCode - Product.WeightUnitMeasureCode + public virtual IEntityRelation ProductEntityUsingWeightUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "Products_", true, new[] { UnitMeasureFields.UnitMeasureCode, ProductFields.WeightUnitMeasureCode }); } + } + + /// Returns a new IEntityRelation object, between UnitMeasureEntity and ProductVendorEntity over the 1:n relation they have, using the relation between the fields: UnitMeasure.UnitMeasureCode - ProductVendor.UnitMeasureCode + public virtual IEntityRelation ProductVendorEntityUsingUnitMeasureCode + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductVendors", true, new[] { UnitMeasureFields.UnitMeasureCode, ProductVendorFields.UnitMeasureCode }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticUnitMeasureRelations + { + internal static readonly IEntityRelation BillOfMaterialEntityUsingUnitMeasureCodeStatic = new UnitMeasureRelations().BillOfMaterialEntityUsingUnitMeasureCode; + internal static readonly IEntityRelation ProductEntityUsingSizeUnitMeasureCodeStatic = new UnitMeasureRelations().ProductEntityUsingSizeUnitMeasureCode; + internal static readonly IEntityRelation ProductEntityUsingWeightUnitMeasureCodeStatic = new UnitMeasureRelations().ProductEntityUsingWeightUnitMeasureCode; + internal static readonly IEntityRelation ProductVendorEntityUsingUnitMeasureCodeStatic = new UnitMeasureRelations().ProductVendorEntityUsingUnitMeasureCode; + + /// CTor + static StaticUnitMeasureRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/VendorEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/VendorEntity.cs new file mode 100644 index 00000000..3c583f30 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/VendorEntity.cs @@ -0,0 +1,309 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'Vendor'.

+ [Serializable] + public partial class VendorEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _productVendors; + private EntityCollection _purchaseOrderHeaders; + private BusinessEntityEntity _businessEntity; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static VendorEntityStaticMetaData _staticMetaData = new VendorEntityStaticMetaData(); + private static VendorRelations _relationsFactory = new VendorRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name ProductVendors + public static readonly string ProductVendors = "ProductVendors"; + /// Member name PurchaseOrderHeaders + public static readonly string PurchaseOrderHeaders = "PurchaseOrderHeaders"; + /// Member name BusinessEntity + public static readonly string BusinessEntity = "BusinessEntity"; + } + + /// Static meta-data storage for navigator related information + protected class VendorEntityStaticMetaData : EntityStaticMetaDataBase + { + public VendorEntityStaticMetaData() + { + SetEntityCoreInfo("VendorEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.VendorEntity, typeof(VendorEntity), typeof(VendorEntityFactory), false); + AddNavigatorMetaData>("ProductVendors", a => a._productVendors, (a, b) => a._productVendors = b, a => a.ProductVendors, () => new VendorRelations().ProductVendorEntityUsingVendorId, typeof(ProductVendorEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductVendorEntity); + AddNavigatorMetaData>("PurchaseOrderHeaders", a => a._purchaseOrderHeaders, (a, b) => a._purchaseOrderHeaders = b, a => a.PurchaseOrderHeaders, () => new VendorRelations().PurchaseOrderHeaderEntityUsingVendorId, typeof(PurchaseOrderHeaderEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity); + AddNavigatorMetaData("BusinessEntity", "Vendor", (a, b) => a._businessEntity = b, a => a._businessEntity, (a, b) => a.BusinessEntity = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticVendorRelations.BusinessEntityEntityUsingVendorIdStatic, ()=>new VendorRelations().BusinessEntityEntityUsingVendorId, null, new int[] { (int)VendorFieldIndex.VendorId }, null, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity); + } + } + + /// Static ctor + static VendorEntity() + { + } + + /// CTor + public VendorEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public VendorEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this VendorEntity + public VendorEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for Vendor which data should be fetched into this Vendor object + public VendorEntity(System.Int32 vendorId) : this(vendorId, null) + { + } + + /// CTor + /// PK value for Vendor which data should be fetched into this Vendor object + /// The custom validator object for this VendorEntity + public VendorEntity(System.Int32 vendorId, IValidator validator) + { + InitClassEmpty(validator, null); + this.VendorId = vendorId; + } + + /// Private CTor for deserialization + /// + /// + protected VendorEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'ProductVendor' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProductVendors() { return CreateRelationInfoForNavigator("ProductVendors"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'PurchaseOrderHeader' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoPurchaseOrderHeaders() { return CreateRelationInfoForNavigator("PurchaseOrderHeaders"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'BusinessEntity' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoBusinessEntity() { return CreateRelationInfoForNavigator("BusinessEntity"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this VendorEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static VendorRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ProductVendor' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProductVendors { get { return _staticMetaData.GetPrefetchPathElement("ProductVendors", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'PurchaseOrderHeader' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathPurchaseOrderHeaders { get { return _staticMetaData.GetPrefetchPathElement("PurchaseOrderHeaders", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'BusinessEntity' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathBusinessEntity { get { return _staticMetaData.GetPrefetchPathElement("BusinessEntity", CommonEntityBase.CreateEntityCollection()); } } + + /// The AccountNumber property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."AccountNumber".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 15.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String AccountNumber + { + get { return (System.String)GetValue((int)VendorFieldIndex.AccountNumber, true); } + set { SetValue((int)VendorFieldIndex.AccountNumber, value); } + } + + /// The ActiveFlag property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."ActiveFlag".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean ActiveFlag + { + get { return (System.Boolean)GetValue((int)VendorFieldIndex.ActiveFlag, true); } + set { SetValue((int)VendorFieldIndex.ActiveFlag, value); } + } + + /// The CreditRating property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."CreditRating".
Table field type characteristics (type, precision, scale, length): TinyInt, 3, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Byte CreditRating + { + get { return (System.Byte)GetValue((int)VendorFieldIndex.CreditRating, true); } + set { SetValue((int)VendorFieldIndex.CreditRating, value); } + } + + /// The ModifiedDate property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)VendorFieldIndex.ModifiedDate, true); } + set { SetValue((int)VendorFieldIndex.ModifiedDate, value); } + } + + /// The Name property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."Name".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 50.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.String Name + { + get { return (System.String)GetValue((int)VendorFieldIndex.Name, true); } + set { SetValue((int)VendorFieldIndex.Name, value); } + } + + /// The PreferredVendorStatus property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."PreferredVendorStatus".
Table field type characteristics (type, precision, scale, length): Bit, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Boolean PreferredVendorStatus + { + get { return (System.Boolean)GetValue((int)VendorFieldIndex.PreferredVendorStatus, true); } + set { SetValue((int)VendorFieldIndex.PreferredVendorStatus, value); } + } + + /// The PurchasingWebServiceUrl property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."PurchasingWebServiceURL".
Table field type characteristics (type, precision, scale, length): NVarChar, 0, 0, 1024.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual System.String PurchasingWebServiceUrl + { + get { return (System.String)GetValue((int)VendorFieldIndex.PurchasingWebServiceUrl, true); } + set { SetValue((int)VendorFieldIndex.PurchasingWebServiceUrl, value); } + } + + /// The VendorId property of the Entity Vendor

+ /// Mapped on table field: "Vendor"."BusinessEntityID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 VendorId + { + get { return (System.Int32)GetValue((int)VendorFieldIndex.VendorId, true); } + set { SetValue((int)VendorFieldIndex.VendorId, value); } } + + /// Gets the EntityCollection with the related entities of type 'ProductVendorEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(ProductVendorEntity))] + public virtual EntityCollection ProductVendors { get { return GetOrCreateEntityCollection("Vendor", true, false, ref _productVendors); } } + + /// Gets the EntityCollection with the related entities of type 'PurchaseOrderHeaderEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(PurchaseOrderHeaderEntity))] + public virtual EntityCollection PurchaseOrderHeaders { get { return GetOrCreateEntityCollection("Vendor", true, false, ref _purchaseOrderHeaders); } } + + /// Gets / sets related entity of type 'BusinessEntityEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned.

+ [Browsable(false)] + public virtual BusinessEntityEntity BusinessEntity + { + get { return _businessEntity; } + set { SetSingleRelatedEntityNavigator(value, "BusinessEntity"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum VendorFieldIndex + { + ///AccountNumber. + AccountNumber, + ///ActiveFlag. + ActiveFlag, + ///CreditRating. + CreditRating, + ///ModifiedDate. + ModifiedDate, + ///Name. + Name, + ///PreferredVendorStatus. + PreferredVendorStatus, + ///PurchasingWebServiceUrl. + PurchasingWebServiceUrl, + ///VendorId. + VendorId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: Vendor. + public partial class VendorRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between VendorEntity and ProductVendorEntity over the 1:n relation they have, using the relation between the fields: Vendor.VendorId - ProductVendor.VendorId + public virtual IEntityRelation ProductVendorEntityUsingVendorId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "ProductVendors", true, new[] { VendorFields.VendorId, ProductVendorFields.VendorId }); } + } + + /// Returns a new IEntityRelation object, between VendorEntity and PurchaseOrderHeaderEntity over the 1:n relation they have, using the relation between the fields: Vendor.VendorId - PurchaseOrderHeader.VendorId + public virtual IEntityRelation PurchaseOrderHeaderEntityUsingVendorId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "PurchaseOrderHeaders", true, new[] { VendorFields.VendorId, PurchaseOrderHeaderFields.VendorId }); } + } + + /// Returns a new IEntityRelation object, between VendorEntity and BusinessEntityEntity over the 1:1 relation they have, using the relation between the fields: Vendor.VendorId - BusinessEntity.BusinessEntityId + public virtual IEntityRelation BusinessEntityEntityUsingVendorId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToOne, "BusinessEntity", false, new[] { BusinessEntityFields.BusinessEntityId, VendorFields.VendorId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticVendorRelations + { + internal static readonly IEntityRelation ProductVendorEntityUsingVendorIdStatic = new VendorRelations().ProductVendorEntityUsingVendorId; + internal static readonly IEntityRelation PurchaseOrderHeaderEntityUsingVendorIdStatic = new VendorRelations().PurchaseOrderHeaderEntityUsingVendorId; + internal static readonly IEntityRelation BusinessEntityEntityUsingVendorIdStatic = new VendorRelations().BusinessEntityEntityUsingVendorId; + + /// CTor + static StaticVendorRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs new file mode 100644 index 00000000..ac7666dc --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderEntity.cs @@ -0,0 +1,332 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'WorkOrder'.

+ [Serializable] + public partial class WorkOrderEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private EntityCollection _workOrderRoutings; + private ProductEntity _product; + private ScrapReasonEntity _scrapReason; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static WorkOrderEntityStaticMetaData _staticMetaData = new WorkOrderEntityStaticMetaData(); + private static WorkOrderRelations _relationsFactory = new WorkOrderRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Product + public static readonly string Product = "Product"; + /// Member name ScrapReason + public static readonly string ScrapReason = "ScrapReason"; + /// Member name WorkOrderRoutings + public static readonly string WorkOrderRoutings = "WorkOrderRoutings"; + } + + /// Static meta-data storage for navigator related information + protected class WorkOrderEntityStaticMetaData : EntityStaticMetaDataBase + { + public WorkOrderEntityStaticMetaData() + { + SetEntityCoreInfo("WorkOrderEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderEntity, typeof(WorkOrderEntity), typeof(WorkOrderEntityFactory), false); + AddNavigatorMetaData>("WorkOrderRoutings", a => a._workOrderRoutings, (a, b) => a._workOrderRoutings = b, a => a.WorkOrderRoutings, () => new WorkOrderRelations().WorkOrderRoutingEntityUsingWorkOrderId, typeof(WorkOrderRoutingEntity), (int)AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderRoutingEntity); + AddNavigatorMetaData("Product", "WorkOrders", (a, b) => a._product = b, a => a._product, (a, b) => a.Product = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticWorkOrderRelations.ProductEntityUsingProductIdStatic, ()=>new WorkOrderRelations().ProductEntityUsingProductId, null, new int[] { (int)WorkOrderFieldIndex.ProductId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity); + AddNavigatorMetaData("ScrapReason", "WorkOrders", (a, b) => a._scrapReason = b, a => a._scrapReason, (a, b) => a.ScrapReason = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticWorkOrderRelations.ScrapReasonEntityUsingScrapReasonIdStatic, ()=>new WorkOrderRelations().ScrapReasonEntityUsingScrapReasonId, null, new int[] { (int)WorkOrderFieldIndex.ScrapReasonId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.ScrapReasonEntity); + } + } + + /// Static ctor + static WorkOrderEntity() + { + } + + /// CTor + public WorkOrderEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public WorkOrderEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this WorkOrderEntity + public WorkOrderEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for WorkOrder which data should be fetched into this WorkOrder object + public WorkOrderEntity(System.Int32 workOrderId) : this(workOrderId, null) + { + } + + /// CTor + /// PK value for WorkOrder which data should be fetched into this WorkOrder object + /// The custom validator object for this WorkOrderEntity + public WorkOrderEntity(System.Int32 workOrderId, IValidator validator) + { + InitClassEmpty(validator, null); + this.WorkOrderId = workOrderId; + } + + /// Private CTor for deserialization + /// + /// + protected WorkOrderEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'WorkOrderRouting' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoWorkOrderRoutings() { return CreateRelationInfoForNavigator("WorkOrderRoutings"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Product' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoProduct() { return CreateRelationInfoForNavigator("Product"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'ScrapReason' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoScrapReason() { return CreateRelationInfoForNavigator("ScrapReason"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this WorkOrderEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static WorkOrderRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrderRouting' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathWorkOrderRoutings { get { return _staticMetaData.GetPrefetchPathElement("WorkOrderRoutings", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Product' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathProduct { get { return _staticMetaData.GetPrefetchPathElement("Product", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'ScrapReason' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathScrapReason { get { return _staticMetaData.GetPrefetchPathElement("ScrapReason", CommonEntityBase.CreateEntityCollection()); } } + + /// The DueDate property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."DueDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime DueDate + { + get { return (System.DateTime)GetValue((int)WorkOrderFieldIndex.DueDate, true); } + set { SetValue((int)WorkOrderFieldIndex.DueDate, value); } + } + + /// The EndDate property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."EndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable EndDate + { + get { return (Nullable)GetValue((int)WorkOrderFieldIndex.EndDate, false); } + set { SetValue((int)WorkOrderFieldIndex.EndDate, value); } + } + + /// The ModifiedDate property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)WorkOrderFieldIndex.ModifiedDate, true); } + set { SetValue((int)WorkOrderFieldIndex.ModifiedDate, value); } + } + + /// The OrderQty property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."OrderQty".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 OrderQty + { + get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.OrderQty, true); } + set { SetValue((int)WorkOrderFieldIndex.OrderQty, value); } + } + + /// The ProductId property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.ProductId, true); } + set { SetValue((int)WorkOrderFieldIndex.ProductId, value); } + } + + /// The ScrappedQty property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."ScrappedQty".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 ScrappedQty + { + get { return (System.Int16)GetValue((int)WorkOrderFieldIndex.ScrappedQty, true); } + set { SetValue((int)WorkOrderFieldIndex.ScrappedQty, value); } + } + + /// The ScrapReasonId property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."ScrapReasonID".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ScrapReasonId + { + get { return (Nullable)GetValue((int)WorkOrderFieldIndex.ScrapReasonId, false); } + set { SetValue((int)WorkOrderFieldIndex.ScrapReasonId, value); } + } + + /// The StartDate property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."StartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime StartDate + { + get { return (System.DateTime)GetValue((int)WorkOrderFieldIndex.StartDate, true); } + set { SetValue((int)WorkOrderFieldIndex.StartDate, value); } + } + + /// The StockedQty property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."StockedQty".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int32 StockedQty + { + get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.StockedQty, true); } + } + + /// The WorkOrderId property of the Entity WorkOrder

+ /// Mapped on table field: "WorkOrder"."WorkOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, true
+ public virtual System.Int32 WorkOrderId + { + get { return (System.Int32)GetValue((int)WorkOrderFieldIndex.WorkOrderId, true); } + set { SetValue((int)WorkOrderFieldIndex.WorkOrderId, value); } } + + /// Gets the EntityCollection with the related entities of type 'WorkOrderRoutingEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.

+ [TypeContainedAttribute(typeof(WorkOrderRoutingEntity))] + public virtual EntityCollection WorkOrderRoutings { get { return GetOrCreateEntityCollection("WorkOrder", true, false, ref _workOrderRoutings); } } + + /// Gets / sets related entity of type 'ProductEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ProductEntity Product + { + get { return _product; } + set { SetSingleRelatedEntityNavigator(value, "Product"); } + } + + /// Gets / sets related entity of type 'ScrapReasonEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual ScrapReasonEntity ScrapReason + { + get { return _scrapReason; } + set { SetSingleRelatedEntityNavigator(value, "ScrapReason"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum WorkOrderFieldIndex + { + ///DueDate. + DueDate, + ///EndDate. + EndDate, + ///ModifiedDate. + ModifiedDate, + ///OrderQty. + OrderQty, + ///ProductId. + ProductId, + ///ScrappedQty. + ScrappedQty, + ///ScrapReasonId. + ScrapReasonId, + ///StartDate. + StartDate, + ///StockedQty. + StockedQty, + ///WorkOrderId. + WorkOrderId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: WorkOrder. + public partial class WorkOrderRelations: RelationFactory + { + /// Returns a new IEntityRelation object, between WorkOrderEntity and WorkOrderRoutingEntity over the 1:n relation they have, using the relation between the fields: WorkOrder.WorkOrderId - WorkOrderRouting.WorkOrderId + public virtual IEntityRelation WorkOrderRoutingEntityUsingWorkOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "WorkOrderRoutings", true, new[] { WorkOrderFields.WorkOrderId, WorkOrderRoutingFields.WorkOrderId }); } + } + + /// Returns a new IEntityRelation object, between WorkOrderEntity and ProductEntity over the m:1 relation they have, using the relation between the fields: WorkOrder.ProductId - Product.ProductId + public virtual IEntityRelation ProductEntityUsingProductId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Product", false, new[] { ProductFields.ProductId, WorkOrderFields.ProductId }); } + } + + /// Returns a new IEntityRelation object, between WorkOrderEntity and ScrapReasonEntity over the m:1 relation they have, using the relation between the fields: WorkOrder.ScrapReasonId - ScrapReason.ScrapReasonId + public virtual IEntityRelation ScrapReasonEntityUsingScrapReasonId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "ScrapReason", false, new[] { ScrapReasonFields.ScrapReasonId, WorkOrderFields.ScrapReasonId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticWorkOrderRelations + { + internal static readonly IEntityRelation WorkOrderRoutingEntityUsingWorkOrderIdStatic = new WorkOrderRelations().WorkOrderRoutingEntityUsingWorkOrderId; + internal static readonly IEntityRelation ProductEntityUsingProductIdStatic = new WorkOrderRelations().ProductEntityUsingProductId; + internal static readonly IEntityRelation ScrapReasonEntityUsingScrapReasonIdStatic = new WorkOrderRelations().ScrapReasonEntityUsingScrapReasonId; + + /// CTor + static StaticWorkOrderRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs b/LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs new file mode 100644 index 00000000..3ac95300 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/EntityClasses/WorkOrderRoutingEntity.cs @@ -0,0 +1,338 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +// Templates version: +////////////////////////////////////////////////////////////// +using System; +using System.ComponentModel; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Xml.Serialization; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; + +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.EntityClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + /// Entity class which represents the entity 'WorkOrderRouting'.

+ [Serializable] + public partial class WorkOrderRoutingEntity : CommonEntityBase + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces + // __LLBLGENPRO_USER_CODE_REGION_END + { + private LocationEntity _location; + private WorkOrderEntity _workOrder; + + // __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers + // __LLBLGENPRO_USER_CODE_REGION_END + private static WorkOrderRoutingEntityStaticMetaData _staticMetaData = new WorkOrderRoutingEntityStaticMetaData(); + private static WorkOrderRoutingRelations _relationsFactory = new WorkOrderRoutingRelations(); + + /// All names of fields mapped onto a relation. Usable for in-memory filtering + public static partial class MemberNames + { + /// Member name Location + public static readonly string Location = "Location"; + /// Member name WorkOrder + public static readonly string WorkOrder = "WorkOrder"; + } + + /// Static meta-data storage for navigator related information + protected class WorkOrderRoutingEntityStaticMetaData : EntityStaticMetaDataBase + { + public WorkOrderRoutingEntityStaticMetaData() + { + SetEntityCoreInfo("WorkOrderRoutingEntity", InheritanceHierarchyType.None, false, (int)AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderRoutingEntity, typeof(WorkOrderRoutingEntity), typeof(WorkOrderRoutingEntityFactory), false); + AddNavigatorMetaData("Location", "WorkOrderRoutings", (a, b) => a._location = b, a => a._location, (a, b) => a.Location = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticWorkOrderRoutingRelations.LocationEntityUsingLocationIdStatic, ()=>new WorkOrderRoutingRelations().LocationEntityUsingLocationId, null, new int[] { (int)WorkOrderRoutingFieldIndex.LocationId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.LocationEntity); + AddNavigatorMetaData("WorkOrder", "WorkOrderRoutings", (a, b) => a._workOrder = b, a => a._workOrder, (a, b) => a.WorkOrder = b, AdventureWorks.Dal.Adapter.v54.RelationClasses.StaticWorkOrderRoutingRelations.WorkOrderEntityUsingWorkOrderIdStatic, ()=>new WorkOrderRoutingRelations().WorkOrderEntityUsingWorkOrderId, null, new int[] { (int)WorkOrderRoutingFieldIndex.WorkOrderId }, null, true, (int)AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderEntity); + } + } + + /// Static ctor + static WorkOrderRoutingEntity() + { + } + + /// CTor + public WorkOrderRoutingEntity() + { + InitClassEmpty(null, null); + } + + /// CTor + /// Fields object to set as the fields for this entity. + public WorkOrderRoutingEntity(IEntityFields2 fields) + { + InitClassEmpty(null, fields); + } + + /// CTor + /// The custom validator object for this WorkOrderRoutingEntity + public WorkOrderRoutingEntity(IValidator validator) + { + InitClassEmpty(validator, null); + } + + /// CTor + /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object + /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object + /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object + public WorkOrderRoutingEntity(System.Int16 operationSequence, System.Int32 productId, System.Int32 workOrderId) : this(operationSequence, productId, workOrderId, null) + { + } + + /// CTor + /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object + /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object + /// PK value for WorkOrderRouting which data should be fetched into this WorkOrderRouting object + /// The custom validator object for this WorkOrderRoutingEntity + public WorkOrderRoutingEntity(System.Int16 operationSequence, System.Int32 productId, System.Int32 workOrderId, IValidator validator) + { + InitClassEmpty(validator, null); + this.OperationSequence = operationSequence; + this.ProductId = productId; + this.WorkOrderId = workOrderId; + } + + /// Private CTor for deserialization + /// + /// + protected WorkOrderRoutingEntity(SerializationInfo info, StreamingContext context) : base(info, context) + { + // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor + // __LLBLGENPRO_USER_CODE_REGION_END + } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'Location' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoLocation() { return CreateRelationInfoForNavigator("Location"); } + + /// Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'WorkOrder' to this entity. + /// + public virtual IRelationPredicateBucket GetRelationInfoWorkOrder() { return CreateRelationInfoForNavigator("WorkOrder"); } + + /// + protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; } + + /// Initializes the class members + private void InitClassMembers() + { + PerformDependencyInjection(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers + // __LLBLGENPRO_USER_CODE_REGION_END + OnInitClassMembersComplete(); + } + + /// Initializes the class with empty data, as if it is a new Entity. + /// The validator object for this WorkOrderRoutingEntity + /// Fields of this entity + private void InitClassEmpty(IValidator validator, IEntityFields2 fields) + { + OnInitializing(); + this.Fields = fields ?? CreateFields(); + this.Validator = validator; + InitClassMembers(); + // __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty + // __LLBLGENPRO_USER_CODE_REGION_END + + OnInitialized(); + } + + /// The relations object holding all relations of this entity with other entity classes. + public static WorkOrderRoutingRelations Relations { get { return _relationsFactory; } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'Location' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathLocation { get { return _staticMetaData.GetPrefetchPathElement("Location", CommonEntityBase.CreateEntityCollection()); } } + + /// Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'WorkOrder' for this entity. + /// Ready to use IPrefetchPathElement2 implementation. + public static IPrefetchPathElement2 PrefetchPathWorkOrder { get { return _staticMetaData.GetPrefetchPathElement("WorkOrder", CommonEntityBase.CreateEntityCollection()); } } + + /// The ActualCost property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ActualCost".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ActualCost + { + get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualCost, false); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ActualCost, value); } + } + + /// The ActualEndDate property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ActualEndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ActualEndDate + { + get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualEndDate, false); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ActualEndDate, value); } + } + + /// The ActualResourceHrs property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ActualResourceHrs".
Table field type characteristics (type, precision, scale, length): Decimal, 9, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ActualResourceHrs + { + get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualResourceHrs, false); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ActualResourceHrs, value); } + } + + /// The ActualStartDate property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ActualStartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): true, false, false
+ public virtual Nullable ActualStartDate + { + get { return (Nullable)GetValue((int)WorkOrderRoutingFieldIndex.ActualStartDate, false); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ActualStartDate, value); } + } + + /// The LocationId property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."LocationID".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Int16 LocationId + { + get { return (System.Int16)GetValue((int)WorkOrderRoutingFieldIndex.LocationId, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.LocationId, value); } + } + + /// The ModifiedDate property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ModifiedDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ModifiedDate + { + get { return (System.DateTime)GetValue((int)WorkOrderRoutingFieldIndex.ModifiedDate, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ModifiedDate, value); } + } + + /// The OperationSequence property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."OperationSequence".
Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int16 OperationSequence + { + get { return (System.Int16)GetValue((int)WorkOrderRoutingFieldIndex.OperationSequence, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.OperationSequence, value); } + } + + /// The PlannedCost property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."PlannedCost".
Table field type characteristics (type, precision, scale, length): Money, 19, 4, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.Decimal PlannedCost + { + get { return (System.Decimal)GetValue((int)WorkOrderRoutingFieldIndex.PlannedCost, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.PlannedCost, value); } + } + + /// The ProductId property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ProductID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 ProductId + { + get { return (System.Int32)GetValue((int)WorkOrderRoutingFieldIndex.ProductId, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ProductId, value); } + } + + /// The ScheduledEndDate property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ScheduledEndDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ScheduledEndDate + { + get { return (System.DateTime)GetValue((int)WorkOrderRoutingFieldIndex.ScheduledEndDate, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ScheduledEndDate, value); } + } + + /// The ScheduledStartDate property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."ScheduledStartDate".
Table field type characteristics (type, precision, scale, length): DateTime, 0, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, false, false
+ public virtual System.DateTime ScheduledStartDate + { + get { return (System.DateTime)GetValue((int)WorkOrderRoutingFieldIndex.ScheduledStartDate, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.ScheduledStartDate, value); } + } + + /// The WorkOrderId property of the Entity WorkOrderRouting

+ /// Mapped on table field: "WorkOrderRouting"."WorkOrderID".
Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0.
Table field behavior characteristics (is nullable, is PK, is identity): false, true, false
+ public virtual System.Int32 WorkOrderId + { + get { return (System.Int32)GetValue((int)WorkOrderRoutingFieldIndex.WorkOrderId, true); } + set { SetValue((int)WorkOrderRoutingFieldIndex.WorkOrderId, value); } + } + + /// Gets / sets related entity of type 'LocationEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual LocationEntity Location + { + get { return _location; } + set { SetSingleRelatedEntityNavigator(value, "Location"); } + } + + /// Gets / sets related entity of type 'WorkOrderEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..

+ [Browsable(false)] + public virtual WorkOrderEntity WorkOrder + { + get { return _workOrder; } + set { SetSingleRelatedEntityNavigator(value, "WorkOrder"); } + } + + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode + // __LLBLGENPRO_USER_CODE_REGION_END + } +} + +namespace AdventureWorks.Dal.Adapter.v54 +{ + public enum WorkOrderRoutingFieldIndex + { + ///ActualCost. + ActualCost, + ///ActualEndDate. + ActualEndDate, + ///ActualResourceHrs. + ActualResourceHrs, + ///ActualStartDate. + ActualStartDate, + ///LocationId. + LocationId, + ///ModifiedDate. + ModifiedDate, + ///OperationSequence. + OperationSequence, + ///PlannedCost. + PlannedCost, + ///ProductId. + ProductId, + ///ScheduledEndDate. + ScheduledEndDate, + ///ScheduledStartDate. + ScheduledStartDate, + ///WorkOrderId. + WorkOrderId, + /// + AmountOfFields + } +} + +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses +{ + /// Implements the relations factory for the entity: WorkOrderRouting. + public partial class WorkOrderRoutingRelations: RelationFactory + { + + /// Returns a new IEntityRelation object, between WorkOrderRoutingEntity and LocationEntity over the m:1 relation they have, using the relation between the fields: WorkOrderRouting.LocationId - Location.LocationId + public virtual IEntityRelation LocationEntityUsingLocationId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "Location", false, new[] { LocationFields.LocationId, WorkOrderRoutingFields.LocationId }); } + } + + /// Returns a new IEntityRelation object, between WorkOrderRoutingEntity and WorkOrderEntity over the m:1 relation they have, using the relation between the fields: WorkOrderRouting.WorkOrderId - WorkOrder.WorkOrderId + public virtual IEntityRelation WorkOrderEntityUsingWorkOrderId + { + get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "WorkOrder", false, new[] { WorkOrderFields.WorkOrderId, WorkOrderRoutingFields.WorkOrderId }); } + } + + } + + /// Static class which is used for providing relationship instances which are re-used internally for syncing + internal static class StaticWorkOrderRoutingRelations + { + internal static readonly IEntityRelation LocationEntityUsingLocationIdStatic = new WorkOrderRoutingRelations().LocationEntityUsingLocationId; + internal static readonly IEntityRelation WorkOrderEntityUsingWorkOrderIdStatic = new WorkOrderRoutingRelations().WorkOrderEntityUsingWorkOrderId; + + /// CTor + static StaticWorkOrderRoutingRelations() { } + } +} diff --git a/LLBLGen54/DatabaseGeneric/FactoryClasses/EntityFactories.cs b/LLBLGen54/DatabaseGeneric/FactoryClasses/EntityFactories.cs new file mode 100644 index 00000000..20e83038 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/FactoryClasses/EntityFactories.cs @@ -0,0 +1,999 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +////////////////////////////////////////////////////////////// +using System; +using System.Collections.Generic; +using AdventureWorks.Dal.Adapter.v54.EntityClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.FactoryClasses +{ + // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces + // __LLBLGENPRO_USER_CODE_REGION_END + + /// general base class for the generated factories + [Serializable] + public partial class EntityFactoryBase2 : EntityFactoryCore2 + where TEntity : EntityBase2, IEntity2 + { + private readonly AdventureWorks.Dal.Adapter.v54.EntityType _typeOfEntity; + private readonly bool _isInHierarchy; + + /// CTor + /// Name of the entity. + /// The type of entity. + /// If true, the entity of this factory is in an inheritance hierarchy, false otherwise + public EntityFactoryBase2(string entityName, AdventureWorks.Dal.Adapter.v54.EntityType typeOfEntity, bool isInHierarchy) : base(entityName) + { + _typeOfEntity = typeOfEntity; + _isInHierarchy = isInHierarchy; + } + + /// + public override IEntityFields2 CreateFields() { return ModelInfoProviderSingleton.GetInstance().GetEntityFields(this.ForEntityName); } + + /// + public override IEntity2 CreateEntityFromEntityTypeValue(int entityTypeValue) { return GeneralEntityFactory.Create((AdventureWorks.Dal.Adapter.v54.EntityType)entityTypeValue); } + + /// + public override IRelationCollection CreateHierarchyRelations(string objectAlias) { return ModelInfoProviderSingleton.GetInstance().GetHierarchyRelations(this.ForEntityName, objectAlias); } + + /// + public override IEntityFactory2 GetEntityFactory(object[] fieldValues, Dictionary entityFieldStartIndexesPerEntity) + { + return (IEntityFactory2)ModelInfoProviderSingleton.GetInstance().GetEntityFactory(this.ForEntityName, fieldValues, entityFieldStartIndexesPerEntity) ?? this; + } + + /// + public override IPredicateExpression GetEntityTypeFilter(bool negate, string objectAlias) { return ModelInfoProviderSingleton.GetInstance().GetEntityTypeFilter(this.ForEntityName, objectAlias, negate); } + + /// + public override IEntityCollection2 CreateEntityCollection() { return new EntityCollection(this); } + + /// + public override IEntityFields2 CreateHierarchyFields() + { + return _isInHierarchy ? new EntityFields2(ModelInfoProviderSingleton.GetInstance().GetHierarchyFields(this.ForEntityName), ModelInfoProviderSingleton.GetInstance(), null) : base.CreateHierarchyFields(); + } + } + + /// Factory to create new, empty AddressEntity objects. + [Serializable] + public partial class AddressEntityFactory : EntityFactoryBase2 + { + /// CTor + public AddressEntityFactory() : base("AddressEntity", AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new AddressEntity(fields); } + } + + /// Factory to create new, empty AddressTypeEntity objects. + [Serializable] + public partial class AddressTypeEntityFactory : EntityFactoryBase2 + { + /// CTor + public AddressTypeEntityFactory() : base("AddressTypeEntity", AdventureWorks.Dal.Adapter.v54.EntityType.AddressTypeEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new AddressTypeEntity(fields); } + } + + /// Factory to create new, empty BillOfMaterialEntity objects. + [Serializable] + public partial class BillOfMaterialEntityFactory : EntityFactoryBase2 + { + /// CTor + public BillOfMaterialEntityFactory() : base("BillOfMaterialEntity", AdventureWorks.Dal.Adapter.v54.EntityType.BillOfMaterialEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new BillOfMaterialEntity(fields); } + } + + /// Factory to create new, empty BusinessEntityEntity objects. + [Serializable] + public partial class BusinessEntityEntityFactory : EntityFactoryBase2 + { + /// CTor + public BusinessEntityEntityFactory() : base("BusinessEntityEntity", AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new BusinessEntityEntity(fields); } + } + + /// Factory to create new, empty BusinessEntityAddressEntity objects. + [Serializable] + public partial class BusinessEntityAddressEntityFactory : EntityFactoryBase2 + { + /// CTor + public BusinessEntityAddressEntityFactory() : base("BusinessEntityAddressEntity", AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityAddressEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new BusinessEntityAddressEntity(fields); } + } + + /// Factory to create new, empty BusinessEntityContactEntity objects. + [Serializable] + public partial class BusinessEntityContactEntityFactory : EntityFactoryBase2 + { + /// CTor + public BusinessEntityContactEntityFactory() : base("BusinessEntityContactEntity", AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityContactEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new BusinessEntityContactEntity(fields); } + } + + /// Factory to create new, empty ContactCreditCardEntity objects. + [Serializable] + public partial class ContactCreditCardEntityFactory : EntityFactoryBase2 + { + /// CTor + public ContactCreditCardEntityFactory() : base("ContactCreditCardEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ContactCreditCardEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ContactCreditCardEntity(fields); } + } + + /// Factory to create new, empty ContactTypeEntity objects. + [Serializable] + public partial class ContactTypeEntityFactory : EntityFactoryBase2 + { + /// CTor + public ContactTypeEntityFactory() : base("ContactTypeEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ContactTypeEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ContactTypeEntity(fields); } + } + + /// Factory to create new, empty CountryRegionEntity objects. + [Serializable] + public partial class CountryRegionEntityFactory : EntityFactoryBase2 + { + /// CTor + public CountryRegionEntityFactory() : base("CountryRegionEntity", AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new CountryRegionEntity(fields); } + } + + /// Factory to create new, empty CountryRegionCurrencyEntity objects. + [Serializable] + public partial class CountryRegionCurrencyEntityFactory : EntityFactoryBase2 + { + /// CTor + public CountryRegionCurrencyEntityFactory() : base("CountryRegionCurrencyEntity", AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionCurrencyEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new CountryRegionCurrencyEntity(fields); } + } + + /// Factory to create new, empty CreditCardEntity objects. + [Serializable] + public partial class CreditCardEntityFactory : EntityFactoryBase2 + { + /// CTor + public CreditCardEntityFactory() : base("CreditCardEntity", AdventureWorks.Dal.Adapter.v54.EntityType.CreditCardEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new CreditCardEntity(fields); } + } + + /// Factory to create new, empty CultureEntity objects. + [Serializable] + public partial class CultureEntityFactory : EntityFactoryBase2 + { + /// CTor + public CultureEntityFactory() : base("CultureEntity", AdventureWorks.Dal.Adapter.v54.EntityType.CultureEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new CultureEntity(fields); } + } + + /// Factory to create new, empty CurrencyEntity objects. + [Serializable] + public partial class CurrencyEntityFactory : EntityFactoryBase2 + { + /// CTor + public CurrencyEntityFactory() : base("CurrencyEntity", AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new CurrencyEntity(fields); } + } + + /// Factory to create new, empty CurrencyRateEntity objects. + [Serializable] + public partial class CurrencyRateEntityFactory : EntityFactoryBase2 + { + /// CTor + public CurrencyRateEntityFactory() : base("CurrencyRateEntity", AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyRateEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new CurrencyRateEntity(fields); } + } + + /// Factory to create new, empty CustomerEntity objects. + [Serializable] + public partial class CustomerEntityFactory : EntityFactoryBase2 + { + /// CTor + public CustomerEntityFactory() : base("CustomerEntity", AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new CustomerEntity(fields); } + } + + /// Factory to create new, empty DepartmentEntity objects. + [Serializable] + public partial class DepartmentEntityFactory : EntityFactoryBase2 + { + /// CTor + public DepartmentEntityFactory() : base("DepartmentEntity", AdventureWorks.Dal.Adapter.v54.EntityType.DepartmentEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new DepartmentEntity(fields); } + } + + /// Factory to create new, empty DocumentEntity objects. + [Serializable] + public partial class DocumentEntityFactory : EntityFactoryBase2 + { + /// CTor + public DocumentEntityFactory() : base("DocumentEntity", AdventureWorks.Dal.Adapter.v54.EntityType.DocumentEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new DocumentEntity(fields); } + } + + /// Factory to create new, empty EmailAddressEntity objects. + [Serializable] + public partial class EmailAddressEntityFactory : EntityFactoryBase2 + { + /// CTor + public EmailAddressEntityFactory() : base("EmailAddressEntity", AdventureWorks.Dal.Adapter.v54.EntityType.EmailAddressEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new EmailAddressEntity(fields); } + } + + /// Factory to create new, empty EmployeeEntity objects. + [Serializable] + public partial class EmployeeEntityFactory : EntityFactoryBase2 + { + /// CTor + public EmployeeEntityFactory() : base("EmployeeEntity", AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new EmployeeEntity(fields); } + } + + /// Factory to create new, empty EmployeeDepartmentHistoryEntity objects. + [Serializable] + public partial class EmployeeDepartmentHistoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public EmployeeDepartmentHistoryEntityFactory() : base("EmployeeDepartmentHistoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeDepartmentHistoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new EmployeeDepartmentHistoryEntity(fields); } + } + + /// Factory to create new, empty EmployeePayHistoryEntity objects. + [Serializable] + public partial class EmployeePayHistoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public EmployeePayHistoryEntityFactory() : base("EmployeePayHistoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.EmployeePayHistoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new EmployeePayHistoryEntity(fields); } + } + + /// Factory to create new, empty IllustrationEntity objects. + [Serializable] + public partial class IllustrationEntityFactory : EntityFactoryBase2 + { + /// CTor + public IllustrationEntityFactory() : base("IllustrationEntity", AdventureWorks.Dal.Adapter.v54.EntityType.IllustrationEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new IllustrationEntity(fields); } + } + + /// Factory to create new, empty JobCandidateEntity objects. + [Serializable] + public partial class JobCandidateEntityFactory : EntityFactoryBase2 + { + /// CTor + public JobCandidateEntityFactory() : base("JobCandidateEntity", AdventureWorks.Dal.Adapter.v54.EntityType.JobCandidateEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new JobCandidateEntity(fields); } + } + + /// Factory to create new, empty LocationEntity objects. + [Serializable] + public partial class LocationEntityFactory : EntityFactoryBase2 + { + /// CTor + public LocationEntityFactory() : base("LocationEntity", AdventureWorks.Dal.Adapter.v54.EntityType.LocationEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new LocationEntity(fields); } + } + + /// Factory to create new, empty PasswordEntity objects. + [Serializable] + public partial class PasswordEntityFactory : EntityFactoryBase2 + { + /// CTor + public PasswordEntityFactory() : base("PasswordEntity", AdventureWorks.Dal.Adapter.v54.EntityType.PasswordEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new PasswordEntity(fields); } + } + + /// Factory to create new, empty PersonEntity objects. + [Serializable] + public partial class PersonEntityFactory : EntityFactoryBase2 + { + /// CTor + public PersonEntityFactory() : base("PersonEntity", AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new PersonEntity(fields); } + } + + /// Factory to create new, empty PersonPhoneEntity objects. + [Serializable] + public partial class PersonPhoneEntityFactory : EntityFactoryBase2 + { + /// CTor + public PersonPhoneEntityFactory() : base("PersonPhoneEntity", AdventureWorks.Dal.Adapter.v54.EntityType.PersonPhoneEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new PersonPhoneEntity(fields); } + } + + /// Factory to create new, empty PhoneNumberTypeEntity objects. + [Serializable] + public partial class PhoneNumberTypeEntityFactory : EntityFactoryBase2 + { + /// CTor + public PhoneNumberTypeEntityFactory() : base("PhoneNumberTypeEntity", AdventureWorks.Dal.Adapter.v54.EntityType.PhoneNumberTypeEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new PhoneNumberTypeEntity(fields); } + } + + /// Factory to create new, empty ProductEntity objects. + [Serializable] + public partial class ProductEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductEntityFactory() : base("ProductEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductEntity(fields); } + } + + /// Factory to create new, empty ProductCategoryEntity objects. + [Serializable] + public partial class ProductCategoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductCategoryEntityFactory() : base("ProductCategoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductCategoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductCategoryEntity(fields); } + } + + /// Factory to create new, empty ProductCostHistoryEntity objects. + [Serializable] + public partial class ProductCostHistoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductCostHistoryEntityFactory() : base("ProductCostHistoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductCostHistoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductCostHistoryEntity(fields); } + } + + /// Factory to create new, empty ProductDescriptionEntity objects. + [Serializable] + public partial class ProductDescriptionEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductDescriptionEntityFactory() : base("ProductDescriptionEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductDescriptionEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductDescriptionEntity(fields); } + } + + /// Factory to create new, empty ProductDocumentEntity objects. + [Serializable] + public partial class ProductDocumentEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductDocumentEntityFactory() : base("ProductDocumentEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductDocumentEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductDocumentEntity(fields); } + } + + /// Factory to create new, empty ProductInventoryEntity objects. + [Serializable] + public partial class ProductInventoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductInventoryEntityFactory() : base("ProductInventoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductInventoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductInventoryEntity(fields); } + } + + /// Factory to create new, empty ProductListPriceHistoryEntity objects. + [Serializable] + public partial class ProductListPriceHistoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductListPriceHistoryEntityFactory() : base("ProductListPriceHistoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductListPriceHistoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductListPriceHistoryEntity(fields); } + } + + /// Factory to create new, empty ProductModelEntity objects. + [Serializable] + public partial class ProductModelEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductModelEntityFactory() : base("ProductModelEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductModelEntity(fields); } + } + + /// Factory to create new, empty ProductModelIllustrationEntity objects. + [Serializable] + public partial class ProductModelIllustrationEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductModelIllustrationEntityFactory() : base("ProductModelIllustrationEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelIllustrationEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductModelIllustrationEntity(fields); } + } + + /// Factory to create new, empty ProductModelProductDescriptionCultureEntity objects. + [Serializable] + public partial class ProductModelProductDescriptionCultureEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductModelProductDescriptionCultureEntityFactory() : base("ProductModelProductDescriptionCultureEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelProductDescriptionCultureEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductModelProductDescriptionCultureEntity(fields); } + } + + /// Factory to create new, empty ProductPhotoEntity objects. + [Serializable] + public partial class ProductPhotoEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductPhotoEntityFactory() : base("ProductPhotoEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductPhotoEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductPhotoEntity(fields); } + } + + /// Factory to create new, empty ProductProductPhotoEntity objects. + [Serializable] + public partial class ProductProductPhotoEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductProductPhotoEntityFactory() : base("ProductProductPhotoEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductProductPhotoEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductProductPhotoEntity(fields); } + } + + /// Factory to create new, empty ProductReviewEntity objects. + [Serializable] + public partial class ProductReviewEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductReviewEntityFactory() : base("ProductReviewEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductReviewEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductReviewEntity(fields); } + } + + /// Factory to create new, empty ProductSubcategoryEntity objects. + [Serializable] + public partial class ProductSubcategoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductSubcategoryEntityFactory() : base("ProductSubcategoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductSubcategoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductSubcategoryEntity(fields); } + } + + /// Factory to create new, empty ProductVendorEntity objects. + [Serializable] + public partial class ProductVendorEntityFactory : EntityFactoryBase2 + { + /// CTor + public ProductVendorEntityFactory() : base("ProductVendorEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ProductVendorEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ProductVendorEntity(fields); } + } + + /// Factory to create new, empty PurchaseOrderDetailEntity objects. + [Serializable] + public partial class PurchaseOrderDetailEntityFactory : EntityFactoryBase2 + { + /// CTor + public PurchaseOrderDetailEntityFactory() : base("PurchaseOrderDetailEntity", AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderDetailEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new PurchaseOrderDetailEntity(fields); } + } + + /// Factory to create new, empty PurchaseOrderHeaderEntity objects. + [Serializable] + public partial class PurchaseOrderHeaderEntityFactory : EntityFactoryBase2 + { + /// CTor + public PurchaseOrderHeaderEntityFactory() : base("PurchaseOrderHeaderEntity", AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new PurchaseOrderHeaderEntity(fields); } + } + + /// Factory to create new, empty SalesOrderDetailEntity objects. + [Serializable] + public partial class SalesOrderDetailEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesOrderDetailEntityFactory() : base("SalesOrderDetailEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderDetailEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesOrderDetailEntity(fields); } + } + + /// Factory to create new, empty SalesOrderHeaderEntity objects. + [Serializable] + public partial class SalesOrderHeaderEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesOrderHeaderEntityFactory() : base("SalesOrderHeaderEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesOrderHeaderEntity(fields); } + } + + /// Factory to create new, empty SalesOrderHeaderSalesReasonEntity objects. + [Serializable] + public partial class SalesOrderHeaderSalesReasonEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesOrderHeaderSalesReasonEntityFactory() : base("SalesOrderHeaderSalesReasonEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderSalesReasonEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesOrderHeaderSalesReasonEntity(fields); } + } + + /// Factory to create new, empty SalesPersonEntity objects. + [Serializable] + public partial class SalesPersonEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesPersonEntityFactory() : base("SalesPersonEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesPersonEntity(fields); } + } + + /// Factory to create new, empty SalesPersonQuotaHistoryEntity objects. + [Serializable] + public partial class SalesPersonQuotaHistoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesPersonQuotaHistoryEntityFactory() : base("SalesPersonQuotaHistoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonQuotaHistoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesPersonQuotaHistoryEntity(fields); } + } + + /// Factory to create new, empty SalesReasonEntity objects. + [Serializable] + public partial class SalesReasonEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesReasonEntityFactory() : base("SalesReasonEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesReasonEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesReasonEntity(fields); } + } + + /// Factory to create new, empty SalesTaxRateEntity objects. + [Serializable] + public partial class SalesTaxRateEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesTaxRateEntityFactory() : base("SalesTaxRateEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesTaxRateEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesTaxRateEntity(fields); } + } + + /// Factory to create new, empty SalesTerritoryEntity objects. + [Serializable] + public partial class SalesTerritoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesTerritoryEntityFactory() : base("SalesTerritoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesTerritoryEntity(fields); } + } + + /// Factory to create new, empty SalesTerritoryHistoryEntity objects. + [Serializable] + public partial class SalesTerritoryHistoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public SalesTerritoryHistoryEntityFactory() : base("SalesTerritoryHistoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryHistoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SalesTerritoryHistoryEntity(fields); } + } + + /// Factory to create new, empty ScrapReasonEntity objects. + [Serializable] + public partial class ScrapReasonEntityFactory : EntityFactoryBase2 + { + /// CTor + public ScrapReasonEntityFactory() : base("ScrapReasonEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ScrapReasonEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ScrapReasonEntity(fields); } + } + + /// Factory to create new, empty ShiftEntity objects. + [Serializable] + public partial class ShiftEntityFactory : EntityFactoryBase2 + { + /// CTor + public ShiftEntityFactory() : base("ShiftEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ShiftEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ShiftEntity(fields); } + } + + /// Factory to create new, empty ShipMethodEntity objects. + [Serializable] + public partial class ShipMethodEntityFactory : EntityFactoryBase2 + { + /// CTor + public ShipMethodEntityFactory() : base("ShipMethodEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ShipMethodEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ShipMethodEntity(fields); } + } + + /// Factory to create new, empty ShoppingCartItemEntity objects. + [Serializable] + public partial class ShoppingCartItemEntityFactory : EntityFactoryBase2 + { + /// CTor + public ShoppingCartItemEntityFactory() : base("ShoppingCartItemEntity", AdventureWorks.Dal.Adapter.v54.EntityType.ShoppingCartItemEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new ShoppingCartItemEntity(fields); } + } + + /// Factory to create new, empty SpecialOfferEntity objects. + [Serializable] + public partial class SpecialOfferEntityFactory : EntityFactoryBase2 + { + /// CTor + public SpecialOfferEntityFactory() : base("SpecialOfferEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SpecialOfferEntity(fields); } + } + + /// Factory to create new, empty SpecialOfferProductEntity objects. + [Serializable] + public partial class SpecialOfferProductEntityFactory : EntityFactoryBase2 + { + /// CTor + public SpecialOfferProductEntityFactory() : base("SpecialOfferProductEntity", AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferProductEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new SpecialOfferProductEntity(fields); } + } + + /// Factory to create new, empty StateProvinceEntity objects. + [Serializable] + public partial class StateProvinceEntityFactory : EntityFactoryBase2 + { + /// CTor + public StateProvinceEntityFactory() : base("StateProvinceEntity", AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new StateProvinceEntity(fields); } + } + + /// Factory to create new, empty StoreEntity objects. + [Serializable] + public partial class StoreEntityFactory : EntityFactoryBase2 + { + /// CTor + public StoreEntityFactory() : base("StoreEntity", AdventureWorks.Dal.Adapter.v54.EntityType.StoreEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new StoreEntity(fields); } + } + + /// Factory to create new, empty TransactionHistoryEntity objects. + [Serializable] + public partial class TransactionHistoryEntityFactory : EntityFactoryBase2 + { + /// CTor + public TransactionHistoryEntityFactory() : base("TransactionHistoryEntity", AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TransactionHistoryEntity(fields); } + } + + /// Factory to create new, empty TransactionHistoryArchiveEntity objects. + [Serializable] + public partial class TransactionHistoryArchiveEntityFactory : EntityFactoryBase2 + { + /// CTor + public TransactionHistoryArchiveEntityFactory() : base("TransactionHistoryArchiveEntity", AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryArchiveEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TransactionHistoryArchiveEntity(fields); } + } + + /// Factory to create new, empty UnitMeasureEntity objects. + [Serializable] + public partial class UnitMeasureEntityFactory : EntityFactoryBase2 + { + /// CTor + public UnitMeasureEntityFactory() : base("UnitMeasureEntity", AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new UnitMeasureEntity(fields); } + } + + /// Factory to create new, empty VendorEntity objects. + [Serializable] + public partial class VendorEntityFactory : EntityFactoryBase2 + { + /// CTor + public VendorEntityFactory() : base("VendorEntity", AdventureWorks.Dal.Adapter.v54.EntityType.VendorEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new VendorEntity(fields); } + } + + /// Factory to create new, empty WorkOrderEntity objects. + [Serializable] + public partial class WorkOrderEntityFactory : EntityFactoryBase2 + { + /// CTor + public WorkOrderEntityFactory() : base("WorkOrderEntity", AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new WorkOrderEntity(fields); } + } + + /// Factory to create new, empty WorkOrderRoutingEntity objects. + [Serializable] + public partial class WorkOrderRoutingEntityFactory : EntityFactoryBase2 + { + /// CTor + public WorkOrderRoutingEntityFactory() : base("WorkOrderRoutingEntity", AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderRoutingEntity, false) { } + /// + protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new WorkOrderRoutingEntity(fields); } + } + + /// Factory to create new, empty Entity objects based on the entity type specified. Uses entity specific factory objects + [Serializable] + public partial class GeneralEntityFactory + { + /// Creates a new, empty Entity object of the type specified + /// The entity type to create. + /// A new, empty Entity object. + public static IEntity2 Create(AdventureWorks.Dal.Adapter.v54.EntityType entityTypeToCreate) + { + var factoryToUse = EntityFactoryFactory.GetFactory(entityTypeToCreate); + IEntity2 toReturn = null; + if(factoryToUse != null) + { + toReturn = factoryToUse.Create(); + } + return toReturn; + } + } + + /// Class which is used to obtain the entity factory based on the .NET type of the entity. + [Serializable] + public static class EntityFactoryFactory + { + private static Dictionary _factoryPerType = new Dictionary(); + + /// Initializes the class. + static EntityFactoryFactory() + { + foreach(int entityTypeValue in Enum.GetValues(typeof(AdventureWorks.Dal.Adapter.v54.EntityType))) + { + var factory = GetFactory((AdventureWorks.Dal.Adapter.v54.EntityType)entityTypeValue); + _factoryPerType.Add(factory.Create().GetType(), factory); + } + } + + /// Gets the factory of the entity with the .NET type specified + /// The type of entity. + /// factory to use or null if not found + public static IEntityFactory2 GetFactory(Type typeOfEntity) { return _factoryPerType.GetValue(typeOfEntity); } + + /// Gets the factory of the entity with the AdventureWorks.Dal.Adapter.v54.EntityType specified + /// The type of entity. + /// factory to use or null if not found + public static IEntityFactory2 GetFactory(AdventureWorks.Dal.Adapter.v54.EntityType typeOfEntity) + { + switch(typeOfEntity) + { + case AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity: + return new AddressEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.AddressTypeEntity: + return new AddressTypeEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.BillOfMaterialEntity: + return new BillOfMaterialEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity: + return new BusinessEntityEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityAddressEntity: + return new BusinessEntityAddressEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityContactEntity: + return new BusinessEntityContactEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ContactCreditCardEntity: + return new ContactCreditCardEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ContactTypeEntity: + return new ContactTypeEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionEntity: + return new CountryRegionEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionCurrencyEntity: + return new CountryRegionCurrencyEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.CreditCardEntity: + return new CreditCardEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.CultureEntity: + return new CultureEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyEntity: + return new CurrencyEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyRateEntity: + return new CurrencyRateEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity: + return new CustomerEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.DepartmentEntity: + return new DepartmentEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.DocumentEntity: + return new DocumentEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.EmailAddressEntity: + return new EmailAddressEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity: + return new EmployeeEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeDepartmentHistoryEntity: + return new EmployeeDepartmentHistoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.EmployeePayHistoryEntity: + return new EmployeePayHistoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.IllustrationEntity: + return new IllustrationEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.JobCandidateEntity: + return new JobCandidateEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.LocationEntity: + return new LocationEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.PasswordEntity: + return new PasswordEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity: + return new PersonEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.PersonPhoneEntity: + return new PersonPhoneEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.PhoneNumberTypeEntity: + return new PhoneNumberTypeEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity: + return new ProductEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductCategoryEntity: + return new ProductCategoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductCostHistoryEntity: + return new ProductCostHistoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductDescriptionEntity: + return new ProductDescriptionEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductDocumentEntity: + return new ProductDocumentEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductInventoryEntity: + return new ProductInventoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductListPriceHistoryEntity: + return new ProductListPriceHistoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelEntity: + return new ProductModelEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelIllustrationEntity: + return new ProductModelIllustrationEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelProductDescriptionCultureEntity: + return new ProductModelProductDescriptionCultureEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductPhotoEntity: + return new ProductPhotoEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductProductPhotoEntity: + return new ProductProductPhotoEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductReviewEntity: + return new ProductReviewEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductSubcategoryEntity: + return new ProductSubcategoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductVendorEntity: + return new ProductVendorEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderDetailEntity: + return new PurchaseOrderDetailEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity: + return new PurchaseOrderHeaderEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderDetailEntity: + return new SalesOrderDetailEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity: + return new SalesOrderHeaderEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderSalesReasonEntity: + return new SalesOrderHeaderSalesReasonEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity: + return new SalesPersonEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonQuotaHistoryEntity: + return new SalesPersonQuotaHistoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesReasonEntity: + return new SalesReasonEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesTaxRateEntity: + return new SalesTaxRateEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity: + return new SalesTerritoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryHistoryEntity: + return new SalesTerritoryHistoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ScrapReasonEntity: + return new ScrapReasonEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ShiftEntity: + return new ShiftEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ShipMethodEntity: + return new ShipMethodEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.ShoppingCartItemEntity: + return new ShoppingCartItemEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferEntity: + return new SpecialOfferEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferProductEntity: + return new SpecialOfferProductEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity: + return new StateProvinceEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.StoreEntity: + return new StoreEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryEntity: + return new TransactionHistoryEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryArchiveEntity: + return new TransactionHistoryArchiveEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity: + return new UnitMeasureEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.VendorEntity: + return new VendorEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderEntity: + return new WorkOrderEntityFactory(); + case AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderRoutingEntity: + return new WorkOrderRoutingEntityFactory(); + default: + return null; + } + } + } + + /// Element creator for creating project elements from somewhere else, like inside Linq providers. + public class ElementCreator : ElementCreatorBase, IElementCreator2 + { + /// Gets the factory of the Entity type with the AdventureWorks.Dal.Adapter.v54.EntityType value passed in + /// The entity type value. + /// the entity factory of the entity type or null if not found + public IEntityFactory2 GetFactory(int entityTypeValue) { return (IEntityFactory2)this.GetFactoryImpl(entityTypeValue); } + + /// Gets the factory of the Entity type with the .NET type passed in + /// The type of entity. + /// the entity factory of the entity type or null if not found + public IEntityFactory2 GetFactory(Type typeOfEntity) { return (IEntityFactory2)this.GetFactoryImpl(typeOfEntity); } + + /// Creates a new resultset fields object with the number of field slots reserved as specified + /// The number of fields. + /// ready to use resultsetfields object + public IEntityFields2 CreateResultsetFields(int numberOfFields) { return new ResultsetFields(numberOfFields); } + + /// + public override IInheritanceInfoProvider ObtainInheritanceInfoProviderInstance() { return ModelInfoProviderSingleton.GetInstance(); } + + /// + public override IEntityFieldsCore GetTypedViewFields(int typedViewTypeEnumValue) { return ModelInfoProviderSingleton.GetInstance().GetTypedViewFields(((TypedViewType)typedViewTypeEnumValue).ToString()); } + + /// + public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand) { return new DynamicRelation(leftOperand); } + + /// + public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, IPredicate onClause) + { + return new DynamicRelation(leftOperand, joinType, rightOperand, onClause); + } + + /// + public override IDynamicRelation CreateDynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, string aliasLeftOperand, IPredicate onClause) + { + return new DynamicRelation(leftOperand, joinType, rightOperand, aliasLeftOperand, onClause); + } + + /// + public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, string rightOperandEntityName, string aliasRightOperand, IPredicate onClause) + { + return new DynamicRelation(leftOperand, joinType, (AdventureWorks.Dal.Adapter.v54.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v54.EntityType), rightOperandEntityName, false), aliasRightOperand, onClause); + } + + /// + public override IDynamicRelation CreateDynamicRelation(string leftOperandEntityName, JoinHint joinType, string rightOperandEntityName, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) + { + return new DynamicRelation((AdventureWorks.Dal.Adapter.v54.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v54.EntityType), leftOperandEntityName, false), joinType, (AdventureWorks.Dal.Adapter.v54.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v54.EntityType), rightOperandEntityName, false), aliasLeftOperand, aliasRightOperand, onClause); + } + + /// + public override IDynamicRelation CreateDynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, string rightOperandEntityName, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) + { + return new DynamicRelation(leftOperand, joinType, (AdventureWorks.Dal.Adapter.v54.EntityType)Enum.Parse(typeof(AdventureWorks.Dal.Adapter.v54.EntityType), rightOperandEntityName, false), aliasLeftOperand, aliasRightOperand, onClause); + } + + /// + protected override IEntityFactoryCore GetFactoryImpl(int entityTypeValue) { return EntityFactoryFactory.GetFactory((AdventureWorks.Dal.Adapter.v54.EntityType)entityTypeValue); } + + /// + protected override IEntityFactoryCore GetFactoryImpl(Type typeOfEntity) { return EntityFactoryFactory.GetFactory(typeOfEntity); } + + } +} diff --git a/LLBLGen54/DatabaseGeneric/FactoryClasses/QueryFactory.cs b/LLBLGen54/DatabaseGeneric/FactoryClasses/QueryFactory.cs new file mode 100644 index 00000000..0fc2785f --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/FactoryClasses/QueryFactory.cs @@ -0,0 +1,235 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +////////////////////////////////////////////////////////////// +using System; +using System.Linq; +using AdventureWorks.Dal.Adapter.v54.EntityClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using SD.LLBLGen.Pro.ORMSupportClasses; +using SD.LLBLGen.Pro.QuerySpec.AdapterSpecific; +using SD.LLBLGen.Pro.QuerySpec; + +namespace AdventureWorks.Dal.Adapter.v54.FactoryClasses +{ + /// Factory class to produce DynamicQuery instances and EntityQuery instances + public partial class QueryFactory : QueryFactoryBase2 + { + /// Creates and returns a new EntityQuery for the Address entity + public EntityQuery Address { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the AddressType entity + public EntityQuery AddressType { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the BillOfMaterial entity + public EntityQuery BillOfMaterial { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the BusinessEntity entity + public EntityQuery BusinessEntity { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the BusinessEntityAddress entity + public EntityQuery BusinessEntityAddress { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the BusinessEntityContact entity + public EntityQuery BusinessEntityContact { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ContactCreditCard entity + public EntityQuery ContactCreditCard { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ContactType entity + public EntityQuery ContactType { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the CountryRegion entity + public EntityQuery CountryRegion { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the CountryRegionCurrency entity + public EntityQuery CountryRegionCurrency { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the CreditCard entity + public EntityQuery CreditCard { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Culture entity + public EntityQuery Culture { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Currency entity + public EntityQuery Currency { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the CurrencyRate entity + public EntityQuery CurrencyRate { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Customer entity + public EntityQuery Customer { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Department entity + public EntityQuery Department { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Document entity + public EntityQuery Document { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the EmailAddress entity + public EntityQuery EmailAddress { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Employee entity + public EntityQuery Employee { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the EmployeeDepartmentHistory entity + public EntityQuery EmployeeDepartmentHistory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the EmployeePayHistory entity + public EntityQuery EmployeePayHistory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Illustration entity + public EntityQuery Illustration { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the JobCandidate entity + public EntityQuery JobCandidate { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Location entity + public EntityQuery Location { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Password entity + public EntityQuery Password { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Person entity + public EntityQuery Person { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the PersonPhone entity + public EntityQuery PersonPhone { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the PhoneNumberType entity + public EntityQuery PhoneNumberType { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Product entity + public EntityQuery Product { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductCategory entity + public EntityQuery ProductCategory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductCostHistory entity + public EntityQuery ProductCostHistory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductDescription entity + public EntityQuery ProductDescription { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductDocument entity + public EntityQuery ProductDocument { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductInventory entity + public EntityQuery ProductInventory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductListPriceHistory entity + public EntityQuery ProductListPriceHistory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductModel entity + public EntityQuery ProductModel { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductModelIllustration entity + public EntityQuery ProductModelIllustration { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductModelProductDescriptionCulture entity + public EntityQuery ProductModelProductDescriptionCulture { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductPhoto entity + public EntityQuery ProductPhoto { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductProductPhoto entity + public EntityQuery ProductProductPhoto { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductReview entity + public EntityQuery ProductReview { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductSubcategory entity + public EntityQuery ProductSubcategory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ProductVendor entity + public EntityQuery ProductVendor { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the PurchaseOrderDetail entity + public EntityQuery PurchaseOrderDetail { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the PurchaseOrderHeader entity + public EntityQuery PurchaseOrderHeader { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesOrderDetail entity + public EntityQuery SalesOrderDetail { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesOrderHeader entity + public EntityQuery SalesOrderHeader { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesOrderHeaderSalesReason entity + public EntityQuery SalesOrderHeaderSalesReason { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesPerson entity + public EntityQuery SalesPerson { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesPersonQuotaHistory entity + public EntityQuery SalesPersonQuotaHistory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesReason entity + public EntityQuery SalesReason { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesTaxRate entity + public EntityQuery SalesTaxRate { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesTerritory entity + public EntityQuery SalesTerritory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SalesTerritoryHistory entity + public EntityQuery SalesTerritoryHistory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ScrapReason entity + public EntityQuery ScrapReason { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Shift entity + public EntityQuery Shift { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ShipMethod entity + public EntityQuery ShipMethod { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the ShoppingCartItem entity + public EntityQuery ShoppingCartItem { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SpecialOffer entity + public EntityQuery SpecialOffer { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the SpecialOfferProduct entity + public EntityQuery SpecialOfferProduct { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the StateProvince entity + public EntityQuery StateProvince { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Store entity + public EntityQuery Store { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the TransactionHistory entity + public EntityQuery TransactionHistory { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the TransactionHistoryArchive entity + public EntityQuery TransactionHistoryArchive { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the UnitMeasure entity + public EntityQuery UnitMeasure { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the Vendor entity + public EntityQuery Vendor { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the WorkOrder entity + public EntityQuery WorkOrder { get { return Create(); } } + + /// Creates and returns a new EntityQuery for the WorkOrderRouting entity + public EntityQuery WorkOrderRouting { get { return Create(); } } + + /// + protected override IElementCreatorCore CreateElementCreator() { return new ElementCreator(); } + + /// Creates and returns the query to fetch the typed view SohQuerySpecPoco + public DynamicQuery SohQuerySpecPoco + { + get { return this.Create().Select(); } + } + + } +} \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/RelationClasses/DynamicRelation.cs b/LLBLGen54/DatabaseGeneric/HelperClasses/DynamicRelation.cs similarity index 84% rename from LLBLGen53/DatabaseGeneric/RelationClasses/DynamicRelation.cs rename to LLBLGen54/DatabaseGeneric/HelperClasses/DynamicRelation.cs index 8239a542..7094670d 100644 --- a/LLBLGen53/DatabaseGeneric/RelationClasses/DynamicRelation.cs +++ b/LLBLGen54/DatabaseGeneric/HelperClasses/DynamicRelation.cs @@ -1,28 +1,24 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. ////////////////////////////////////////////////////////////// using System; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; using SD.LLBLGen.Pro.ORMSupportClasses; -namespace AdventureWorks.Dal.Adapter.v53.RelationClasses +namespace AdventureWorks.Dal.Adapter.v54.RelationClasses { /// Class to define dynamic relations for queries. - /// Dynamic relations are only supported in ansi joins so if you're using Oracle on 8i, you can't use Dynamic Relations. [Serializable] public class DynamicRelation : DynamicRelationBase { /// Initializes a new instance of the class. /// The left operand, which can only be a derived table definition. No join will take place. - /// If a DynamicRelation is created with this CTor, it has to be the only one. It will be ignored if there are more - /// relations in the relation collection. + /// If a DynamicRelation is created with this CTor, it has to be the only one. It will be ignored if there are more relations in the relation collection. public DynamicRelation(DerivedTableDefinition leftOperand) { this.InitClass(JoinHint.None, string.Empty, string.Empty, null, leftOperand, null); @@ -55,7 +51,7 @@ public DynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, DerivedT /// The right operand which is an entity type. /// 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. /// The on clause for the join. - public DynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, AdventureWorks.Dal.Adapter.v53.EntityType rightOperand, string aliasRightOperand, IPredicate onClause) + public DynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, AdventureWorks.Dal.Adapter.v54.EntityType rightOperand, string aliasRightOperand, IPredicate onClause) { this.InitClass(joinType, string.Empty, aliasRightOperand, onClause, leftOperand, GeneralEntityFactory.Create(rightOperand)); } @@ -67,7 +63,7 @@ public DynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, Ad /// 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. /// 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. /// The on clause for the join. - public DynamicRelation(AdventureWorks.Dal.Adapter.v53.EntityType leftOperand, JoinHint joinType, AdventureWorks.Dal.Adapter.v53.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) + public DynamicRelation(AdventureWorks.Dal.Adapter.v54.EntityType leftOperand, JoinHint joinType, AdventureWorks.Dal.Adapter.v54.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) { this.InitClass(joinType, aliasLeftOperand, aliasRightOperand, onClause, GeneralEntityFactory.Create(leftOperand), GeneralEntityFactory.Create(rightOperand)); } @@ -79,17 +75,12 @@ public DynamicRelation(AdventureWorks.Dal.Adapter.v53.EntityType leftOperand, Jo /// 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. /// 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. /// The on clause for the join. - public DynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, AdventureWorks.Dal.Adapter.v53.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) + public DynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, AdventureWorks.Dal.Adapter.v54.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) { this.InitClass(joinType, aliasLeftOperand, aliasRightOperand, onClause, leftOperand, GeneralEntityFactory.Create(rightOperand)); } - - /// Gets the inheritance provider for inheritance info retrieval for entity operands - /// The inheritance info provider - protected override IInheritanceInfoProvider GetInheritanceProvider() - { - return InheritanceInfoProviderSingleton.GetInstance(); - } + /// + protected override IInheritanceInfoProvider GetInheritanceProvider() { return ModelInfoProviderSingleton.GetInstance(); } } } \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/HelperClasses/EntityCollection.cs b/LLBLGen54/DatabaseGeneric/HelperClasses/EntityCollection.cs similarity index 58% rename from LLBLGen53/DatabaseGeneric/HelperClasses/EntityCollection.cs rename to LLBLGen54/DatabaseGeneric/HelperClasses/EntityCollection.cs index 322eb32b..63971c28 100644 --- a/LLBLGen53/DatabaseGeneric/HelperClasses/EntityCollection.cs +++ b/LLBLGen54/DatabaseGeneric/HelperClasses/EntityCollection.cs @@ -1,104 +1,63 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. // Templates version: ////////////////////////////////////////////////////////////// using System; -using System.Collections; using System.Collections.Generic; -using System.ComponentModel; -#if !CF using System.Runtime.Serialization; -#endif -using System.Xml.Serialization; -using System.Xml; -using System.Xml.Schema; -using AdventureWorks.Dal.Adapter.v53.EntityClasses; using SD.LLBLGen.Pro.ORMSupportClasses; -namespace AdventureWorks.Dal.Adapter.v53.HelperClasses +namespace AdventureWorks.Dal.Adapter.v54.HelperClasses { // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces // __LLBLGENPRO_USER_CODE_REGION_END - /// EntityCollection implementation which is used for backwards compatibility and for design time databinding. This EntityCollection is an EntityCollection(Of EntityBase2) - /// + /// EntityCollection implementation which is used for backwards compatibility and for design time databinding. [Serializable] public partial class EntityCollection : EntityCollectionNonGeneric { /// CTor - public EntityCollection():base() - { - } + public EntityCollection() : base() { } /// CTor /// The entity factory object to use when this collection has to construct new objects. - public EntityCollection(IEntityFactory2 entityFactoryToUse):base(entityFactoryToUse) - { - } + public EntityCollection(IEntityFactory2 entityFactoryToUse) : base(entityFactoryToUse) { } /// Protected CTor for deserialization /// /// - protected EntityCollection(SerializationInfo info, StreamingContext context) : base(info, context) - { - } - - #region Custom EntityCollection code - + protected EntityCollection(SerializationInfo info, StreamingContext context) : base(info, context) { } + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCollectionCode // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included Code - - #endregion } - /// Generic entity collection class which replaces the original generated, non strongly typed EntityCollection variant. - /// Use the generated, non-generic EntityCollection class for design-time databinding for winforms, as winforms doesn't support - /// design time databinding (runtime-databinding works fine) with generic classes [Serializable] public partial class EntityCollection : EntityCollectionBase2 where TEntity : EntityBase2, IEntity2 { - /// CTor which determines the factory to use from the generic type argument, unless TEntity is an abstract entity. If possible use the ctor which accepts a factory - public EntityCollection() : base( (IEntityFactory2)null ) - { - } + /// CTor which determines the factory to use from the generic type argument, unless TEntity is an abstract entity. + public EntityCollection() : base((IEntityFactory2)null) { } /// CTor /// The entity factory object to use when this collection has to construct new objects. - public EntityCollection( IEntityFactory2 entityFactoryToUse) : base( entityFactoryToUse ) - { - } + public EntityCollection(IEntityFactory2 entityFactoryToUse) : base(entityFactoryToUse) { } /// CTor /// initial contents for this collection - public EntityCollection(IEnumerable initialContents ) : base( initialContents ) - { - } + public EntityCollection(IEnumerable initialContents ) : base(initialContents) { } /// Protected CTor for deserialization /// /// - protected EntityCollection( SerializationInfo info, StreamingContext context) : base( info, context ) - { - } - - #region Custom EntityCollection code - + protected EntityCollection(SerializationInfo info, StreamingContext context) : base(info, context) { } + // __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCollectionCodeGeneric // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included Code - - #endregion } } diff --git a/LLBLGen54/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs b/LLBLGen54/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs new file mode 100644 index 00000000..5618972d --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/HelperClasses/FieldCreationClasses.cs @@ -0,0 +1,1454 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +////////////////////////////////////////////////////////////// +using System; +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.HelperClasses +{ + /// Field Creation Class for entity AddressEntity + public partial class AddressFields + { + /// Creates a new AddressEntity.AddressId field instance + public static EntityField2 AddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.AddressId); }} + /// Creates a new AddressEntity.AddressLine1 field instance + public static EntityField2 AddressLine1 { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.AddressLine1); }} + /// Creates a new AddressEntity.AddressLine2 field instance + public static EntityField2 AddressLine2 { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.AddressLine2); }} + /// Creates a new AddressEntity.City field instance + public static EntityField2 City { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.City); }} + /// Creates a new AddressEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.ModifiedDate); }} + /// Creates a new AddressEntity.PostalCode field instance + public static EntityField2 PostalCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.PostalCode); }} + /// Creates a new AddressEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.Rowguid); }} + /// Creates a new AddressEntity.SpatialLocation field instance + public static EntityField2 SpatialLocation { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.SpatialLocation); }} + /// Creates a new AddressEntity.StateProvinceId field instance + public static EntityField2 StateProvinceId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressFieldIndex.StateProvinceId); }} + } + + /// Field Creation Class for entity AddressTypeEntity + public partial class AddressTypeFields + { + /// Creates a new AddressTypeEntity.AddressTypeId field instance + public static EntityField2 AddressTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressTypeFieldIndex.AddressTypeId); }} + /// Creates a new AddressTypeEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressTypeFieldIndex.ModifiedDate); }} + /// Creates a new AddressTypeEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressTypeFieldIndex.Name); }} + /// Creates a new AddressTypeEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(AddressTypeFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity BillOfMaterialEntity + public partial class BillOfMaterialFields + { + /// Creates a new BillOfMaterialEntity.BillOfMaterialsId field instance + public static EntityField2 BillOfMaterialsId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.BillOfMaterialsId); }} + /// Creates a new BillOfMaterialEntity.Bomlevel field instance + public static EntityField2 Bomlevel { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.Bomlevel); }} + /// Creates a new BillOfMaterialEntity.ComponentId field instance + public static EntityField2 ComponentId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.ComponentId); }} + /// Creates a new BillOfMaterialEntity.EndDate field instance + public static EntityField2 EndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.EndDate); }} + /// Creates a new BillOfMaterialEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.ModifiedDate); }} + /// Creates a new BillOfMaterialEntity.PerAssemblyQty field instance + public static EntityField2 PerAssemblyQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.PerAssemblyQty); }} + /// Creates a new BillOfMaterialEntity.ProductAssemblyId field instance + public static EntityField2 ProductAssemblyId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.ProductAssemblyId); }} + /// Creates a new BillOfMaterialEntity.StartDate field instance + public static EntityField2 StartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.StartDate); }} + /// Creates a new BillOfMaterialEntity.UnitMeasureCode field instance + public static EntityField2 UnitMeasureCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BillOfMaterialFieldIndex.UnitMeasureCode); }} + } + + /// Field Creation Class for entity BusinessEntityEntity + public partial class BusinessEntityFields + { + /// Creates a new BusinessEntityEntity.BusinessEntityId field instance + public static EntityField2 BusinessEntityId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityFieldIndex.BusinessEntityId); }} + /// Creates a new BusinessEntityEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityFieldIndex.ModifiedDate); }} + /// Creates a new BusinessEntityEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity BusinessEntityAddressEntity + public partial class BusinessEntityAddressFields + { + /// Creates a new BusinessEntityAddressEntity.AddressId field instance + public static EntityField2 AddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityAddressFieldIndex.AddressId); }} + /// Creates a new BusinessEntityAddressEntity.AddressTypeId field instance + public static EntityField2 AddressTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityAddressFieldIndex.AddressTypeId); }} + /// Creates a new BusinessEntityAddressEntity.BusinessEntityId field instance + public static EntityField2 BusinessEntityId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityAddressFieldIndex.BusinessEntityId); }} + /// Creates a new BusinessEntityAddressEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityAddressFieldIndex.ModifiedDate); }} + /// Creates a new BusinessEntityAddressEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityAddressFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity BusinessEntityContactEntity + public partial class BusinessEntityContactFields + { + /// Creates a new BusinessEntityContactEntity.BusinessEntityId field instance + public static EntityField2 BusinessEntityId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityContactFieldIndex.BusinessEntityId); }} + /// Creates a new BusinessEntityContactEntity.ContactTypeId field instance + public static EntityField2 ContactTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityContactFieldIndex.ContactTypeId); }} + /// Creates a new BusinessEntityContactEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityContactFieldIndex.ModifiedDate); }} + /// Creates a new BusinessEntityContactEntity.PersonId field instance + public static EntityField2 PersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityContactFieldIndex.PersonId); }} + /// Creates a new BusinessEntityContactEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(BusinessEntityContactFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity ContactCreditCardEntity + public partial class ContactCreditCardFields + { + /// Creates a new ContactCreditCardEntity.ContactId field instance + public static EntityField2 ContactId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ContactCreditCardFieldIndex.ContactId); }} + /// Creates a new ContactCreditCardEntity.CreditCardId field instance + public static EntityField2 CreditCardId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ContactCreditCardFieldIndex.CreditCardId); }} + /// Creates a new ContactCreditCardEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ContactCreditCardFieldIndex.ModifiedDate); }} + } + + /// Field Creation Class for entity ContactTypeEntity + public partial class ContactTypeFields + { + /// Creates a new ContactTypeEntity.ContactTypeId field instance + public static EntityField2 ContactTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ContactTypeFieldIndex.ContactTypeId); }} + /// Creates a new ContactTypeEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ContactTypeFieldIndex.ModifiedDate); }} + /// Creates a new ContactTypeEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ContactTypeFieldIndex.Name); }} + } + + /// Field Creation Class for entity CountryRegionEntity + public partial class CountryRegionFields + { + /// Creates a new CountryRegionEntity.CountryRegionCode field instance + public static EntityField2 CountryRegionCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CountryRegionFieldIndex.CountryRegionCode); }} + /// Creates a new CountryRegionEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CountryRegionFieldIndex.ModifiedDate); }} + /// Creates a new CountryRegionEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CountryRegionFieldIndex.Name); }} + } + + /// Field Creation Class for entity CountryRegionCurrencyEntity + public partial class CountryRegionCurrencyFields + { + /// Creates a new CountryRegionCurrencyEntity.CountryRegionCode field instance + public static EntityField2 CountryRegionCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CountryRegionCurrencyFieldIndex.CountryRegionCode); }} + /// Creates a new CountryRegionCurrencyEntity.CurrencyCode field instance + public static EntityField2 CurrencyCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CountryRegionCurrencyFieldIndex.CurrencyCode); }} + /// Creates a new CountryRegionCurrencyEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CountryRegionCurrencyFieldIndex.ModifiedDate); }} + } + + /// Field Creation Class for entity CreditCardEntity + public partial class CreditCardFields + { + /// Creates a new CreditCardEntity.CardNumber field instance + public static EntityField2 CardNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CreditCardFieldIndex.CardNumber); }} + /// Creates a new CreditCardEntity.CardType field instance + public static EntityField2 CardType { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CreditCardFieldIndex.CardType); }} + /// Creates a new CreditCardEntity.CreditCardId field instance + public static EntityField2 CreditCardId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CreditCardFieldIndex.CreditCardId); }} + /// Creates a new CreditCardEntity.ExpMonth field instance + public static EntityField2 ExpMonth { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CreditCardFieldIndex.ExpMonth); }} + /// Creates a new CreditCardEntity.ExpYear field instance + public static EntityField2 ExpYear { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CreditCardFieldIndex.ExpYear); }} + /// Creates a new CreditCardEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CreditCardFieldIndex.ModifiedDate); }} + } + + /// Field Creation Class for entity CultureEntity + public partial class CultureFields + { + /// Creates a new CultureEntity.CultureId field instance + public static EntityField2 CultureId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CultureFieldIndex.CultureId); }} + /// Creates a new CultureEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CultureFieldIndex.ModifiedDate); }} + /// Creates a new CultureEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CultureFieldIndex.Name); }} + } + + /// Field Creation Class for entity CurrencyEntity + public partial class CurrencyFields + { + /// Creates a new CurrencyEntity.CurrencyCode field instance + public static EntityField2 CurrencyCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyFieldIndex.CurrencyCode); }} + /// Creates a new CurrencyEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyFieldIndex.ModifiedDate); }} + /// Creates a new CurrencyEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyFieldIndex.Name); }} + } + + /// Field Creation Class for entity CurrencyRateEntity + public partial class CurrencyRateFields + { + /// Creates a new CurrencyRateEntity.AverageRate field instance + public static EntityField2 AverageRate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyRateFieldIndex.AverageRate); }} + /// Creates a new CurrencyRateEntity.CurrencyRateDate field instance + public static EntityField2 CurrencyRateDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyRateFieldIndex.CurrencyRateDate); }} + /// Creates a new CurrencyRateEntity.CurrencyRateId field instance + public static EntityField2 CurrencyRateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyRateFieldIndex.CurrencyRateId); }} + /// Creates a new CurrencyRateEntity.EndOfDayRate field instance + public static EntityField2 EndOfDayRate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyRateFieldIndex.EndOfDayRate); }} + /// Creates a new CurrencyRateEntity.FromCurrencyCode field instance + public static EntityField2 FromCurrencyCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyRateFieldIndex.FromCurrencyCode); }} + /// Creates a new CurrencyRateEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyRateFieldIndex.ModifiedDate); }} + /// Creates a new CurrencyRateEntity.ToCurrencyCode field instance + public static EntityField2 ToCurrencyCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CurrencyRateFieldIndex.ToCurrencyCode); }} + } + + /// Field Creation Class for entity CustomerEntity + public partial class CustomerFields + { + /// Creates a new CustomerEntity.AccountNumber field instance + public static EntityField2 AccountNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CustomerFieldIndex.AccountNumber); }} + /// Creates a new CustomerEntity.CustomerId field instance + public static EntityField2 CustomerId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CustomerFieldIndex.CustomerId); }} + /// Creates a new CustomerEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CustomerFieldIndex.ModifiedDate); }} + /// Creates a new CustomerEntity.PersonId field instance + public static EntityField2 PersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CustomerFieldIndex.PersonId); }} + /// Creates a new CustomerEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CustomerFieldIndex.Rowguid); }} + /// Creates a new CustomerEntity.StoreId field instance + public static EntityField2 StoreId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CustomerFieldIndex.StoreId); }} + /// Creates a new CustomerEntity.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(CustomerFieldIndex.TerritoryId); }} + } + + /// Field Creation Class for entity DepartmentEntity + public partial class DepartmentFields + { + /// Creates a new DepartmentEntity.DepartmentId field instance + public static EntityField2 DepartmentId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DepartmentFieldIndex.DepartmentId); }} + /// Creates a new DepartmentEntity.GroupName field instance + public static EntityField2 GroupName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DepartmentFieldIndex.GroupName); }} + /// Creates a new DepartmentEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DepartmentFieldIndex.ModifiedDate); }} + /// Creates a new DepartmentEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DepartmentFieldIndex.Name); }} + } + + /// Field Creation Class for entity DocumentEntity + public partial class DocumentFields + { + /// Creates a new DocumentEntity.ChangeNumber field instance + public static EntityField2 ChangeNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.ChangeNumber); }} + /// Creates a new DocumentEntity.Document field instance + public static EntityField2 Document { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.Document); }} + /// Creates a new DocumentEntity.DocumentLevel field instance + public static EntityField2 DocumentLevel { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.DocumentLevel); }} + /// Creates a new DocumentEntity.DocumentNode field instance + public static EntityField2 DocumentNode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.DocumentNode); }} + /// Creates a new DocumentEntity.DocumentSummary field instance + public static EntityField2 DocumentSummary { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.DocumentSummary); }} + /// Creates a new DocumentEntity.FileExtension field instance + public static EntityField2 FileExtension { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.FileExtension); }} + /// Creates a new DocumentEntity.FileName field instance + public static EntityField2 FileName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.FileName); }} + /// Creates a new DocumentEntity.FolderFlag field instance + public static EntityField2 FolderFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.FolderFlag); }} + /// Creates a new DocumentEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.ModifiedDate); }} + /// Creates a new DocumentEntity.Owner field instance + public static EntityField2 Owner { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.Owner); }} + /// Creates a new DocumentEntity.Revision field instance + public static EntityField2 Revision { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.Revision); }} + /// Creates a new DocumentEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.Rowguid); }} + /// Creates a new DocumentEntity.Status field instance + public static EntityField2 Status { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.Status); }} + /// Creates a new DocumentEntity.Title field instance + public static EntityField2 Title { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(DocumentFieldIndex.Title); }} + } + + /// Field Creation Class for entity EmailAddressEntity + public partial class EmailAddressFields + { + /// Creates a new EmailAddressEntity.BusinessEntityId field instance + public static EntityField2 BusinessEntityId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmailAddressFieldIndex.BusinessEntityId); }} + /// Creates a new EmailAddressEntity.EmailAddressId field instance + public static EntityField2 EmailAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmailAddressFieldIndex.EmailAddressId); }} + /// Creates a new EmailAddressEntity.EmailAddressValue field instance + public static EntityField2 EmailAddressValue { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmailAddressFieldIndex.EmailAddressValue); }} + /// Creates a new EmailAddressEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmailAddressFieldIndex.ModifiedDate); }} + /// Creates a new EmailAddressEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmailAddressFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity EmployeeEntity + public partial class EmployeeFields + { + /// Creates a new EmployeeEntity.BirthDate field instance + public static EntityField2 BirthDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.BirthDate); }} + /// Creates a new EmployeeEntity.CurrentFlag field instance + public static EntityField2 CurrentFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.CurrentFlag); }} + /// Creates a new EmployeeEntity.EmployeeId field instance + public static EntityField2 EmployeeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.EmployeeId); }} + /// Creates a new EmployeeEntity.Gender field instance + public static EntityField2 Gender { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.Gender); }} + /// Creates a new EmployeeEntity.HireDate field instance + public static EntityField2 HireDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.HireDate); }} + /// Creates a new EmployeeEntity.LoginId field instance + public static EntityField2 LoginId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.LoginId); }} + /// Creates a new EmployeeEntity.MaritalStatus field instance + public static EntityField2 MaritalStatus { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.MaritalStatus); }} + /// Creates a new EmployeeEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.ModifiedDate); }} + /// Creates a new EmployeeEntity.NationalIdnumber field instance + public static EntityField2 NationalIdnumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.NationalIdnumber); }} + /// Creates a new EmployeeEntity.OrganizationLevel field instance + public static EntityField2 OrganizationLevel { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.OrganizationLevel); }} + /// Creates a new EmployeeEntity.OrganizationNode field instance + public static EntityField2 OrganizationNode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.OrganizationNode); }} + /// Creates a new EmployeeEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.Rowguid); }} + /// Creates a new EmployeeEntity.SalariedFlag field instance + public static EntityField2 SalariedFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.SalariedFlag); }} + /// Creates a new EmployeeEntity.SickLeaveHours field instance + public static EntityField2 SickLeaveHours { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.SickLeaveHours); }} + /// Creates a new EmployeeEntity.Title field instance + public static EntityField2 Title { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.Title); }} + /// Creates a new EmployeeEntity.VacationHours field instance + public static EntityField2 VacationHours { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeFieldIndex.VacationHours); }} + } + + /// Field Creation Class for entity EmployeeDepartmentHistoryEntity + public partial class EmployeeDepartmentHistoryFields + { + /// Creates a new EmployeeDepartmentHistoryEntity.DepartmentId field instance + public static EntityField2 DepartmentId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeDepartmentHistoryFieldIndex.DepartmentId); }} + /// Creates a new EmployeeDepartmentHistoryEntity.EmployeeId field instance + public static EntityField2 EmployeeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeDepartmentHistoryFieldIndex.EmployeeId); }} + /// Creates a new EmployeeDepartmentHistoryEntity.EndDate field instance + public static EntityField2 EndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeDepartmentHistoryFieldIndex.EndDate); }} + /// Creates a new EmployeeDepartmentHistoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeDepartmentHistoryFieldIndex.ModifiedDate); }} + /// Creates a new EmployeeDepartmentHistoryEntity.ShiftId field instance + public static EntityField2 ShiftId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeDepartmentHistoryFieldIndex.ShiftId); }} + /// Creates a new EmployeeDepartmentHistoryEntity.StartDate field instance + public static EntityField2 StartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeeDepartmentHistoryFieldIndex.StartDate); }} + } + + /// Field Creation Class for entity EmployeePayHistoryEntity + public partial class EmployeePayHistoryFields + { + /// Creates a new EmployeePayHistoryEntity.EmployeeId field instance + public static EntityField2 EmployeeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeePayHistoryFieldIndex.EmployeeId); }} + /// Creates a new EmployeePayHistoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeePayHistoryFieldIndex.ModifiedDate); }} + /// Creates a new EmployeePayHistoryEntity.PayFrequency field instance + public static EntityField2 PayFrequency { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeePayHistoryFieldIndex.PayFrequency); }} + /// Creates a new EmployeePayHistoryEntity.Rate field instance + public static EntityField2 Rate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeePayHistoryFieldIndex.Rate); }} + /// Creates a new EmployeePayHistoryEntity.RateChangeDate field instance + public static EntityField2 RateChangeDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(EmployeePayHistoryFieldIndex.RateChangeDate); }} + } + + /// Field Creation Class for entity IllustrationEntity + public partial class IllustrationFields + { + /// Creates a new IllustrationEntity.Diagram field instance + public static EntityField2 Diagram { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(IllustrationFieldIndex.Diagram); }} + /// Creates a new IllustrationEntity.IllustrationId field instance + public static EntityField2 IllustrationId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(IllustrationFieldIndex.IllustrationId); }} + /// Creates a new IllustrationEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(IllustrationFieldIndex.ModifiedDate); }} + } + + /// Field Creation Class for entity JobCandidateEntity + public partial class JobCandidateFields + { + /// Creates a new JobCandidateEntity.EmployeeId field instance + public static EntityField2 EmployeeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(JobCandidateFieldIndex.EmployeeId); }} + /// Creates a new JobCandidateEntity.JobCandidateId field instance + public static EntityField2 JobCandidateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(JobCandidateFieldIndex.JobCandidateId); }} + /// Creates a new JobCandidateEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(JobCandidateFieldIndex.ModifiedDate); }} + /// Creates a new JobCandidateEntity.Resume field instance + public static EntityField2 Resume { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(JobCandidateFieldIndex.Resume); }} + } + + /// Field Creation Class for entity LocationEntity + public partial class LocationFields + { + /// Creates a new LocationEntity.Availability field instance + public static EntityField2 Availability { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(LocationFieldIndex.Availability); }} + /// Creates a new LocationEntity.CostRate field instance + public static EntityField2 CostRate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(LocationFieldIndex.CostRate); }} + /// Creates a new LocationEntity.LocationId field instance + public static EntityField2 LocationId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(LocationFieldIndex.LocationId); }} + /// Creates a new LocationEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(LocationFieldIndex.ModifiedDate); }} + /// Creates a new LocationEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(LocationFieldIndex.Name); }} + } + + /// Field Creation Class for entity PasswordEntity + public partial class PasswordFields + { + /// Creates a new PasswordEntity.BusinessEntityId field instance + public static EntityField2 BusinessEntityId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PasswordFieldIndex.BusinessEntityId); }} + /// Creates a new PasswordEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PasswordFieldIndex.ModifiedDate); }} + /// Creates a new PasswordEntity.PasswordHash field instance + public static EntityField2 PasswordHash { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PasswordFieldIndex.PasswordHash); }} + /// Creates a new PasswordEntity.PasswordSalt field instance + public static EntityField2 PasswordSalt { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PasswordFieldIndex.PasswordSalt); }} + /// Creates a new PasswordEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PasswordFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity PersonEntity + public partial class PersonFields + { + /// Creates a new PersonEntity.AdditionalContactInfo field instance + public static EntityField2 AdditionalContactInfo { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.AdditionalContactInfo); }} + /// Creates a new PersonEntity.BusinessEntityId field instance + public static EntityField2 BusinessEntityId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.BusinessEntityId); }} + /// Creates a new PersonEntity.Demographics field instance + public static EntityField2 Demographics { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.Demographics); }} + /// Creates a new PersonEntity.EmailPromotion field instance + public static EntityField2 EmailPromotion { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.EmailPromotion); }} + /// Creates a new PersonEntity.FirstName field instance + public static EntityField2 FirstName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.FirstName); }} + /// Creates a new PersonEntity.LastName field instance + public static EntityField2 LastName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.LastName); }} + /// Creates a new PersonEntity.MiddleName field instance + public static EntityField2 MiddleName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.MiddleName); }} + /// Creates a new PersonEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.ModifiedDate); }} + /// Creates a new PersonEntity.NameStyle field instance + public static EntityField2 NameStyle { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.NameStyle); }} + /// Creates a new PersonEntity.PersonType field instance + public static EntityField2 PersonType { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.PersonType); }} + /// Creates a new PersonEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.Rowguid); }} + /// Creates a new PersonEntity.Suffix field instance + public static EntityField2 Suffix { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.Suffix); }} + /// Creates a new PersonEntity.Title field instance + public static EntityField2 Title { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonFieldIndex.Title); }} + } + + /// Field Creation Class for entity PersonPhoneEntity + public partial class PersonPhoneFields + { + /// Creates a new PersonPhoneEntity.BusinessEntityId field instance + public static EntityField2 BusinessEntityId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonPhoneFieldIndex.BusinessEntityId); }} + /// Creates a new PersonPhoneEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonPhoneFieldIndex.ModifiedDate); }} + /// Creates a new PersonPhoneEntity.PhoneNumber field instance + public static EntityField2 PhoneNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonPhoneFieldIndex.PhoneNumber); }} + /// Creates a new PersonPhoneEntity.PhoneNumberTypeId field instance + public static EntityField2 PhoneNumberTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PersonPhoneFieldIndex.PhoneNumberTypeId); }} + } + + /// Field Creation Class for entity PhoneNumberTypeEntity + public partial class PhoneNumberTypeFields + { + /// Creates a new PhoneNumberTypeEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PhoneNumberTypeFieldIndex.ModifiedDate); }} + /// Creates a new PhoneNumberTypeEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PhoneNumberTypeFieldIndex.Name); }} + /// Creates a new PhoneNumberTypeEntity.PhoneNumberTypeId field instance + public static EntityField2 PhoneNumberTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PhoneNumberTypeFieldIndex.PhoneNumberTypeId); }} + } + + /// Field Creation Class for entity ProductEntity + public partial class ProductFields + { + /// Creates a new ProductEntity.Class field instance + public static EntityField2 Class { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.Class); }} + /// Creates a new ProductEntity.Color field instance + public static EntityField2 Color { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.Color); }} + /// Creates a new ProductEntity.DaysToManufacture field instance + public static EntityField2 DaysToManufacture { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.DaysToManufacture); }} + /// Creates a new ProductEntity.DiscontinuedDate field instance + public static EntityField2 DiscontinuedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.DiscontinuedDate); }} + /// Creates a new ProductEntity.FinishedGoodsFlag field instance + public static EntityField2 FinishedGoodsFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.FinishedGoodsFlag); }} + /// Creates a new ProductEntity.ListPrice field instance + public static EntityField2 ListPrice { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ListPrice); }} + /// Creates a new ProductEntity.MakeFlag field instance + public static EntityField2 MakeFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.MakeFlag); }} + /// Creates a new ProductEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ModifiedDate); }} + /// Creates a new ProductEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.Name); }} + /// Creates a new ProductEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ProductId); }} + /// Creates a new ProductEntity.ProductLine field instance + public static EntityField2 ProductLine { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ProductLine); }} + /// Creates a new ProductEntity.ProductModelId field instance + public static EntityField2 ProductModelId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ProductModelId); }} + /// Creates a new ProductEntity.ProductNumber field instance + public static EntityField2 ProductNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ProductNumber); }} + /// Creates a new ProductEntity.ProductSubcategoryId field instance + public static EntityField2 ProductSubcategoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ProductSubcategoryId); }} + /// Creates a new ProductEntity.ReorderPoint field instance + public static EntityField2 ReorderPoint { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.ReorderPoint); }} + /// Creates a new ProductEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.Rowguid); }} + /// Creates a new ProductEntity.SafetyStockLevel field instance + public static EntityField2 SafetyStockLevel { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.SafetyStockLevel); }} + /// Creates a new ProductEntity.SellEndDate field instance + public static EntityField2 SellEndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.SellEndDate); }} + /// Creates a new ProductEntity.SellStartDate field instance + public static EntityField2 SellStartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.SellStartDate); }} + /// Creates a new ProductEntity.Size field instance + public static EntityField2 Size { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.Size); }} + /// Creates a new ProductEntity.SizeUnitMeasureCode field instance + public static EntityField2 SizeUnitMeasureCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.SizeUnitMeasureCode); }} + /// Creates a new ProductEntity.StandardCost field instance + public static EntityField2 StandardCost { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.StandardCost); }} + /// Creates a new ProductEntity.Style field instance + public static EntityField2 Style { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.Style); }} + /// Creates a new ProductEntity.Weight field instance + public static EntityField2 Weight { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.Weight); }} + /// Creates a new ProductEntity.WeightUnitMeasureCode field instance + public static EntityField2 WeightUnitMeasureCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductFieldIndex.WeightUnitMeasureCode); }} + } + + /// Field Creation Class for entity ProductCategoryEntity + public partial class ProductCategoryFields + { + /// Creates a new ProductCategoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCategoryFieldIndex.ModifiedDate); }} + /// Creates a new ProductCategoryEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCategoryFieldIndex.Name); }} + /// Creates a new ProductCategoryEntity.ProductCategoryId field instance + public static EntityField2 ProductCategoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCategoryFieldIndex.ProductCategoryId); }} + /// Creates a new ProductCategoryEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCategoryFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity ProductCostHistoryEntity + public partial class ProductCostHistoryFields + { + /// Creates a new ProductCostHistoryEntity.EndDate field instance + public static EntityField2 EndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCostHistoryFieldIndex.EndDate); }} + /// Creates a new ProductCostHistoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCostHistoryFieldIndex.ModifiedDate); }} + /// Creates a new ProductCostHistoryEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCostHistoryFieldIndex.ProductId); }} + /// Creates a new ProductCostHistoryEntity.StandardCost field instance + public static EntityField2 StandardCost { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCostHistoryFieldIndex.StandardCost); }} + /// Creates a new ProductCostHistoryEntity.StartDate field instance + public static EntityField2 StartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductCostHistoryFieldIndex.StartDate); }} + } + + /// Field Creation Class for entity ProductDescriptionEntity + public partial class ProductDescriptionFields + { + /// Creates a new ProductDescriptionEntity.Description field instance + public static EntityField2 Description { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductDescriptionFieldIndex.Description); }} + /// Creates a new ProductDescriptionEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductDescriptionFieldIndex.ModifiedDate); }} + /// Creates a new ProductDescriptionEntity.ProductDescriptionId field instance + public static EntityField2 ProductDescriptionId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductDescriptionFieldIndex.ProductDescriptionId); }} + /// Creates a new ProductDescriptionEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductDescriptionFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity ProductDocumentEntity + public partial class ProductDocumentFields + { + /// Creates a new ProductDocumentEntity.DocumentNode field instance + public static EntityField2 DocumentNode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductDocumentFieldIndex.DocumentNode); }} + /// Creates a new ProductDocumentEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductDocumentFieldIndex.ModifiedDate); }} + /// Creates a new ProductDocumentEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductDocumentFieldIndex.ProductId); }} + } + + /// Field Creation Class for entity ProductInventoryEntity + public partial class ProductInventoryFields + { + /// Creates a new ProductInventoryEntity.Bin field instance + public static EntityField2 Bin { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductInventoryFieldIndex.Bin); }} + /// Creates a new ProductInventoryEntity.LocationId field instance + public static EntityField2 LocationId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductInventoryFieldIndex.LocationId); }} + /// Creates a new ProductInventoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductInventoryFieldIndex.ModifiedDate); }} + /// Creates a new ProductInventoryEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductInventoryFieldIndex.ProductId); }} + /// Creates a new ProductInventoryEntity.Quantity field instance + public static EntityField2 Quantity { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductInventoryFieldIndex.Quantity); }} + /// Creates a new ProductInventoryEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductInventoryFieldIndex.Rowguid); }} + /// Creates a new ProductInventoryEntity.Shelf field instance + public static EntityField2 Shelf { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductInventoryFieldIndex.Shelf); }} + } + + /// Field Creation Class for entity ProductListPriceHistoryEntity + public partial class ProductListPriceHistoryFields + { + /// Creates a new ProductListPriceHistoryEntity.EndDate field instance + public static EntityField2 EndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductListPriceHistoryFieldIndex.EndDate); }} + /// Creates a new ProductListPriceHistoryEntity.ListPrice field instance + public static EntityField2 ListPrice { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductListPriceHistoryFieldIndex.ListPrice); }} + /// Creates a new ProductListPriceHistoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductListPriceHistoryFieldIndex.ModifiedDate); }} + /// Creates a new ProductListPriceHistoryEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductListPriceHistoryFieldIndex.ProductId); }} + /// Creates a new ProductListPriceHistoryEntity.StartDate field instance + public static EntityField2 StartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductListPriceHistoryFieldIndex.StartDate); }} + } + + /// Field Creation Class for entity ProductModelEntity + public partial class ProductModelFields + { + /// Creates a new ProductModelEntity.CatalogDescription field instance + public static EntityField2 CatalogDescription { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelFieldIndex.CatalogDescription); }} + /// Creates a new ProductModelEntity.Instructions field instance + public static EntityField2 Instructions { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelFieldIndex.Instructions); }} + /// Creates a new ProductModelEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelFieldIndex.ModifiedDate); }} + /// Creates a new ProductModelEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelFieldIndex.Name); }} + /// Creates a new ProductModelEntity.ProductModelId field instance + public static EntityField2 ProductModelId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelFieldIndex.ProductModelId); }} + /// Creates a new ProductModelEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity ProductModelIllustrationEntity + public partial class ProductModelIllustrationFields + { + /// Creates a new ProductModelIllustrationEntity.IllustrationId field instance + public static EntityField2 IllustrationId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelIllustrationFieldIndex.IllustrationId); }} + /// Creates a new ProductModelIllustrationEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelIllustrationFieldIndex.ModifiedDate); }} + /// Creates a new ProductModelIllustrationEntity.ProductModelId field instance + public static EntityField2 ProductModelId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelIllustrationFieldIndex.ProductModelId); }} + } + + /// Field Creation Class for entity ProductModelProductDescriptionCultureEntity + public partial class ProductModelProductDescriptionCultureFields + { + /// Creates a new ProductModelProductDescriptionCultureEntity.CultureId field instance + public static EntityField2 CultureId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelProductDescriptionCultureFieldIndex.CultureId); }} + /// Creates a new ProductModelProductDescriptionCultureEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelProductDescriptionCultureFieldIndex.ModifiedDate); }} + /// Creates a new ProductModelProductDescriptionCultureEntity.ProductDescriptionId field instance + public static EntityField2 ProductDescriptionId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId); }} + /// Creates a new ProductModelProductDescriptionCultureEntity.ProductModelId field instance + public static EntityField2 ProductModelId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductModelProductDescriptionCultureFieldIndex.ProductModelId); }} + } + + /// Field Creation Class for entity ProductPhotoEntity + public partial class ProductPhotoFields + { + /// Creates a new ProductPhotoEntity.LargePhoto field instance + public static EntityField2 LargePhoto { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductPhotoFieldIndex.LargePhoto); }} + /// Creates a new ProductPhotoEntity.LargePhotoFileName field instance + public static EntityField2 LargePhotoFileName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductPhotoFieldIndex.LargePhotoFileName); }} + /// Creates a new ProductPhotoEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductPhotoFieldIndex.ModifiedDate); }} + /// Creates a new ProductPhotoEntity.ProductPhotoId field instance + public static EntityField2 ProductPhotoId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductPhotoFieldIndex.ProductPhotoId); }} + /// Creates a new ProductPhotoEntity.ThumbNailPhoto field instance + public static EntityField2 ThumbNailPhoto { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductPhotoFieldIndex.ThumbNailPhoto); }} + /// Creates a new ProductPhotoEntity.ThumbnailPhotoFileName field instance + public static EntityField2 ThumbnailPhotoFileName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductPhotoFieldIndex.ThumbnailPhotoFileName); }} + } + + /// Field Creation Class for entity ProductProductPhotoEntity + public partial class ProductProductPhotoFields + { + /// Creates a new ProductProductPhotoEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductProductPhotoFieldIndex.ModifiedDate); }} + /// Creates a new ProductProductPhotoEntity.Primary field instance + public static EntityField2 Primary { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductProductPhotoFieldIndex.Primary); }} + /// Creates a new ProductProductPhotoEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductProductPhotoFieldIndex.ProductId); }} + /// Creates a new ProductProductPhotoEntity.ProductPhotoId field instance + public static EntityField2 ProductPhotoId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductProductPhotoFieldIndex.ProductPhotoId); }} + } + + /// Field Creation Class for entity ProductReviewEntity + public partial class ProductReviewFields + { + /// Creates a new ProductReviewEntity.Comments field instance + public static EntityField2 Comments { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.Comments); }} + /// Creates a new ProductReviewEntity.EmailAddress field instance + public static EntityField2 EmailAddress { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.EmailAddress); }} + /// Creates a new ProductReviewEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.ModifiedDate); }} + /// Creates a new ProductReviewEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.ProductId); }} + /// Creates a new ProductReviewEntity.ProductReviewId field instance + public static EntityField2 ProductReviewId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.ProductReviewId); }} + /// Creates a new ProductReviewEntity.Rating field instance + public static EntityField2 Rating { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.Rating); }} + /// Creates a new ProductReviewEntity.ReviewDate field instance + public static EntityField2 ReviewDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.ReviewDate); }} + /// Creates a new ProductReviewEntity.ReviewerName field instance + public static EntityField2 ReviewerName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductReviewFieldIndex.ReviewerName); }} + } + + /// Field Creation Class for entity ProductSubcategoryEntity + public partial class ProductSubcategoryFields + { + /// Creates a new ProductSubcategoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductSubcategoryFieldIndex.ModifiedDate); }} + /// Creates a new ProductSubcategoryEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductSubcategoryFieldIndex.Name); }} + /// Creates a new ProductSubcategoryEntity.ProductCategoryId field instance + public static EntityField2 ProductCategoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductSubcategoryFieldIndex.ProductCategoryId); }} + /// Creates a new ProductSubcategoryEntity.ProductSubcategoryId field instance + public static EntityField2 ProductSubcategoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductSubcategoryFieldIndex.ProductSubcategoryId); }} + /// Creates a new ProductSubcategoryEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductSubcategoryFieldIndex.Rowguid); }} + } + + /// Field Creation Class for entity ProductVendorEntity + public partial class ProductVendorFields + { + /// Creates a new ProductVendorEntity.AverageLeadTime field instance + public static EntityField2 AverageLeadTime { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.AverageLeadTime); }} + /// Creates a new ProductVendorEntity.LastReceiptCost field instance + public static EntityField2 LastReceiptCost { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.LastReceiptCost); }} + /// Creates a new ProductVendorEntity.LastReceiptDate field instance + public static EntityField2 LastReceiptDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.LastReceiptDate); }} + /// Creates a new ProductVendorEntity.MaxOrderQty field instance + public static EntityField2 MaxOrderQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.MaxOrderQty); }} + /// Creates a new ProductVendorEntity.MinOrderQty field instance + public static EntityField2 MinOrderQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.MinOrderQty); }} + /// Creates a new ProductVendorEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.ModifiedDate); }} + /// Creates a new ProductVendorEntity.OnOrderQty field instance + public static EntityField2 OnOrderQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.OnOrderQty); }} + /// Creates a new ProductVendorEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.ProductId); }} + /// Creates a new ProductVendorEntity.StandardPrice field instance + public static EntityField2 StandardPrice { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.StandardPrice); }} + /// Creates a new ProductVendorEntity.UnitMeasureCode field instance + public static EntityField2 UnitMeasureCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.UnitMeasureCode); }} + /// Creates a new ProductVendorEntity.VendorId field instance + public static EntityField2 VendorId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ProductVendorFieldIndex.VendorId); }} + } + + /// Field Creation Class for entity PurchaseOrderDetailEntity + public partial class PurchaseOrderDetailFields + { + /// Creates a new PurchaseOrderDetailEntity.DueDate field instance + public static EntityField2 DueDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.DueDate); }} + /// Creates a new PurchaseOrderDetailEntity.LineTotal field instance + public static EntityField2 LineTotal { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.LineTotal); }} + /// Creates a new PurchaseOrderDetailEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.ModifiedDate); }} + /// Creates a new PurchaseOrderDetailEntity.OrderQty field instance + public static EntityField2 OrderQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.OrderQty); }} + /// Creates a new PurchaseOrderDetailEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.ProductId); }} + /// Creates a new PurchaseOrderDetailEntity.PurchaseOrderDetailId field instance + public static EntityField2 PurchaseOrderDetailId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.PurchaseOrderDetailId); }} + /// Creates a new PurchaseOrderDetailEntity.PurchaseOrderId field instance + public static EntityField2 PurchaseOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.PurchaseOrderId); }} + /// Creates a new PurchaseOrderDetailEntity.ReceivedQty field instance + public static EntityField2 ReceivedQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.ReceivedQty); }} + /// Creates a new PurchaseOrderDetailEntity.RejectedQty field instance + public static EntityField2 RejectedQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.RejectedQty); }} + /// Creates a new PurchaseOrderDetailEntity.StockedQty field instance + public static EntityField2 StockedQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.StockedQty); }} + /// Creates a new PurchaseOrderDetailEntity.UnitPrice field instance + public static EntityField2 UnitPrice { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderDetailFieldIndex.UnitPrice); }} + } + + /// Field Creation Class for entity PurchaseOrderHeaderEntity + public partial class PurchaseOrderHeaderFields + { + /// Creates a new PurchaseOrderHeaderEntity.EmployeeId field instance + public static EntityField2 EmployeeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.EmployeeId); }} + /// Creates a new PurchaseOrderHeaderEntity.Freight field instance + public static EntityField2 Freight { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.Freight); }} + /// Creates a new PurchaseOrderHeaderEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.ModifiedDate); }} + /// Creates a new PurchaseOrderHeaderEntity.OrderDate field instance + public static EntityField2 OrderDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.OrderDate); }} + /// Creates a new PurchaseOrderHeaderEntity.PurchaseOrderId field instance + public static EntityField2 PurchaseOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.PurchaseOrderId); }} + /// Creates a new PurchaseOrderHeaderEntity.RevisionNumber field instance + public static EntityField2 RevisionNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.RevisionNumber); }} + /// Creates a new PurchaseOrderHeaderEntity.ShipDate field instance + public static EntityField2 ShipDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.ShipDate); }} + /// Creates a new PurchaseOrderHeaderEntity.ShipMethodId field instance + public static EntityField2 ShipMethodId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.ShipMethodId); }} + /// Creates a new PurchaseOrderHeaderEntity.Status field instance + public static EntityField2 Status { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.Status); }} + /// Creates a new PurchaseOrderHeaderEntity.SubTotal field instance + public static EntityField2 SubTotal { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.SubTotal); }} + /// Creates a new PurchaseOrderHeaderEntity.TaxAmt field instance + public static EntityField2 TaxAmt { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.TaxAmt); }} + /// Creates a new PurchaseOrderHeaderEntity.TotalDue field instance + public static EntityField2 TotalDue { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.TotalDue); }} + /// Creates a new PurchaseOrderHeaderEntity.VendorId field instance + public static EntityField2 VendorId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(PurchaseOrderHeaderFieldIndex.VendorId); }} + } + + /// Field Creation Class for entity SalesOrderDetailEntity + public partial class SalesOrderDetailFields + { + /// Creates a new SalesOrderDetailEntity.CarrierTrackingNumber field instance + public static EntityField2 CarrierTrackingNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.CarrierTrackingNumber); }} + /// Creates a new SalesOrderDetailEntity.LineTotal field instance + public static EntityField2 LineTotal { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.LineTotal); }} + /// Creates a new SalesOrderDetailEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.ModifiedDate); }} + /// Creates a new SalesOrderDetailEntity.OrderQty field instance + public static EntityField2 OrderQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.OrderQty); }} + /// Creates a new SalesOrderDetailEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.ProductId); }} + /// Creates a new SalesOrderDetailEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.Rowguid); }} + /// Creates a new SalesOrderDetailEntity.SalesOrderDetailId field instance + public static EntityField2 SalesOrderDetailId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.SalesOrderDetailId); }} + /// Creates a new SalesOrderDetailEntity.SalesOrderId field instance + public static EntityField2 SalesOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.SalesOrderId); }} + /// Creates a new SalesOrderDetailEntity.SpecialOfferId field instance + public static EntityField2 SpecialOfferId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.SpecialOfferId); }} + /// Creates a new SalesOrderDetailEntity.UnitPrice field instance + public static EntityField2 UnitPrice { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.UnitPrice); }} + /// Creates a new SalesOrderDetailEntity.UnitPriceDiscount field instance + public static EntityField2 UnitPriceDiscount { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderDetailFieldIndex.UnitPriceDiscount); }} + } + + /// Field Creation Class for entity SalesOrderHeaderEntity + public partial class SalesOrderHeaderFields + { + /// Creates a new SalesOrderHeaderEntity.AccountNumber field instance + public static EntityField2 AccountNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.AccountNumber); }} + /// Creates a new SalesOrderHeaderEntity.BillToAddressId field instance + public static EntityField2 BillToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.BillToAddressId); }} + /// Creates a new SalesOrderHeaderEntity.Comment field instance + public static EntityField2 Comment { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.Comment); }} + /// Creates a new SalesOrderHeaderEntity.CreditCardApprovalCode field instance + public static EntityField2 CreditCardApprovalCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.CreditCardApprovalCode); }} + /// Creates a new SalesOrderHeaderEntity.CreditCardId field instance + public static EntityField2 CreditCardId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.CreditCardId); }} + /// Creates a new SalesOrderHeaderEntity.CurrencyRateId field instance + public static EntityField2 CurrencyRateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.CurrencyRateId); }} + /// Creates a new SalesOrderHeaderEntity.CustomerId field instance + public static EntityField2 CustomerId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.CustomerId); }} + /// Creates a new SalesOrderHeaderEntity.DueDate field instance + public static EntityField2 DueDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.DueDate); }} + /// Creates a new SalesOrderHeaderEntity.Freight field instance + public static EntityField2 Freight { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.Freight); }} + /// Creates a new SalesOrderHeaderEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.ModifiedDate); }} + /// Creates a new SalesOrderHeaderEntity.OnlineOrderFlag field instance + public static EntityField2 OnlineOrderFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.OnlineOrderFlag); }} + /// Creates a new SalesOrderHeaderEntity.OrderDate field instance + public static EntityField2 OrderDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.OrderDate); }} + /// Creates a new SalesOrderHeaderEntity.PurchaseOrderNumber field instance + public static EntityField2 PurchaseOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.PurchaseOrderNumber); }} + /// Creates a new SalesOrderHeaderEntity.RevisionNumber field instance + public static EntityField2 RevisionNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.RevisionNumber); }} + /// Creates a new SalesOrderHeaderEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.Rowguid); }} + /// Creates a new SalesOrderHeaderEntity.SalesOrderId field instance + public static EntityField2 SalesOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.SalesOrderId); }} + /// Creates a new SalesOrderHeaderEntity.SalesOrderNumber field instance + public static EntityField2 SalesOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.SalesOrderNumber); }} + /// Creates a new SalesOrderHeaderEntity.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.SalesPersonId); }} + /// Creates a new SalesOrderHeaderEntity.ShipDate field instance + public static EntityField2 ShipDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.ShipDate); }} + /// Creates a new SalesOrderHeaderEntity.ShipMethodId field instance + public static EntityField2 ShipMethodId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.ShipMethodId); }} + /// Creates a new SalesOrderHeaderEntity.ShipToAddressId field instance + public static EntityField2 ShipToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.ShipToAddressId); }} + /// Creates a new SalesOrderHeaderEntity.Status field instance + public static EntityField2 Status { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.Status); }} + /// Creates a new SalesOrderHeaderEntity.SubTotal field instance + public static EntityField2 SubTotal { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.SubTotal); }} + /// Creates a new SalesOrderHeaderEntity.TaxAmt field instance + public static EntityField2 TaxAmt { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.TaxAmt); }} + /// Creates a new SalesOrderHeaderEntity.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.TerritoryId); }} + /// Creates a new SalesOrderHeaderEntity.TotalDue field instance + public static EntityField2 TotalDue { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderFieldIndex.TotalDue); }} + } + + /// Field Creation Class for entity SalesOrderHeaderSalesReasonEntity + public partial class SalesOrderHeaderSalesReasonFields + { + /// Creates a new SalesOrderHeaderSalesReasonEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderSalesReasonFieldIndex.ModifiedDate); }} + /// Creates a new SalesOrderHeaderSalesReasonEntity.SalesOrderId field instance + public static EntityField2 SalesOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId); }} + /// Creates a new SalesOrderHeaderSalesReasonEntity.SalesReasonId field instance + public static EntityField2 SalesReasonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId); }} + } + + /// Field Creation Class for entity SalesPersonEntity + public partial class SalesPersonFields + { + /// Creates a new SalesPersonEntity.Bonus field instance + public static EntityField2 Bonus { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.Bonus); }} + /// Creates a new SalesPersonEntity.CommissionPct field instance + public static EntityField2 CommissionPct { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.CommissionPct); }} + /// Creates a new SalesPersonEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.ModifiedDate); }} + /// Creates a new SalesPersonEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.Rowguid); }} + /// Creates a new SalesPersonEntity.SalesLastYear field instance + public static EntityField2 SalesLastYear { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.SalesLastYear); }} + /// Creates a new SalesPersonEntity.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.SalesPersonId); }} + /// Creates a new SalesPersonEntity.SalesQuota field instance + public static EntityField2 SalesQuota { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.SalesQuota); }} + /// Creates a new SalesPersonEntity.SalesYtd field instance + public static EntityField2 SalesYtd { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.SalesYtd); }} + /// Creates a new SalesPersonEntity.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonFieldIndex.TerritoryId); }} + } + + /// Field Creation Class for entity SalesPersonQuotaHistoryEntity + public partial class SalesPersonQuotaHistoryFields + { + /// Creates a new SalesPersonQuotaHistoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonQuotaHistoryFieldIndex.ModifiedDate); }} + /// Creates a new SalesPersonQuotaHistoryEntity.QuotaDate field instance + public static EntityField2 QuotaDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonQuotaHistoryFieldIndex.QuotaDate); }} + /// Creates a new SalesPersonQuotaHistoryEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonQuotaHistoryFieldIndex.Rowguid); }} + /// Creates a new SalesPersonQuotaHistoryEntity.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonQuotaHistoryFieldIndex.SalesPersonId); }} + /// Creates a new SalesPersonQuotaHistoryEntity.SalesQuota field instance + public static EntityField2 SalesQuota { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesPersonQuotaHistoryFieldIndex.SalesQuota); }} + } + + /// Field Creation Class for entity SalesReasonEntity + public partial class SalesReasonFields + { + /// Creates a new SalesReasonEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesReasonFieldIndex.ModifiedDate); }} + /// Creates a new SalesReasonEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesReasonFieldIndex.Name); }} + /// Creates a new SalesReasonEntity.ReasonType field instance + public static EntityField2 ReasonType { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesReasonFieldIndex.ReasonType); }} + /// Creates a new SalesReasonEntity.SalesReasonId field instance + public static EntityField2 SalesReasonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesReasonFieldIndex.SalesReasonId); }} + } + + /// Field Creation Class for entity SalesTaxRateEntity + public partial class SalesTaxRateFields + { + /// Creates a new SalesTaxRateEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTaxRateFieldIndex.ModifiedDate); }} + /// Creates a new SalesTaxRateEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTaxRateFieldIndex.Name); }} + /// Creates a new SalesTaxRateEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTaxRateFieldIndex.Rowguid); }} + /// Creates a new SalesTaxRateEntity.SalesTaxRateId field instance + public static EntityField2 SalesTaxRateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTaxRateFieldIndex.SalesTaxRateId); }} + /// Creates a new SalesTaxRateEntity.StateProvinceId field instance + public static EntityField2 StateProvinceId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTaxRateFieldIndex.StateProvinceId); }} + /// Creates a new SalesTaxRateEntity.TaxRate field instance + public static EntityField2 TaxRate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTaxRateFieldIndex.TaxRate); }} + /// Creates a new SalesTaxRateEntity.TaxType field instance + public static EntityField2 TaxType { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTaxRateFieldIndex.TaxType); }} + } + + /// Field Creation Class for entity SalesTerritoryEntity + public partial class SalesTerritoryFields + { + /// Creates a new SalesTerritoryEntity.CostLastYear field instance + public static EntityField2 CostLastYear { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.CostLastYear); }} + /// Creates a new SalesTerritoryEntity.CostYtd field instance + public static EntityField2 CostYtd { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.CostYtd); }} + /// Creates a new SalesTerritoryEntity.CountryRegionCode field instance + public static EntityField2 CountryRegionCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.CountryRegionCode); }} + /// Creates a new SalesTerritoryEntity.Group field instance + public static EntityField2 Group { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.Group); }} + /// Creates a new SalesTerritoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.ModifiedDate); }} + /// Creates a new SalesTerritoryEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.Name); }} + /// Creates a new SalesTerritoryEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.Rowguid); }} + /// Creates a new SalesTerritoryEntity.SalesLastYear field instance + public static EntityField2 SalesLastYear { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.SalesLastYear); }} + /// Creates a new SalesTerritoryEntity.SalesYtd field instance + public static EntityField2 SalesYtd { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.SalesYtd); }} + /// Creates a new SalesTerritoryEntity.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryFieldIndex.TerritoryId); }} + } + + /// Field Creation Class for entity SalesTerritoryHistoryEntity + public partial class SalesTerritoryHistoryFields + { + /// Creates a new SalesTerritoryHistoryEntity.EndDate field instance + public static EntityField2 EndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryHistoryFieldIndex.EndDate); }} + /// Creates a new SalesTerritoryHistoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryHistoryFieldIndex.ModifiedDate); }} + /// Creates a new SalesTerritoryHistoryEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryHistoryFieldIndex.Rowguid); }} + /// Creates a new SalesTerritoryHistoryEntity.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryHistoryFieldIndex.SalesPersonId); }} + /// Creates a new SalesTerritoryHistoryEntity.StartDate field instance + public static EntityField2 StartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryHistoryFieldIndex.StartDate); }} + /// Creates a new SalesTerritoryHistoryEntity.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SalesTerritoryHistoryFieldIndex.TerritoryId); }} + } + + /// Field Creation Class for entity ScrapReasonEntity + public partial class ScrapReasonFields + { + /// Creates a new ScrapReasonEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ScrapReasonFieldIndex.ModifiedDate); }} + /// Creates a new ScrapReasonEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ScrapReasonFieldIndex.Name); }} + /// Creates a new ScrapReasonEntity.ScrapReasonId field instance + public static EntityField2 ScrapReasonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ScrapReasonFieldIndex.ScrapReasonId); }} + } + + /// Field Creation Class for entity ShiftEntity + public partial class ShiftFields + { + /// Creates a new ShiftEntity.EndTime field instance + public static EntityField2 EndTime { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShiftFieldIndex.EndTime); }} + /// Creates a new ShiftEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShiftFieldIndex.ModifiedDate); }} + /// Creates a new ShiftEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShiftFieldIndex.Name); }} + /// Creates a new ShiftEntity.ShiftId field instance + public static EntityField2 ShiftId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShiftFieldIndex.ShiftId); }} + /// Creates a new ShiftEntity.StartTime field instance + public static EntityField2 StartTime { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShiftFieldIndex.StartTime); }} + } + + /// Field Creation Class for entity ShipMethodEntity + public partial class ShipMethodFields + { + /// Creates a new ShipMethodEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShipMethodFieldIndex.ModifiedDate); }} + /// Creates a new ShipMethodEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShipMethodFieldIndex.Name); }} + /// Creates a new ShipMethodEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShipMethodFieldIndex.Rowguid); }} + /// Creates a new ShipMethodEntity.ShipBase field instance + public static EntityField2 ShipBase { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShipMethodFieldIndex.ShipBase); }} + /// Creates a new ShipMethodEntity.ShipMethodId field instance + public static EntityField2 ShipMethodId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShipMethodFieldIndex.ShipMethodId); }} + /// Creates a new ShipMethodEntity.ShipRate field instance + public static EntityField2 ShipRate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShipMethodFieldIndex.ShipRate); }} + } + + /// Field Creation Class for entity ShoppingCartItemEntity + public partial class ShoppingCartItemFields + { + /// Creates a new ShoppingCartItemEntity.DateCreated field instance + public static EntityField2 DateCreated { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShoppingCartItemFieldIndex.DateCreated); }} + /// Creates a new ShoppingCartItemEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShoppingCartItemFieldIndex.ModifiedDate); }} + /// Creates a new ShoppingCartItemEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShoppingCartItemFieldIndex.ProductId); }} + /// Creates a new ShoppingCartItemEntity.Quantity field instance + public static EntityField2 Quantity { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShoppingCartItemFieldIndex.Quantity); }} + /// Creates a new ShoppingCartItemEntity.ShoppingCartId field instance + public static EntityField2 ShoppingCartId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShoppingCartItemFieldIndex.ShoppingCartId); }} + /// Creates a new ShoppingCartItemEntity.ShoppingCartItemId field instance + public static EntityField2 ShoppingCartItemId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(ShoppingCartItemFieldIndex.ShoppingCartItemId); }} + } + + /// Field Creation Class for entity SpecialOfferEntity + public partial class SpecialOfferFields + { + /// Creates a new SpecialOfferEntity.Category field instance + public static EntityField2 Category { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.Category); }} + /// Creates a new SpecialOfferEntity.Description field instance + public static EntityField2 Description { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.Description); }} + /// Creates a new SpecialOfferEntity.DiscountPct field instance + public static EntityField2 DiscountPct { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.DiscountPct); }} + /// Creates a new SpecialOfferEntity.EndDate field instance + public static EntityField2 EndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.EndDate); }} + /// Creates a new SpecialOfferEntity.MaxQty field instance + public static EntityField2 MaxQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.MaxQty); }} + /// Creates a new SpecialOfferEntity.MinQty field instance + public static EntityField2 MinQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.MinQty); }} + /// Creates a new SpecialOfferEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.ModifiedDate); }} + /// Creates a new SpecialOfferEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.Rowguid); }} + /// Creates a new SpecialOfferEntity.SpecialOfferId field instance + public static EntityField2 SpecialOfferId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.SpecialOfferId); }} + /// Creates a new SpecialOfferEntity.StartDate field instance + public static EntityField2 StartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.StartDate); }} + /// Creates a new SpecialOfferEntity.Type field instance + public static EntityField2 Type { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferFieldIndex.Type); }} + } + + /// Field Creation Class for entity SpecialOfferProductEntity + public partial class SpecialOfferProductFields + { + /// Creates a new SpecialOfferProductEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferProductFieldIndex.ModifiedDate); }} + /// Creates a new SpecialOfferProductEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferProductFieldIndex.ProductId); }} + /// Creates a new SpecialOfferProductEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferProductFieldIndex.Rowguid); }} + /// Creates a new SpecialOfferProductEntity.SpecialOfferId field instance + public static EntityField2 SpecialOfferId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SpecialOfferProductFieldIndex.SpecialOfferId); }} + } + + /// Field Creation Class for entity StateProvinceEntity + public partial class StateProvinceFields + { + /// Creates a new StateProvinceEntity.CountryRegionCode field instance + public static EntityField2 CountryRegionCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.CountryRegionCode); }} + /// Creates a new StateProvinceEntity.IsOnlyStateProvinceFlag field instance + public static EntityField2 IsOnlyStateProvinceFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.IsOnlyStateProvinceFlag); }} + /// Creates a new StateProvinceEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.ModifiedDate); }} + /// Creates a new StateProvinceEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.Name); }} + /// Creates a new StateProvinceEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.Rowguid); }} + /// Creates a new StateProvinceEntity.StateProvinceCode field instance + public static EntityField2 StateProvinceCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.StateProvinceCode); }} + /// Creates a new StateProvinceEntity.StateProvinceId field instance + public static EntityField2 StateProvinceId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.StateProvinceId); }} + /// Creates a new StateProvinceEntity.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StateProvinceFieldIndex.TerritoryId); }} + } + + /// Field Creation Class for entity StoreEntity + public partial class StoreFields + { + /// Creates a new StoreEntity.CustomerId field instance + public static EntityField2 CustomerId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StoreFieldIndex.CustomerId); }} + /// Creates a new StoreEntity.Demographics field instance + public static EntityField2 Demographics { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StoreFieldIndex.Demographics); }} + /// Creates a new StoreEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StoreFieldIndex.ModifiedDate); }} + /// Creates a new StoreEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StoreFieldIndex.Name); }} + /// Creates a new StoreEntity.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StoreFieldIndex.Rowguid); }} + /// Creates a new StoreEntity.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(StoreFieldIndex.SalesPersonId); }} + } + + /// Field Creation Class for entity TransactionHistoryEntity + public partial class TransactionHistoryFields + { + /// Creates a new TransactionHistoryEntity.ActualCost field instance + public static EntityField2 ActualCost { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.ActualCost); }} + /// Creates a new TransactionHistoryEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.ModifiedDate); }} + /// Creates a new TransactionHistoryEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.ProductId); }} + /// Creates a new TransactionHistoryEntity.Quantity field instance + public static EntityField2 Quantity { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.Quantity); }} + /// Creates a new TransactionHistoryEntity.ReferenceOrderId field instance + public static EntityField2 ReferenceOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.ReferenceOrderId); }} + /// Creates a new TransactionHistoryEntity.ReferenceOrderLineId field instance + public static EntityField2 ReferenceOrderLineId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.ReferenceOrderLineId); }} + /// Creates a new TransactionHistoryEntity.TransactionDate field instance + public static EntityField2 TransactionDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.TransactionDate); }} + /// Creates a new TransactionHistoryEntity.TransactionId field instance + public static EntityField2 TransactionId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.TransactionId); }} + /// Creates a new TransactionHistoryEntity.TransactionType field instance + public static EntityField2 TransactionType { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryFieldIndex.TransactionType); }} + } + + /// Field Creation Class for entity TransactionHistoryArchiveEntity + public partial class TransactionHistoryArchiveFields + { + /// Creates a new TransactionHistoryArchiveEntity.ActualCost field instance + public static EntityField2 ActualCost { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.ActualCost); }} + /// Creates a new TransactionHistoryArchiveEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.ModifiedDate); }} + /// Creates a new TransactionHistoryArchiveEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.ProductId); }} + /// Creates a new TransactionHistoryArchiveEntity.Quantity field instance + public static EntityField2 Quantity { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.Quantity); }} + /// Creates a new TransactionHistoryArchiveEntity.ReferenceOrderId field instance + public static EntityField2 ReferenceOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.ReferenceOrderId); }} + /// Creates a new TransactionHistoryArchiveEntity.ReferenceOrderLineId field instance + public static EntityField2 ReferenceOrderLineId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.ReferenceOrderLineId); }} + /// Creates a new TransactionHistoryArchiveEntity.TransactionDate field instance + public static EntityField2 TransactionDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.TransactionDate); }} + /// Creates a new TransactionHistoryArchiveEntity.TransactionId field instance + public static EntityField2 TransactionId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.TransactionId); }} + /// Creates a new TransactionHistoryArchiveEntity.TransactionType field instance + public static EntityField2 TransactionType { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TransactionHistoryArchiveFieldIndex.TransactionType); }} + } + + /// Field Creation Class for entity UnitMeasureEntity + public partial class UnitMeasureFields + { + /// Creates a new UnitMeasureEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(UnitMeasureFieldIndex.ModifiedDate); }} + /// Creates a new UnitMeasureEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(UnitMeasureFieldIndex.Name); }} + /// Creates a new UnitMeasureEntity.UnitMeasureCode field instance + public static EntityField2 UnitMeasureCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(UnitMeasureFieldIndex.UnitMeasureCode); }} + } + + /// Field Creation Class for entity VendorEntity + public partial class VendorFields + { + /// Creates a new VendorEntity.AccountNumber field instance + public static EntityField2 AccountNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.AccountNumber); }} + /// Creates a new VendorEntity.ActiveFlag field instance + public static EntityField2 ActiveFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.ActiveFlag); }} + /// Creates a new VendorEntity.CreditRating field instance + public static EntityField2 CreditRating { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.CreditRating); }} + /// Creates a new VendorEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.ModifiedDate); }} + /// Creates a new VendorEntity.Name field instance + public static EntityField2 Name { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.Name); }} + /// Creates a new VendorEntity.PreferredVendorStatus field instance + public static EntityField2 PreferredVendorStatus { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.PreferredVendorStatus); }} + /// Creates a new VendorEntity.PurchasingWebServiceUrl field instance + public static EntityField2 PurchasingWebServiceUrl { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.PurchasingWebServiceUrl); }} + /// Creates a new VendorEntity.VendorId field instance + public static EntityField2 VendorId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(VendorFieldIndex.VendorId); }} + } + + /// Field Creation Class for entity WorkOrderEntity + public partial class WorkOrderFields + { + /// Creates a new WorkOrderEntity.DueDate field instance + public static EntityField2 DueDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.DueDate); }} + /// Creates a new WorkOrderEntity.EndDate field instance + public static EntityField2 EndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.EndDate); }} + /// Creates a new WorkOrderEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.ModifiedDate); }} + /// Creates a new WorkOrderEntity.OrderQty field instance + public static EntityField2 OrderQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.OrderQty); }} + /// Creates a new WorkOrderEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.ProductId); }} + /// Creates a new WorkOrderEntity.ScrappedQty field instance + public static EntityField2 ScrappedQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.ScrappedQty); }} + /// Creates a new WorkOrderEntity.ScrapReasonId field instance + public static EntityField2 ScrapReasonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.ScrapReasonId); }} + /// Creates a new WorkOrderEntity.StartDate field instance + public static EntityField2 StartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.StartDate); }} + /// Creates a new WorkOrderEntity.StockedQty field instance + public static EntityField2 StockedQty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.StockedQty); }} + /// Creates a new WorkOrderEntity.WorkOrderId field instance + public static EntityField2 WorkOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderFieldIndex.WorkOrderId); }} + } + + /// Field Creation Class for entity WorkOrderRoutingEntity + public partial class WorkOrderRoutingFields + { + /// Creates a new WorkOrderRoutingEntity.ActualCost field instance + public static EntityField2 ActualCost { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ActualCost); }} + /// Creates a new WorkOrderRoutingEntity.ActualEndDate field instance + public static EntityField2 ActualEndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ActualEndDate); }} + /// Creates a new WorkOrderRoutingEntity.ActualResourceHrs field instance + public static EntityField2 ActualResourceHrs { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ActualResourceHrs); }} + /// Creates a new WorkOrderRoutingEntity.ActualStartDate field instance + public static EntityField2 ActualStartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ActualStartDate); }} + /// Creates a new WorkOrderRoutingEntity.LocationId field instance + public static EntityField2 LocationId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.LocationId); }} + /// Creates a new WorkOrderRoutingEntity.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ModifiedDate); }} + /// Creates a new WorkOrderRoutingEntity.OperationSequence field instance + public static EntityField2 OperationSequence { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.OperationSequence); }} + /// Creates a new WorkOrderRoutingEntity.PlannedCost field instance + public static EntityField2 PlannedCost { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.PlannedCost); }} + /// Creates a new WorkOrderRoutingEntity.ProductId field instance + public static EntityField2 ProductId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ProductId); }} + /// Creates a new WorkOrderRoutingEntity.ScheduledEndDate field instance + public static EntityField2 ScheduledEndDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ScheduledEndDate); }} + /// Creates a new WorkOrderRoutingEntity.ScheduledStartDate field instance + public static EntityField2 ScheduledStartDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.ScheduledStartDate); }} + /// Creates a new WorkOrderRoutingEntity.WorkOrderId field instance + public static EntityField2 WorkOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(WorkOrderRoutingFieldIndex.WorkOrderId); }} + } + + + /// Field Creation Class for typedview SohTypedView + public partial class SohFields + { + /// Creates a new SohTypedView.SalesOrderId field instance + public static EntityField2 SalesOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.SalesOrderId); } } + /// Creates a new SohTypedView.RevisionNumber field instance + public static EntityField2 RevisionNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.RevisionNumber); } } + /// Creates a new SohTypedView.OrderDate field instance + public static EntityField2 OrderDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.OrderDate); } } + /// Creates a new SohTypedView.DueDate field instance + public static EntityField2 DueDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.DueDate); } } + /// Creates a new SohTypedView.ShipDate field instance + public static EntityField2 ShipDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.ShipDate); } } + /// Creates a new SohTypedView.Status field instance + public static EntityField2 Status { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.Status); } } + /// Creates a new SohTypedView.OnlineOrderFlag field instance + public static EntityField2 OnlineOrderFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.OnlineOrderFlag); } } + /// Creates a new SohTypedView.SalesOrderNumber field instance + public static EntityField2 SalesOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.SalesOrderNumber); } } + /// Creates a new SohTypedView.PurchaseOrderNumber field instance + public static EntityField2 PurchaseOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.PurchaseOrderNumber); } } + /// Creates a new SohTypedView.AccountNumber field instance + public static EntityField2 AccountNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.AccountNumber); } } + /// Creates a new SohTypedView.CustomerId field instance + public static EntityField2 CustomerId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.CustomerId); } } + /// Creates a new SohTypedView.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.SalesPersonId); } } + /// Creates a new SohTypedView.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.TerritoryId); } } + /// Creates a new SohTypedView.BillToAddressId field instance + public static EntityField2 BillToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.BillToAddressId); } } + /// Creates a new SohTypedView.ShipToAddressId field instance + public static EntityField2 ShipToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.ShipToAddressId); } } + /// Creates a new SohTypedView.ShipMethodId field instance + public static EntityField2 ShipMethodId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.ShipMethodId); } } + /// Creates a new SohTypedView.CreditCardId field instance + public static EntityField2 CreditCardId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.CreditCardId); } } + /// Creates a new SohTypedView.CreditCardApprovalCode field instance + public static EntityField2 CreditCardApprovalCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.CreditCardApprovalCode); } } + /// Creates a new SohTypedView.CurrencyRateId field instance + public static EntityField2 CurrencyRateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.CurrencyRateId); } } + /// Creates a new SohTypedView.SubTotal field instance + public static EntityField2 SubTotal { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.SubTotal); } } + /// Creates a new SohTypedView.TaxAmt field instance + public static EntityField2 TaxAmt { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.TaxAmt); } } + /// Creates a new SohTypedView.Freight field instance + public static EntityField2 Freight { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.Freight); } } + /// Creates a new SohTypedView.TotalDue field instance + public static EntityField2 TotalDue { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.TotalDue); } } + /// Creates a new SohTypedView.Comment field instance + public static EntityField2 Comment { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.Comment); } } + /// Creates a new SohTypedView.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.Rowguid); } } + /// Creates a new SohTypedView.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohFieldIndex.ModifiedDate); } } + } + + /// Field Creation Class for typedview SohLinqPocoTypedView + public partial class SohLinqPocoFields + { + /// Creates a new SohLinqPocoTypedView.SalesOrderId field instance + public static EntityField2 SalesOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.SalesOrderId); } } + /// Creates a new SohLinqPocoTypedView.RevisionNumber field instance + public static EntityField2 RevisionNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.RevisionNumber); } } + /// Creates a new SohLinqPocoTypedView.OrderDate field instance + public static EntityField2 OrderDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.OrderDate); } } + /// Creates a new SohLinqPocoTypedView.DueDate field instance + public static EntityField2 DueDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.DueDate); } } + /// Creates a new SohLinqPocoTypedView.ShipDate field instance + public static EntityField2 ShipDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.ShipDate); } } + /// Creates a new SohLinqPocoTypedView.Status field instance + public static EntityField2 Status { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.Status); } } + /// Creates a new SohLinqPocoTypedView.OnlineOrderFlag field instance + public static EntityField2 OnlineOrderFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.OnlineOrderFlag); } } + /// Creates a new SohLinqPocoTypedView.SalesOrderNumber field instance + public static EntityField2 SalesOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.SalesOrderNumber); } } + /// Creates a new SohLinqPocoTypedView.PurchaseOrderNumber field instance + public static EntityField2 PurchaseOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.PurchaseOrderNumber); } } + /// Creates a new SohLinqPocoTypedView.AccountNumber field instance + public static EntityField2 AccountNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.AccountNumber); } } + /// Creates a new SohLinqPocoTypedView.CustomerId field instance + public static EntityField2 CustomerId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.CustomerId); } } + /// Creates a new SohLinqPocoTypedView.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.SalesPersonId); } } + /// Creates a new SohLinqPocoTypedView.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.TerritoryId); } } + /// Creates a new SohLinqPocoTypedView.BillToAddressId field instance + public static EntityField2 BillToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.BillToAddressId); } } + /// Creates a new SohLinqPocoTypedView.ShipToAddressId field instance + public static EntityField2 ShipToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.ShipToAddressId); } } + /// Creates a new SohLinqPocoTypedView.ShipMethodId field instance + public static EntityField2 ShipMethodId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.ShipMethodId); } } + /// Creates a new SohLinqPocoTypedView.CreditCardId field instance + public static EntityField2 CreditCardId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.CreditCardId); } } + /// Creates a new SohLinqPocoTypedView.CreditCardApprovalCode field instance + public static EntityField2 CreditCardApprovalCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.CreditCardApprovalCode); } } + /// Creates a new SohLinqPocoTypedView.CurrencyRateId field instance + public static EntityField2 CurrencyRateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.CurrencyRateId); } } + /// Creates a new SohLinqPocoTypedView.SubTotal field instance + public static EntityField2 SubTotal { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.SubTotal); } } + /// Creates a new SohLinqPocoTypedView.TaxAmt field instance + public static EntityField2 TaxAmt { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.TaxAmt); } } + /// Creates a new SohLinqPocoTypedView.Freight field instance + public static EntityField2 Freight { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.Freight); } } + /// Creates a new SohLinqPocoTypedView.TotalDue field instance + public static EntityField2 TotalDue { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.TotalDue); } } + /// Creates a new SohLinqPocoTypedView.Comment field instance + public static EntityField2 Comment { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.Comment); } } + /// Creates a new SohLinqPocoTypedView.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.Rowguid); } } + /// Creates a new SohLinqPocoTypedView.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohLinqPocoFieldIndex.ModifiedDate); } } + } + + /// Field Creation Class for typedview SohQuerySpecPocoTypedView + public partial class SohQuerySpecPocoFields + { + /// Creates a new SohQuerySpecPocoTypedView.SalesOrderId field instance + public static EntityField2 SalesOrderId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.SalesOrderId); } } + /// Creates a new SohQuerySpecPocoTypedView.RevisionNumber field instance + public static EntityField2 RevisionNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.RevisionNumber); } } + /// Creates a new SohQuerySpecPocoTypedView.OrderDate field instance + public static EntityField2 OrderDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.OrderDate); } } + /// Creates a new SohQuerySpecPocoTypedView.DueDate field instance + public static EntityField2 DueDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.DueDate); } } + /// Creates a new SohQuerySpecPocoTypedView.ShipDate field instance + public static EntityField2 ShipDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.ShipDate); } } + /// Creates a new SohQuerySpecPocoTypedView.Status field instance + public static EntityField2 Status { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.Status); } } + /// Creates a new SohQuerySpecPocoTypedView.OnlineOrderFlag field instance + public static EntityField2 OnlineOrderFlag { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.OnlineOrderFlag); } } + /// Creates a new SohQuerySpecPocoTypedView.SalesOrderNumber field instance + public static EntityField2 SalesOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.SalesOrderNumber); } } + /// Creates a new SohQuerySpecPocoTypedView.PurchaseOrderNumber field instance + public static EntityField2 PurchaseOrderNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.PurchaseOrderNumber); } } + /// Creates a new SohQuerySpecPocoTypedView.AccountNumber field instance + public static EntityField2 AccountNumber { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.AccountNumber); } } + /// Creates a new SohQuerySpecPocoTypedView.CustomerId field instance + public static EntityField2 CustomerId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.CustomerId); } } + /// Creates a new SohQuerySpecPocoTypedView.SalesPersonId field instance + public static EntityField2 SalesPersonId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.SalesPersonId); } } + /// Creates a new SohQuerySpecPocoTypedView.TerritoryId field instance + public static EntityField2 TerritoryId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.TerritoryId); } } + /// Creates a new SohQuerySpecPocoTypedView.BillToAddressId field instance + public static EntityField2 BillToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.BillToAddressId); } } + /// Creates a new SohQuerySpecPocoTypedView.ShipToAddressId field instance + public static EntityField2 ShipToAddressId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.ShipToAddressId); } } + /// Creates a new SohQuerySpecPocoTypedView.ShipMethodId field instance + public static EntityField2 ShipMethodId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.ShipMethodId); } } + /// Creates a new SohQuerySpecPocoTypedView.CreditCardId field instance + public static EntityField2 CreditCardId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.CreditCardId); } } + /// Creates a new SohQuerySpecPocoTypedView.CreditCardApprovalCode field instance + public static EntityField2 CreditCardApprovalCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.CreditCardApprovalCode); } } + /// Creates a new SohQuerySpecPocoTypedView.CurrencyRateId field instance + public static EntityField2 CurrencyRateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.CurrencyRateId); } } + /// Creates a new SohQuerySpecPocoTypedView.SubTotal field instance + public static EntityField2 SubTotal { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.SubTotal); } } + /// Creates a new SohQuerySpecPocoTypedView.TaxAmt field instance + public static EntityField2 TaxAmt { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.TaxAmt); } } + /// Creates a new SohQuerySpecPocoTypedView.Freight field instance + public static EntityField2 Freight { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.Freight); } } + /// Creates a new SohQuerySpecPocoTypedView.TotalDue field instance + public static EntityField2 TotalDue { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.TotalDue); } } + /// Creates a new SohQuerySpecPocoTypedView.Comment field instance + public static EntityField2 Comment { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.Comment); } } + /// Creates a new SohQuerySpecPocoTypedView.Rowguid field instance + public static EntityField2 Rowguid { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.Rowguid); } } + /// Creates a new SohQuerySpecPocoTypedView.ModifiedDate field instance + public static EntityField2 ModifiedDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(SohQuerySpecPocoFieldIndex.ModifiedDate); } } + } +} \ No newline at end of file diff --git a/LLBLGen54/DatabaseGeneric/HelperClasses/LinqMetaData.cs b/LLBLGen54/DatabaseGeneric/HelperClasses/LinqMetaData.cs new file mode 100644 index 00000000..299ef855 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/HelperClasses/LinqMetaData.cs @@ -0,0 +1,420 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +////////////////////////////////////////////////////////////// +using System; +using System.Linq; +using System.Collections.Generic; +using SD.LLBLGen.Pro.LinqSupportClasses; +using SD.LLBLGen.Pro.ORMSupportClasses; +using AdventureWorks.Dal.Adapter.v54.EntityClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; + +namespace AdventureWorks.Dal.Adapter.v54.Linq +{ + /// Meta-data class for the construction of Linq queries which are to be executed using LLBLGen Pro code. + public partial class LinqMetaData: ILinqMetaData + { + /// CTor. Using this ctor will leave the IDataAccessAdapter object to use empty. To be able to execute the query, an IDataAccessAdapter instance + /// is required, and has to be set on the LLBLGenProProvider2 object in the query to execute. + public LinqMetaData() : this(null, null) { } + + /// CTor which accepts an IDataAccessAdapter implementing object, which will be used to execute queries created with this metadata class. + /// the IDataAccessAdapter to use in queries created with this meta data + /// Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data till they go out of scope. + public LinqMetaData(IDataAccessAdapter adapterToUse) : this (adapterToUse, null) { } + + /// CTor which accepts an IDataAccessAdapter implementing object, which will be used to execute queries created with this metadata class. + /// the IDataAccessAdapter to use in queries created with this meta data + /// The custom function mappings to use. These take higher precedence than the ones in the DQE to use. + /// Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data till they go out of scope. + public LinqMetaData(IDataAccessAdapter adapterToUse, FunctionMappingStore customFunctionMappings) + { + this.AdapterToUse = adapterToUse; + this.CustomFunctionMappings = customFunctionMappings; + } + + /// returns the datasource to use in a Linq query for the entity type specified + /// the type of the entity to get the datasource for + /// the requested datasource + public IDataSource GetQueryableForEntity(int typeOfEntity) + { + switch((AdventureWorks.Dal.Adapter.v54.EntityType)typeOfEntity) + { + case AdventureWorks.Dal.Adapter.v54.EntityType.AddressEntity: + return this.Address; + case AdventureWorks.Dal.Adapter.v54.EntityType.AddressTypeEntity: + return this.AddressType; + case AdventureWorks.Dal.Adapter.v54.EntityType.BillOfMaterialEntity: + return this.BillOfMaterial; + case AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityEntity: + return this.BusinessEntity; + case AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityAddressEntity: + return this.BusinessEntityAddress; + case AdventureWorks.Dal.Adapter.v54.EntityType.BusinessEntityContactEntity: + return this.BusinessEntityContact; + case AdventureWorks.Dal.Adapter.v54.EntityType.ContactCreditCardEntity: + return this.ContactCreditCard; + case AdventureWorks.Dal.Adapter.v54.EntityType.ContactTypeEntity: + return this.ContactType; + case AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionEntity: + return this.CountryRegion; + case AdventureWorks.Dal.Adapter.v54.EntityType.CountryRegionCurrencyEntity: + return this.CountryRegionCurrency; + case AdventureWorks.Dal.Adapter.v54.EntityType.CreditCardEntity: + return this.CreditCard; + case AdventureWorks.Dal.Adapter.v54.EntityType.CultureEntity: + return this.Culture; + case AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyEntity: + return this.Currency; + case AdventureWorks.Dal.Adapter.v54.EntityType.CurrencyRateEntity: + return this.CurrencyRate; + case AdventureWorks.Dal.Adapter.v54.EntityType.CustomerEntity: + return this.Customer; + case AdventureWorks.Dal.Adapter.v54.EntityType.DepartmentEntity: + return this.Department; + case AdventureWorks.Dal.Adapter.v54.EntityType.DocumentEntity: + return this.Document; + case AdventureWorks.Dal.Adapter.v54.EntityType.EmailAddressEntity: + return this.EmailAddress; + case AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeEntity: + return this.Employee; + case AdventureWorks.Dal.Adapter.v54.EntityType.EmployeeDepartmentHistoryEntity: + return this.EmployeeDepartmentHistory; + case AdventureWorks.Dal.Adapter.v54.EntityType.EmployeePayHistoryEntity: + return this.EmployeePayHistory; + case AdventureWorks.Dal.Adapter.v54.EntityType.IllustrationEntity: + return this.Illustration; + case AdventureWorks.Dal.Adapter.v54.EntityType.JobCandidateEntity: + return this.JobCandidate; + case AdventureWorks.Dal.Adapter.v54.EntityType.LocationEntity: + return this.Location; + case AdventureWorks.Dal.Adapter.v54.EntityType.PasswordEntity: + return this.Password; + case AdventureWorks.Dal.Adapter.v54.EntityType.PersonEntity: + return this.Person; + case AdventureWorks.Dal.Adapter.v54.EntityType.PersonPhoneEntity: + return this.PersonPhone; + case AdventureWorks.Dal.Adapter.v54.EntityType.PhoneNumberTypeEntity: + return this.PhoneNumberType; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductEntity: + return this.Product; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductCategoryEntity: + return this.ProductCategory; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductCostHistoryEntity: + return this.ProductCostHistory; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductDescriptionEntity: + return this.ProductDescription; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductDocumentEntity: + return this.ProductDocument; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductInventoryEntity: + return this.ProductInventory; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductListPriceHistoryEntity: + return this.ProductListPriceHistory; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelEntity: + return this.ProductModel; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelIllustrationEntity: + return this.ProductModelIllustration; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductModelProductDescriptionCultureEntity: + return this.ProductModelProductDescriptionCulture; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductPhotoEntity: + return this.ProductPhoto; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductProductPhotoEntity: + return this.ProductProductPhoto; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductReviewEntity: + return this.ProductReview; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductSubcategoryEntity: + return this.ProductSubcategory; + case AdventureWorks.Dal.Adapter.v54.EntityType.ProductVendorEntity: + return this.ProductVendor; + case AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderDetailEntity: + return this.PurchaseOrderDetail; + case AdventureWorks.Dal.Adapter.v54.EntityType.PurchaseOrderHeaderEntity: + return this.PurchaseOrderHeader; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderDetailEntity: + return this.SalesOrderDetail; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderEntity: + return this.SalesOrderHeader; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesOrderHeaderSalesReasonEntity: + return this.SalesOrderHeaderSalesReason; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonEntity: + return this.SalesPerson; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesPersonQuotaHistoryEntity: + return this.SalesPersonQuotaHistory; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesReasonEntity: + return this.SalesReason; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesTaxRateEntity: + return this.SalesTaxRate; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryEntity: + return this.SalesTerritory; + case AdventureWorks.Dal.Adapter.v54.EntityType.SalesTerritoryHistoryEntity: + return this.SalesTerritoryHistory; + case AdventureWorks.Dal.Adapter.v54.EntityType.ScrapReasonEntity: + return this.ScrapReason; + case AdventureWorks.Dal.Adapter.v54.EntityType.ShiftEntity: + return this.Shift; + case AdventureWorks.Dal.Adapter.v54.EntityType.ShipMethodEntity: + return this.ShipMethod; + case AdventureWorks.Dal.Adapter.v54.EntityType.ShoppingCartItemEntity: + return this.ShoppingCartItem; + case AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferEntity: + return this.SpecialOffer; + case AdventureWorks.Dal.Adapter.v54.EntityType.SpecialOfferProductEntity: + return this.SpecialOfferProduct; + case AdventureWorks.Dal.Adapter.v54.EntityType.StateProvinceEntity: + return this.StateProvince; + case AdventureWorks.Dal.Adapter.v54.EntityType.StoreEntity: + return this.Store; + case AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryEntity: + return this.TransactionHistory; + case AdventureWorks.Dal.Adapter.v54.EntityType.TransactionHistoryArchiveEntity: + return this.TransactionHistoryArchive; + case AdventureWorks.Dal.Adapter.v54.EntityType.UnitMeasureEntity: + return this.UnitMeasure; + case AdventureWorks.Dal.Adapter.v54.EntityType.VendorEntity: + return this.Vendor; + case AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderEntity: + return this.WorkOrder; + case AdventureWorks.Dal.Adapter.v54.EntityType.WorkOrderRoutingEntity: + return this.WorkOrderRouting; + default: + return null; + } + } + + /// returns the datasource to use in a Linq query for the entity type specified + /// the type of the entity to get the datasource for + /// the requested datasource + public DataSource2 GetQueryableForEntity() + where TEntity : class + { + return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); + } + + /// returns the datasource to use in a Linq query when targeting AddressEntity instances in the database. + public DataSource2 Address { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting AddressTypeEntity instances in the database. + public DataSource2 AddressType { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting BillOfMaterialEntity instances in the database. + public DataSource2 BillOfMaterial { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting BusinessEntityEntity instances in the database. + public DataSource2 BusinessEntity { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting BusinessEntityAddressEntity instances in the database. + public DataSource2 BusinessEntityAddress { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting BusinessEntityContactEntity instances in the database. + public DataSource2 BusinessEntityContact { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ContactCreditCardEntity instances in the database. + public DataSource2 ContactCreditCard { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ContactTypeEntity instances in the database. + public DataSource2 ContactType { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting CountryRegionEntity instances in the database. + public DataSource2 CountryRegion { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting CountryRegionCurrencyEntity instances in the database. + public DataSource2 CountryRegionCurrency { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting CreditCardEntity instances in the database. + public DataSource2 CreditCard { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting CultureEntity instances in the database. + public DataSource2 Culture { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting CurrencyEntity instances in the database. + public DataSource2 Currency { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting CurrencyRateEntity instances in the database. + public DataSource2 CurrencyRate { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting CustomerEntity instances in the database. + public DataSource2 Customer { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting DepartmentEntity instances in the database. + public DataSource2 Department { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting DocumentEntity instances in the database. + public DataSource2 Document { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting EmailAddressEntity instances in the database. + public DataSource2 EmailAddress { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting EmployeeEntity instances in the database. + public DataSource2 Employee { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting EmployeeDepartmentHistoryEntity instances in the database. + public DataSource2 EmployeeDepartmentHistory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting EmployeePayHistoryEntity instances in the database. + public DataSource2 EmployeePayHistory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting IllustrationEntity instances in the database. + public DataSource2 Illustration { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting JobCandidateEntity instances in the database. + public DataSource2 JobCandidate { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting LocationEntity instances in the database. + public DataSource2 Location { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting PasswordEntity instances in the database. + public DataSource2 Password { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting PersonEntity instances in the database. + public DataSource2 Person { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting PersonPhoneEntity instances in the database. + public DataSource2 PersonPhone { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting PhoneNumberTypeEntity instances in the database. + public DataSource2 PhoneNumberType { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductEntity instances in the database. + public DataSource2 Product { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductCategoryEntity instances in the database. + public DataSource2 ProductCategory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductCostHistoryEntity instances in the database. + public DataSource2 ProductCostHistory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductDescriptionEntity instances in the database. + public DataSource2 ProductDescription { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductDocumentEntity instances in the database. + public DataSource2 ProductDocument { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductInventoryEntity instances in the database. + public DataSource2 ProductInventory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductListPriceHistoryEntity instances in the database. + public DataSource2 ProductListPriceHistory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductModelEntity instances in the database. + public DataSource2 ProductModel { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductModelIllustrationEntity instances in the database. + public DataSource2 ProductModelIllustration { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductModelProductDescriptionCultureEntity instances in the database. + public DataSource2 ProductModelProductDescriptionCulture { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductPhotoEntity instances in the database. + public DataSource2 ProductPhoto { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductProductPhotoEntity instances in the database. + public DataSource2 ProductProductPhoto { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductReviewEntity instances in the database. + public DataSource2 ProductReview { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductSubcategoryEntity instances in the database. + public DataSource2 ProductSubcategory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ProductVendorEntity instances in the database. + public DataSource2 ProductVendor { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting PurchaseOrderDetailEntity instances in the database. + public DataSource2 PurchaseOrderDetail { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting PurchaseOrderHeaderEntity instances in the database. + public DataSource2 PurchaseOrderHeader { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesOrderDetailEntity instances in the database. + public DataSource2 SalesOrderDetail { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesOrderHeaderEntity instances in the database. + public DataSource2 SalesOrderHeader { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesOrderHeaderSalesReasonEntity instances in the database. + public DataSource2 SalesOrderHeaderSalesReason { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesPersonEntity instances in the database. + public DataSource2 SalesPerson { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesPersonQuotaHistoryEntity instances in the database. + public DataSource2 SalesPersonQuotaHistory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesReasonEntity instances in the database. + public DataSource2 SalesReason { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesTaxRateEntity instances in the database. + public DataSource2 SalesTaxRate { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesTerritoryEntity instances in the database. + public DataSource2 SalesTerritory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SalesTerritoryHistoryEntity instances in the database. + public DataSource2 SalesTerritoryHistory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ScrapReasonEntity instances in the database. + public DataSource2 ScrapReason { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ShiftEntity instances in the database. + public DataSource2 Shift { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ShipMethodEntity instances in the database. + public DataSource2 ShipMethod { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting ShoppingCartItemEntity instances in the database. + public DataSource2 ShoppingCartItem { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SpecialOfferEntity instances in the database. + public DataSource2 SpecialOffer { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting SpecialOfferProductEntity instances in the database. + public DataSource2 SpecialOfferProduct { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting StateProvinceEntity instances in the database. + public DataSource2 StateProvince { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting StoreEntity instances in the database. + public DataSource2 Store { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting TransactionHistoryEntity instances in the database. + public DataSource2 TransactionHistory { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting TransactionHistoryArchiveEntity instances in the database. + public DataSource2 TransactionHistoryArchive { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting UnitMeasureEntity instances in the database. + public DataSource2 UnitMeasure { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting VendorEntity instances in the database. + public DataSource2 Vendor { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting WorkOrderEntity instances in the database. + public DataSource2 WorkOrder { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + /// returns the datasource to use in a Linq query when targeting WorkOrderRoutingEntity instances in the database. + public DataSource2 WorkOrderRouting { get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } } + + + /// returns the datasource to use in a Linq query when targeting SohLinqPoco instances in the database. + public DataSource2 SohLinqPoco + { + get { return new DataSource2(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse) { TypedViewEnumTypeValue=(int)TypedViewType.SohLinqPocoTypedView }; } + } + + + /// Gets / sets the IDataAccessAdapter to use for the queries created with this meta data object. + /// Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data + /// till they go out of scope. + public IDataAccessAdapter AdapterToUse { get; set; } + + /// Gets or sets the custom function mappings to use. These take higher precedence than the ones in the DQE to use + public FunctionMappingStore CustomFunctionMappings { get; set; } + + /// Gets or sets the Context instance to use for entity fetches. + public Context ContextToUse { get; set; } + } +} \ No newline at end of file diff --git a/LLBLGen53/DatabaseGeneric/HelperClasses/FieldInfoProvider.cs b/LLBLGen54/DatabaseGeneric/HelperClasses/ModelInfoProvider.cs similarity index 89% rename from LLBLGen53/DatabaseGeneric/HelperClasses/FieldInfoProvider.cs rename to LLBLGen54/DatabaseGeneric/HelperClasses/ModelInfoProvider.cs index 32037f22..81777c4e 100644 --- a/LLBLGen53/DatabaseGeneric/HelperClasses/FieldInfoProvider.cs +++ b/LLBLGen54/DatabaseGeneric/HelperClasses/ModelInfoProvider.cs @@ -1,47 +1,38 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro v5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. -// Templates version: ////////////////////////////////////////////////////////////// using System; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.RelationClasses; using SD.LLBLGen.Pro.ORMSupportClasses; -namespace AdventureWorks.Dal.Adapter.v53.HelperClasses +namespace AdventureWorks.Dal.Adapter.v54.HelperClasses { - - // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces - // __LLBLGENPRO_USER_CODE_REGION_END - - /// Singleton implementation of the FieldInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved. - /// It uses a single instance of an internal class. The access isn't marked with locks as the FieldInfoProviderBase class is threadsafe. - internal static class FieldInfoProviderSingleton + /// Singleton implementation of the ModelInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved. + public static class ModelInfoProviderSingleton { - #region Class Member Declarations - private static readonly IFieldInfoProvider _providerInstance = new FieldInfoProviderCore(); - #endregion + private static readonly IModelInfoProvider _providerInstance = new ModelInfoProviderCore(); /// Dummy static constructor to make sure threadsafe initialization is performed. - static FieldInfoProviderSingleton() - { - } + static ModelInfoProviderSingleton() { } - /// Gets the singleton instance of the FieldInfoProviderCore + /// Gets the singleton instance of the ModelInfoProviderCore /// Instance of the FieldInfoProvider. - public static IFieldInfoProvider GetInstance() + public static IModelInfoProvider GetInstance() { return _providerInstance; } } - /// Actual implementation of the FieldInfoProvider. Used by singleton wrapper. - internal class FieldInfoProviderCore : FieldInfoProviderBase + /// Actual implementation of the ModelInfoProvider. + internal class ModelInfoProviderCore : ModelInfoProviderBase { - /// Initializes a new instance of the class. - internal FieldInfoProviderCore() + /// Initializes a new instance of the class. + internal ModelInfoProviderCore() { Init(); } @@ -50,82 +41,82 @@ internal FieldInfoProviderCore() private void Init() { this.InitClass(); - InitAddressEntityInfos(); - InitAddressTypeEntityInfos(); - InitBillOfMaterialEntityInfos(); - InitBusinessEntityEntityInfos(); - InitBusinessEntityAddressEntityInfos(); - InitBusinessEntityContactEntityInfos(); - InitContactCreditCardEntityInfos(); - InitContactTypeEntityInfos(); - InitCountryRegionEntityInfos(); - InitCountryRegionCurrencyEntityInfos(); - InitCreditCardEntityInfos(); - InitCultureEntityInfos(); - InitCurrencyEntityInfos(); - InitCurrencyRateEntityInfos(); - InitCustomerEntityInfos(); - InitDepartmentEntityInfos(); - InitDocumentEntityInfos(); - InitEmailAddressEntityInfos(); - InitEmployeeEntityInfos(); - InitEmployeeDepartmentHistoryEntityInfos(); - InitEmployeePayHistoryEntityInfos(); - InitIllustrationEntityInfos(); - InitJobCandidateEntityInfos(); - InitLocationEntityInfos(); - InitPasswordEntityInfos(); - InitPersonEntityInfos(); - InitPersonPhoneEntityInfos(); - InitPhoneNumberTypeEntityInfos(); - InitProductEntityInfos(); - InitProductCategoryEntityInfos(); - InitProductCostHistoryEntityInfos(); - InitProductDescriptionEntityInfos(); - InitProductDocumentEntityInfos(); - InitProductInventoryEntityInfos(); - InitProductListPriceHistoryEntityInfos(); - InitProductModelEntityInfos(); - InitProductModelIllustrationEntityInfos(); - InitProductModelProductDescriptionCultureEntityInfos(); - InitProductPhotoEntityInfos(); - InitProductProductPhotoEntityInfos(); - InitProductReviewEntityInfos(); - InitProductSubcategoryEntityInfos(); - InitProductVendorEntityInfos(); - InitPurchaseOrderDetailEntityInfos(); - InitPurchaseOrderHeaderEntityInfos(); - InitSalesOrderDetailEntityInfos(); - InitSalesOrderHeaderEntityInfos(); - InitSalesOrderHeaderSalesReasonEntityInfos(); - InitSalesPersonEntityInfos(); - InitSalesPersonQuotaHistoryEntityInfos(); - InitSalesReasonEntityInfos(); - InitSalesTaxRateEntityInfos(); - InitSalesTerritoryEntityInfos(); - InitSalesTerritoryHistoryEntityInfos(); - InitScrapReasonEntityInfos(); - InitShiftEntityInfos(); - InitShipMethodEntityInfos(); - InitShoppingCartItemEntityInfos(); - InitSpecialOfferEntityInfos(); - InitSpecialOfferProductEntityInfos(); - InitStateProvinceEntityInfos(); - InitStoreEntityInfos(); - InitTransactionHistoryEntityInfos(); - InitTransactionHistoryArchiveEntityInfos(); - InitUnitMeasureEntityInfos(); - InitVendorEntityInfos(); - InitWorkOrderEntityInfos(); - InitWorkOrderRoutingEntityInfos(); - InitSohTypedViewInfos(); - InitSohLinqPocoTypedViewInfos(); - InitSohQuerySpecPocoTypedViewInfos(); - this.ConstructElementFieldStructures(InheritanceInfoProviderSingleton.GetInstance()); - } - - /// Inits AddressEntity's FieldInfo objects - private void InitAddressEntityInfos() + InitAddressEntityInfo(); + InitAddressTypeEntityInfo(); + InitBillOfMaterialEntityInfo(); + InitBusinessEntityEntityInfo(); + InitBusinessEntityAddressEntityInfo(); + InitBusinessEntityContactEntityInfo(); + InitContactCreditCardEntityInfo(); + InitContactTypeEntityInfo(); + InitCountryRegionEntityInfo(); + InitCountryRegionCurrencyEntityInfo(); + InitCreditCardEntityInfo(); + InitCultureEntityInfo(); + InitCurrencyEntityInfo(); + InitCurrencyRateEntityInfo(); + InitCustomerEntityInfo(); + InitDepartmentEntityInfo(); + InitDocumentEntityInfo(); + InitEmailAddressEntityInfo(); + InitEmployeeEntityInfo(); + InitEmployeeDepartmentHistoryEntityInfo(); + InitEmployeePayHistoryEntityInfo(); + InitIllustrationEntityInfo(); + InitJobCandidateEntityInfo(); + InitLocationEntityInfo(); + InitPasswordEntityInfo(); + InitPersonEntityInfo(); + InitPersonPhoneEntityInfo(); + InitPhoneNumberTypeEntityInfo(); + InitProductEntityInfo(); + InitProductCategoryEntityInfo(); + InitProductCostHistoryEntityInfo(); + InitProductDescriptionEntityInfo(); + InitProductDocumentEntityInfo(); + InitProductInventoryEntityInfo(); + InitProductListPriceHistoryEntityInfo(); + InitProductModelEntityInfo(); + InitProductModelIllustrationEntityInfo(); + InitProductModelProductDescriptionCultureEntityInfo(); + InitProductPhotoEntityInfo(); + InitProductProductPhotoEntityInfo(); + InitProductReviewEntityInfo(); + InitProductSubcategoryEntityInfo(); + InitProductVendorEntityInfo(); + InitPurchaseOrderDetailEntityInfo(); + InitPurchaseOrderHeaderEntityInfo(); + InitSalesOrderDetailEntityInfo(); + InitSalesOrderHeaderEntityInfo(); + InitSalesOrderHeaderSalesReasonEntityInfo(); + InitSalesPersonEntityInfo(); + InitSalesPersonQuotaHistoryEntityInfo(); + InitSalesReasonEntityInfo(); + InitSalesTaxRateEntityInfo(); + InitSalesTerritoryEntityInfo(); + InitSalesTerritoryHistoryEntityInfo(); + InitScrapReasonEntityInfo(); + InitShiftEntityInfo(); + InitShipMethodEntityInfo(); + InitShoppingCartItemEntityInfo(); + InitSpecialOfferEntityInfo(); + InitSpecialOfferProductEntityInfo(); + InitStateProvinceEntityInfo(); + InitStoreEntityInfo(); + InitTransactionHistoryEntityInfo(); + InitTransactionHistoryArchiveEntityInfo(); + InitUnitMeasureEntityInfo(); + InitVendorEntityInfo(); + InitWorkOrderEntityInfo(); + InitWorkOrderRoutingEntityInfo(); + InitSohTypedViewInfo(); + InitSohLinqPocoTypedViewInfo(); + InitSohQuerySpecPocoTypedViewInfo(); + this.BuildInternalStructures(); + } + + /// Inits AddressEntity's info objects + private void InitAddressEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(AddressFieldIndex), "AddressEntity"); this.AddElementFieldInfo("AddressEntity", "AddressId", typeof(System.Int32), true, false, true, false, (int)AddressFieldIndex.AddressId, 0, 0, 10); @@ -138,8 +129,9 @@ private void InitAddressEntityInfos() this.AddElementFieldInfo("AddressEntity", "SpatialLocation", typeof(Microsoft.SqlServer.Types.SqlGeography), false, false, false, true, (int)AddressFieldIndex.SpatialLocation, 0, 0, 0); this.AddElementFieldInfo("AddressEntity", "StateProvinceId", typeof(System.Int32), false, true, false, false, (int)AddressFieldIndex.StateProvinceId, 0, 0, 10); } - /// Inits AddressTypeEntity's FieldInfo objects - private void InitAddressTypeEntityInfos() + + /// Inits AddressTypeEntity's info objects + private void InitAddressTypeEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(AddressTypeFieldIndex), "AddressTypeEntity"); this.AddElementFieldInfo("AddressTypeEntity", "AddressTypeId", typeof(System.Int32), true, false, true, false, (int)AddressTypeFieldIndex.AddressTypeId, 0, 0, 10); @@ -147,8 +139,9 @@ private void InitAddressTypeEntityInfos() this.AddElementFieldInfo("AddressTypeEntity", "Name", typeof(System.String), false, false, false, false, (int)AddressTypeFieldIndex.Name, 50, 0, 0); this.AddElementFieldInfo("AddressTypeEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)AddressTypeFieldIndex.Rowguid, 0, 0, 0); } - /// Inits BillOfMaterialEntity's FieldInfo objects - private void InitBillOfMaterialEntityInfos() + + /// Inits BillOfMaterialEntity's info objects + private void InitBillOfMaterialEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(BillOfMaterialFieldIndex), "BillOfMaterialEntity"); this.AddElementFieldInfo("BillOfMaterialEntity", "BillOfMaterialsId", typeof(System.Int32), true, false, true, false, (int)BillOfMaterialFieldIndex.BillOfMaterialsId, 0, 0, 10); @@ -161,16 +154,18 @@ private void InitBillOfMaterialEntityInfos() this.AddElementFieldInfo("BillOfMaterialEntity", "StartDate", typeof(System.DateTime), false, false, false, false, (int)BillOfMaterialFieldIndex.StartDate, 0, 0, 0); this.AddElementFieldInfo("BillOfMaterialEntity", "UnitMeasureCode", typeof(System.String), false, true, false, false, (int)BillOfMaterialFieldIndex.UnitMeasureCode, 3, 0, 0); } - /// Inits BusinessEntityEntity's FieldInfo objects - private void InitBusinessEntityEntityInfos() + + /// Inits BusinessEntityEntity's info objects + private void InitBusinessEntityEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(BusinessEntityFieldIndex), "BusinessEntityEntity"); this.AddElementFieldInfo("BusinessEntityEntity", "BusinessEntityId", typeof(System.Int32), true, false, true, false, (int)BusinessEntityFieldIndex.BusinessEntityId, 0, 0, 10); this.AddElementFieldInfo("BusinessEntityEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)BusinessEntityFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("BusinessEntityEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)BusinessEntityFieldIndex.Rowguid, 0, 0, 0); } - /// Inits BusinessEntityAddressEntity's FieldInfo objects - private void InitBusinessEntityAddressEntityInfos() + + /// Inits BusinessEntityAddressEntity's info objects + private void InitBusinessEntityAddressEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(BusinessEntityAddressFieldIndex), "BusinessEntityAddressEntity"); this.AddElementFieldInfo("BusinessEntityAddressEntity", "AddressId", typeof(System.Int32), true, true, false, false, (int)BusinessEntityAddressFieldIndex.AddressId, 0, 0, 10); @@ -179,8 +174,9 @@ private void InitBusinessEntityAddressEntityInfos() this.AddElementFieldInfo("BusinessEntityAddressEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)BusinessEntityAddressFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("BusinessEntityAddressEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)BusinessEntityAddressFieldIndex.Rowguid, 0, 0, 0); } - /// Inits BusinessEntityContactEntity's FieldInfo objects - private void InitBusinessEntityContactEntityInfos() + + /// Inits BusinessEntityContactEntity's info objects + private void InitBusinessEntityContactEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(BusinessEntityContactFieldIndex), "BusinessEntityContactEntity"); this.AddElementFieldInfo("BusinessEntityContactEntity", "BusinessEntityId", typeof(System.Int32), true, true, false, false, (int)BusinessEntityContactFieldIndex.BusinessEntityId, 0, 0, 10); @@ -189,40 +185,45 @@ private void InitBusinessEntityContactEntityInfos() this.AddElementFieldInfo("BusinessEntityContactEntity", "PersonId", typeof(System.Int32), true, true, false, false, (int)BusinessEntityContactFieldIndex.PersonId, 0, 0, 10); this.AddElementFieldInfo("BusinessEntityContactEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)BusinessEntityContactFieldIndex.Rowguid, 0, 0, 0); } - /// Inits ContactCreditCardEntity's FieldInfo objects - private void InitContactCreditCardEntityInfos() + + /// Inits ContactCreditCardEntity's info objects + private void InitContactCreditCardEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ContactCreditCardFieldIndex), "ContactCreditCardEntity"); this.AddElementFieldInfo("ContactCreditCardEntity", "ContactId", typeof(System.Int32), true, true, false, false, (int)ContactCreditCardFieldIndex.ContactId, 0, 0, 10); this.AddElementFieldInfo("ContactCreditCardEntity", "CreditCardId", typeof(System.Int32), true, true, false, false, (int)ContactCreditCardFieldIndex.CreditCardId, 0, 0, 10); this.AddElementFieldInfo("ContactCreditCardEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ContactCreditCardFieldIndex.ModifiedDate, 0, 0, 0); } - /// Inits ContactTypeEntity's FieldInfo objects - private void InitContactTypeEntityInfos() + + /// Inits ContactTypeEntity's info objects + private void InitContactTypeEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ContactTypeFieldIndex), "ContactTypeEntity"); this.AddElementFieldInfo("ContactTypeEntity", "ContactTypeId", typeof(System.Int32), true, false, true, false, (int)ContactTypeFieldIndex.ContactTypeId, 0, 0, 10); this.AddElementFieldInfo("ContactTypeEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ContactTypeFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("ContactTypeEntity", "Name", typeof(System.String), false, false, false, false, (int)ContactTypeFieldIndex.Name, 50, 0, 0); } - /// Inits CountryRegionEntity's FieldInfo objects - private void InitCountryRegionEntityInfos() + + /// Inits CountryRegionEntity's info objects + private void InitCountryRegionEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(CountryRegionFieldIndex), "CountryRegionEntity"); this.AddElementFieldInfo("CountryRegionEntity", "CountryRegionCode", typeof(System.String), true, false, false, false, (int)CountryRegionFieldIndex.CountryRegionCode, 3, 0, 0); this.AddElementFieldInfo("CountryRegionEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)CountryRegionFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("CountryRegionEntity", "Name", typeof(System.String), false, false, false, false, (int)CountryRegionFieldIndex.Name, 50, 0, 0); } - /// Inits CountryRegionCurrencyEntity's FieldInfo objects - private void InitCountryRegionCurrencyEntityInfos() + + /// Inits CountryRegionCurrencyEntity's info objects + private void InitCountryRegionCurrencyEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(CountryRegionCurrencyFieldIndex), "CountryRegionCurrencyEntity"); this.AddElementFieldInfo("CountryRegionCurrencyEntity", "CountryRegionCode", typeof(System.String), true, true, false, false, (int)CountryRegionCurrencyFieldIndex.CountryRegionCode, 3, 0, 0); this.AddElementFieldInfo("CountryRegionCurrencyEntity", "CurrencyCode", typeof(System.String), true, true, false, false, (int)CountryRegionCurrencyFieldIndex.CurrencyCode, 3, 0, 0); this.AddElementFieldInfo("CountryRegionCurrencyEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)CountryRegionCurrencyFieldIndex.ModifiedDate, 0, 0, 0); } - /// Inits CreditCardEntity's FieldInfo objects - private void InitCreditCardEntityInfos() + + /// Inits CreditCardEntity's info objects + private void InitCreditCardEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(CreditCardFieldIndex), "CreditCardEntity"); this.AddElementFieldInfo("CreditCardEntity", "CardNumber", typeof(System.String), false, false, false, false, (int)CreditCardFieldIndex.CardNumber, 25, 0, 0); @@ -232,24 +233,27 @@ private void InitCreditCardEntityInfos() this.AddElementFieldInfo("CreditCardEntity", "ExpYear", typeof(System.Int16), false, false, false, false, (int)CreditCardFieldIndex.ExpYear, 0, 0, 5); this.AddElementFieldInfo("CreditCardEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)CreditCardFieldIndex.ModifiedDate, 0, 0, 0); } - /// Inits CultureEntity's FieldInfo objects - private void InitCultureEntityInfos() + + /// Inits CultureEntity's info objects + private void InitCultureEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(CultureFieldIndex), "CultureEntity"); this.AddElementFieldInfo("CultureEntity", "CultureId", typeof(System.String), true, false, false, false, (int)CultureFieldIndex.CultureId, 6, 0, 0); this.AddElementFieldInfo("CultureEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)CultureFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("CultureEntity", "Name", typeof(System.String), false, false, false, false, (int)CultureFieldIndex.Name, 50, 0, 0); } - /// Inits CurrencyEntity's FieldInfo objects - private void InitCurrencyEntityInfos() + + /// Inits CurrencyEntity's info objects + private void InitCurrencyEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(CurrencyFieldIndex), "CurrencyEntity"); this.AddElementFieldInfo("CurrencyEntity", "CurrencyCode", typeof(System.String), true, false, false, false, (int)CurrencyFieldIndex.CurrencyCode, 3, 0, 0); this.AddElementFieldInfo("CurrencyEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)CurrencyFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("CurrencyEntity", "Name", typeof(System.String), false, false, false, false, (int)CurrencyFieldIndex.Name, 50, 0, 0); } - /// Inits CurrencyRateEntity's FieldInfo objects - private void InitCurrencyRateEntityInfos() + + /// Inits CurrencyRateEntity's info objects + private void InitCurrencyRateEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(CurrencyRateFieldIndex), "CurrencyRateEntity"); this.AddElementFieldInfo("CurrencyRateEntity", "AverageRate", typeof(System.Decimal), false, false, false, false, (int)CurrencyRateFieldIndex.AverageRate, 0, 4, 19); @@ -260,8 +264,9 @@ private void InitCurrencyRateEntityInfos() this.AddElementFieldInfo("CurrencyRateEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)CurrencyRateFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("CurrencyRateEntity", "ToCurrencyCode", typeof(System.String), false, true, false, false, (int)CurrencyRateFieldIndex.ToCurrencyCode, 3, 0, 0); } - /// Inits CustomerEntity's FieldInfo objects - private void InitCustomerEntityInfos() + + /// Inits CustomerEntity's info objects + private void InitCustomerEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(CustomerFieldIndex), "CustomerEntity"); this.AddElementFieldInfo("CustomerEntity", "AccountNumber", typeof(System.String), false, false, true, false, (int)CustomerFieldIndex.AccountNumber, 10, 0, 0); @@ -272,8 +277,9 @@ private void InitCustomerEntityInfos() this.AddElementFieldInfo("CustomerEntity", "StoreId", typeof(Nullable), false, true, false, true, (int)CustomerFieldIndex.StoreId, 0, 0, 10); this.AddElementFieldInfo("CustomerEntity", "TerritoryId", typeof(Nullable), false, true, false, true, (int)CustomerFieldIndex.TerritoryId, 0, 0, 10); } - /// Inits DepartmentEntity's FieldInfo objects - private void InitDepartmentEntityInfos() + + /// Inits DepartmentEntity's info objects + private void InitDepartmentEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(DepartmentFieldIndex), "DepartmentEntity"); this.AddElementFieldInfo("DepartmentEntity", "DepartmentId", typeof(System.Int16), true, false, true, false, (int)DepartmentFieldIndex.DepartmentId, 0, 0, 5); @@ -281,8 +287,9 @@ private void InitDepartmentEntityInfos() this.AddElementFieldInfo("DepartmentEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)DepartmentFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("DepartmentEntity", "Name", typeof(System.String), false, false, false, false, (int)DepartmentFieldIndex.Name, 50, 0, 0); } - /// Inits DocumentEntity's FieldInfo objects - private void InitDocumentEntityInfos() + + /// Inits DocumentEntity's info objects + private void InitDocumentEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(DocumentFieldIndex), "DocumentEntity"); this.AddElementFieldInfo("DocumentEntity", "ChangeNumber", typeof(System.Int32), false, false, false, false, (int)DocumentFieldIndex.ChangeNumber, 0, 0, 10); @@ -300,8 +307,9 @@ private void InitDocumentEntityInfos() this.AddElementFieldInfo("DocumentEntity", "Status", typeof(System.Byte), false, false, false, false, (int)DocumentFieldIndex.Status, 0, 0, 3); this.AddElementFieldInfo("DocumentEntity", "Title", typeof(System.String), false, false, false, false, (int)DocumentFieldIndex.Title, 50, 0, 0); } - /// Inits EmailAddressEntity's FieldInfo objects - private void InitEmailAddressEntityInfos() + + /// Inits EmailAddressEntity's info objects + private void InitEmailAddressEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(EmailAddressFieldIndex), "EmailAddressEntity"); this.AddElementFieldInfo("EmailAddressEntity", "BusinessEntityId", typeof(System.Int32), true, true, false, false, (int)EmailAddressFieldIndex.BusinessEntityId, 0, 0, 10); @@ -310,8 +318,9 @@ private void InitEmailAddressEntityInfos() this.AddElementFieldInfo("EmailAddressEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)EmailAddressFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("EmailAddressEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)EmailAddressFieldIndex.Rowguid, 0, 0, 0); } - /// Inits EmployeeEntity's FieldInfo objects - private void InitEmployeeEntityInfos() + + /// Inits EmployeeEntity's info objects + private void InitEmployeeEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(EmployeeFieldIndex), "EmployeeEntity"); this.AddElementFieldInfo("EmployeeEntity", "BirthDate", typeof(System.DateTime), false, false, false, false, (int)EmployeeFieldIndex.BirthDate, 0, 0, 0); @@ -331,8 +340,9 @@ private void InitEmployeeEntityInfos() this.AddElementFieldInfo("EmployeeEntity", "Title", typeof(System.String), false, false, false, false, (int)EmployeeFieldIndex.Title, 50, 0, 0); this.AddElementFieldInfo("EmployeeEntity", "VacationHours", typeof(System.Int16), false, false, false, false, (int)EmployeeFieldIndex.VacationHours, 0, 0, 5); } - /// Inits EmployeeDepartmentHistoryEntity's FieldInfo objects - private void InitEmployeeDepartmentHistoryEntityInfos() + + /// Inits EmployeeDepartmentHistoryEntity's info objects + private void InitEmployeeDepartmentHistoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(EmployeeDepartmentHistoryFieldIndex), "EmployeeDepartmentHistoryEntity"); this.AddElementFieldInfo("EmployeeDepartmentHistoryEntity", "DepartmentId", typeof(System.Int16), true, true, false, false, (int)EmployeeDepartmentHistoryFieldIndex.DepartmentId, 0, 0, 5); @@ -342,8 +352,9 @@ private void InitEmployeeDepartmentHistoryEntityInfos() this.AddElementFieldInfo("EmployeeDepartmentHistoryEntity", "ShiftId", typeof(System.Byte), true, true, false, false, (int)EmployeeDepartmentHistoryFieldIndex.ShiftId, 0, 0, 3); this.AddElementFieldInfo("EmployeeDepartmentHistoryEntity", "StartDate", typeof(System.DateTime), true, false, false, false, (int)EmployeeDepartmentHistoryFieldIndex.StartDate, 0, 0, 0); } - /// Inits EmployeePayHistoryEntity's FieldInfo objects - private void InitEmployeePayHistoryEntityInfos() + + /// Inits EmployeePayHistoryEntity's info objects + private void InitEmployeePayHistoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(EmployeePayHistoryFieldIndex), "EmployeePayHistoryEntity"); this.AddElementFieldInfo("EmployeePayHistoryEntity", "EmployeeId", typeof(System.Int32), true, true, false, false, (int)EmployeePayHistoryFieldIndex.EmployeeId, 0, 0, 10); @@ -352,16 +363,18 @@ private void InitEmployeePayHistoryEntityInfos() this.AddElementFieldInfo("EmployeePayHistoryEntity", "Rate", typeof(System.Decimal), false, false, false, false, (int)EmployeePayHistoryFieldIndex.Rate, 0, 4, 19); this.AddElementFieldInfo("EmployeePayHistoryEntity", "RateChangeDate", typeof(System.DateTime), true, false, false, false, (int)EmployeePayHistoryFieldIndex.RateChangeDate, 0, 0, 0); } - /// Inits IllustrationEntity's FieldInfo objects - private void InitIllustrationEntityInfos() + + /// Inits IllustrationEntity's info objects + private void InitIllustrationEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(IllustrationFieldIndex), "IllustrationEntity"); this.AddElementFieldInfo("IllustrationEntity", "Diagram", typeof(System.String), false, false, false, true, (int)IllustrationFieldIndex.Diagram, 2147483647, 0, 0); this.AddElementFieldInfo("IllustrationEntity", "IllustrationId", typeof(System.Int32), true, false, true, false, (int)IllustrationFieldIndex.IllustrationId, 0, 0, 10); this.AddElementFieldInfo("IllustrationEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)IllustrationFieldIndex.ModifiedDate, 0, 0, 0); } - /// Inits JobCandidateEntity's FieldInfo objects - private void InitJobCandidateEntityInfos() + + /// Inits JobCandidateEntity's info objects + private void InitJobCandidateEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(JobCandidateFieldIndex), "JobCandidateEntity"); this.AddElementFieldInfo("JobCandidateEntity", "EmployeeId", typeof(Nullable), false, true, false, true, (int)JobCandidateFieldIndex.EmployeeId, 0, 0, 10); @@ -369,8 +382,9 @@ private void InitJobCandidateEntityInfos() this.AddElementFieldInfo("JobCandidateEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)JobCandidateFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("JobCandidateEntity", "Resume", typeof(System.String), false, false, false, true, (int)JobCandidateFieldIndex.Resume, 2147483647, 0, 0); } - /// Inits LocationEntity's FieldInfo objects - private void InitLocationEntityInfos() + + /// Inits LocationEntity's info objects + private void InitLocationEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(LocationFieldIndex), "LocationEntity"); this.AddElementFieldInfo("LocationEntity", "Availability", typeof(System.Decimal), false, false, false, false, (int)LocationFieldIndex.Availability, 0, 2, 8); @@ -379,8 +393,9 @@ private void InitLocationEntityInfos() this.AddElementFieldInfo("LocationEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)LocationFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("LocationEntity", "Name", typeof(System.String), false, false, false, false, (int)LocationFieldIndex.Name, 50, 0, 0); } - /// Inits PasswordEntity's FieldInfo objects - private void InitPasswordEntityInfos() + + /// Inits PasswordEntity's info objects + private void InitPasswordEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(PasswordFieldIndex), "PasswordEntity"); this.AddElementFieldInfo("PasswordEntity", "BusinessEntityId", typeof(System.Int32), true, true, false, false, (int)PasswordFieldIndex.BusinessEntityId, 0, 0, 10); @@ -389,8 +404,9 @@ private void InitPasswordEntityInfos() this.AddElementFieldInfo("PasswordEntity", "PasswordSalt", typeof(System.String), false, false, false, false, (int)PasswordFieldIndex.PasswordSalt, 10, 0, 0); this.AddElementFieldInfo("PasswordEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)PasswordFieldIndex.Rowguid, 0, 0, 0); } - /// Inits PersonEntity's FieldInfo objects - private void InitPersonEntityInfos() + + /// Inits PersonEntity's info objects + private void InitPersonEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(PersonFieldIndex), "PersonEntity"); this.AddElementFieldInfo("PersonEntity", "AdditionalContactInfo", typeof(System.String), false, false, false, true, (int)PersonFieldIndex.AdditionalContactInfo, 2147483647, 0, 0); @@ -407,8 +423,9 @@ private void InitPersonEntityInfos() this.AddElementFieldInfo("PersonEntity", "Suffix", typeof(System.String), false, false, false, true, (int)PersonFieldIndex.Suffix, 10, 0, 0); this.AddElementFieldInfo("PersonEntity", "Title", typeof(System.String), false, false, false, true, (int)PersonFieldIndex.Title, 8, 0, 0); } - /// Inits PersonPhoneEntity's FieldInfo objects - private void InitPersonPhoneEntityInfos() + + /// Inits PersonPhoneEntity's info objects + private void InitPersonPhoneEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(PersonPhoneFieldIndex), "PersonPhoneEntity"); this.AddElementFieldInfo("PersonPhoneEntity", "BusinessEntityId", typeof(System.Int32), true, true, false, false, (int)PersonPhoneFieldIndex.BusinessEntityId, 0, 0, 10); @@ -416,16 +433,18 @@ private void InitPersonPhoneEntityInfos() this.AddElementFieldInfo("PersonPhoneEntity", "PhoneNumber", typeof(System.String), true, false, false, false, (int)PersonPhoneFieldIndex.PhoneNumber, 25, 0, 0); this.AddElementFieldInfo("PersonPhoneEntity", "PhoneNumberTypeId", typeof(System.Int32), true, true, false, false, (int)PersonPhoneFieldIndex.PhoneNumberTypeId, 0, 0, 10); } - /// Inits PhoneNumberTypeEntity's FieldInfo objects - private void InitPhoneNumberTypeEntityInfos() + + /// Inits PhoneNumberTypeEntity's info objects + private void InitPhoneNumberTypeEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(PhoneNumberTypeFieldIndex), "PhoneNumberTypeEntity"); this.AddElementFieldInfo("PhoneNumberTypeEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)PhoneNumberTypeFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("PhoneNumberTypeEntity", "Name", typeof(System.String), false, false, false, false, (int)PhoneNumberTypeFieldIndex.Name, 50, 0, 0); this.AddElementFieldInfo("PhoneNumberTypeEntity", "PhoneNumberTypeId", typeof(System.Int32), true, false, true, false, (int)PhoneNumberTypeFieldIndex.PhoneNumberTypeId, 0, 0, 10); } - /// Inits ProductEntity's FieldInfo objects - private void InitProductEntityInfos() + + /// Inits ProductEntity's info objects + private void InitProductEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductFieldIndex), "ProductEntity"); this.AddElementFieldInfo("ProductEntity", "Class", typeof(System.String), false, false, false, true, (int)ProductFieldIndex.Class, 2, 0, 0); @@ -454,8 +473,9 @@ private void InitProductEntityInfos() this.AddElementFieldInfo("ProductEntity", "Weight", typeof(Nullable), false, false, false, true, (int)ProductFieldIndex.Weight, 0, 2, 8); this.AddElementFieldInfo("ProductEntity", "WeightUnitMeasureCode", typeof(System.String), false, true, false, true, (int)ProductFieldIndex.WeightUnitMeasureCode, 3, 0, 0); } - /// Inits ProductCategoryEntity's FieldInfo objects - private void InitProductCategoryEntityInfos() + + /// Inits ProductCategoryEntity's info objects + private void InitProductCategoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductCategoryFieldIndex), "ProductCategoryEntity"); this.AddElementFieldInfo("ProductCategoryEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ProductCategoryFieldIndex.ModifiedDate, 0, 0, 0); @@ -463,8 +483,9 @@ private void InitProductCategoryEntityInfos() this.AddElementFieldInfo("ProductCategoryEntity", "ProductCategoryId", typeof(System.Int32), true, false, true, false, (int)ProductCategoryFieldIndex.ProductCategoryId, 0, 0, 10); this.AddElementFieldInfo("ProductCategoryEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)ProductCategoryFieldIndex.Rowguid, 0, 0, 0); } - /// Inits ProductCostHistoryEntity's FieldInfo objects - private void InitProductCostHistoryEntityInfos() + + /// Inits ProductCostHistoryEntity's info objects + private void InitProductCostHistoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductCostHistoryFieldIndex), "ProductCostHistoryEntity"); this.AddElementFieldInfo("ProductCostHistoryEntity", "EndDate", typeof(Nullable), false, false, false, true, (int)ProductCostHistoryFieldIndex.EndDate, 0, 0, 0); @@ -473,8 +494,9 @@ private void InitProductCostHistoryEntityInfos() this.AddElementFieldInfo("ProductCostHistoryEntity", "StandardCost", typeof(System.Decimal), false, false, false, false, (int)ProductCostHistoryFieldIndex.StandardCost, 0, 4, 19); this.AddElementFieldInfo("ProductCostHistoryEntity", "StartDate", typeof(System.DateTime), true, false, false, false, (int)ProductCostHistoryFieldIndex.StartDate, 0, 0, 0); } - /// Inits ProductDescriptionEntity's FieldInfo objects - private void InitProductDescriptionEntityInfos() + + /// Inits ProductDescriptionEntity's info objects + private void InitProductDescriptionEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductDescriptionFieldIndex), "ProductDescriptionEntity"); this.AddElementFieldInfo("ProductDescriptionEntity", "Description", typeof(System.String), false, false, false, false, (int)ProductDescriptionFieldIndex.Description, 400, 0, 0); @@ -482,16 +504,18 @@ private void InitProductDescriptionEntityInfos() this.AddElementFieldInfo("ProductDescriptionEntity", "ProductDescriptionId", typeof(System.Int32), true, false, true, false, (int)ProductDescriptionFieldIndex.ProductDescriptionId, 0, 0, 10); this.AddElementFieldInfo("ProductDescriptionEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)ProductDescriptionFieldIndex.Rowguid, 0, 0, 0); } - /// Inits ProductDocumentEntity's FieldInfo objects - private void InitProductDocumentEntityInfos() + + /// Inits ProductDocumentEntity's info objects + private void InitProductDocumentEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductDocumentFieldIndex), "ProductDocumentEntity"); this.AddElementFieldInfo("ProductDocumentEntity", "DocumentNode", typeof(System.String), true, true, false, false, (int)ProductDocumentFieldIndex.DocumentNode, 892, 0, 0); this.AddElementFieldInfo("ProductDocumentEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ProductDocumentFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("ProductDocumentEntity", "ProductId", typeof(System.Int32), true, true, false, false, (int)ProductDocumentFieldIndex.ProductId, 0, 0, 10); } - /// Inits ProductInventoryEntity's FieldInfo objects - private void InitProductInventoryEntityInfos() + + /// Inits ProductInventoryEntity's info objects + private void InitProductInventoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductInventoryFieldIndex), "ProductInventoryEntity"); this.AddElementFieldInfo("ProductInventoryEntity", "Bin", typeof(System.Byte), false, false, false, false, (int)ProductInventoryFieldIndex.Bin, 0, 0, 3); @@ -502,8 +526,9 @@ private void InitProductInventoryEntityInfos() this.AddElementFieldInfo("ProductInventoryEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)ProductInventoryFieldIndex.Rowguid, 0, 0, 0); this.AddElementFieldInfo("ProductInventoryEntity", "Shelf", typeof(System.String), false, false, false, false, (int)ProductInventoryFieldIndex.Shelf, 10, 0, 0); } - /// Inits ProductListPriceHistoryEntity's FieldInfo objects - private void InitProductListPriceHistoryEntityInfos() + + /// Inits ProductListPriceHistoryEntity's info objects + private void InitProductListPriceHistoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductListPriceHistoryFieldIndex), "ProductListPriceHistoryEntity"); this.AddElementFieldInfo("ProductListPriceHistoryEntity", "EndDate", typeof(Nullable), false, false, false, true, (int)ProductListPriceHistoryFieldIndex.EndDate, 0, 0, 0); @@ -512,8 +537,9 @@ private void InitProductListPriceHistoryEntityInfos() this.AddElementFieldInfo("ProductListPriceHistoryEntity", "ProductId", typeof(System.Int32), true, true, false, false, (int)ProductListPriceHistoryFieldIndex.ProductId, 0, 0, 10); this.AddElementFieldInfo("ProductListPriceHistoryEntity", "StartDate", typeof(System.DateTime), true, false, false, false, (int)ProductListPriceHistoryFieldIndex.StartDate, 0, 0, 0); } - /// Inits ProductModelEntity's FieldInfo objects - private void InitProductModelEntityInfos() + + /// Inits ProductModelEntity's info objects + private void InitProductModelEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductModelFieldIndex), "ProductModelEntity"); this.AddElementFieldInfo("ProductModelEntity", "CatalogDescription", typeof(System.String), false, false, false, true, (int)ProductModelFieldIndex.CatalogDescription, 2147483647, 0, 0); @@ -523,16 +549,18 @@ private void InitProductModelEntityInfos() this.AddElementFieldInfo("ProductModelEntity", "ProductModelId", typeof(System.Int32), true, false, true, false, (int)ProductModelFieldIndex.ProductModelId, 0, 0, 10); this.AddElementFieldInfo("ProductModelEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)ProductModelFieldIndex.Rowguid, 0, 0, 0); } - /// Inits ProductModelIllustrationEntity's FieldInfo objects - private void InitProductModelIllustrationEntityInfos() + + /// Inits ProductModelIllustrationEntity's info objects + private void InitProductModelIllustrationEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductModelIllustrationFieldIndex), "ProductModelIllustrationEntity"); this.AddElementFieldInfo("ProductModelIllustrationEntity", "IllustrationId", typeof(System.Int32), true, true, false, false, (int)ProductModelIllustrationFieldIndex.IllustrationId, 0, 0, 10); this.AddElementFieldInfo("ProductModelIllustrationEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ProductModelIllustrationFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("ProductModelIllustrationEntity", "ProductModelId", typeof(System.Int32), true, true, false, false, (int)ProductModelIllustrationFieldIndex.ProductModelId, 0, 0, 10); } - /// Inits ProductModelProductDescriptionCultureEntity's FieldInfo objects - private void InitProductModelProductDescriptionCultureEntityInfos() + + /// Inits ProductModelProductDescriptionCultureEntity's info objects + private void InitProductModelProductDescriptionCultureEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductModelProductDescriptionCultureFieldIndex), "ProductModelProductDescriptionCultureEntity"); this.AddElementFieldInfo("ProductModelProductDescriptionCultureEntity", "CultureId", typeof(System.String), true, true, false, false, (int)ProductModelProductDescriptionCultureFieldIndex.CultureId, 6, 0, 0); @@ -540,8 +568,9 @@ private void InitProductModelProductDescriptionCultureEntityInfos() this.AddElementFieldInfo("ProductModelProductDescriptionCultureEntity", "ProductDescriptionId", typeof(System.Int32), true, true, false, false, (int)ProductModelProductDescriptionCultureFieldIndex.ProductDescriptionId, 0, 0, 10); this.AddElementFieldInfo("ProductModelProductDescriptionCultureEntity", "ProductModelId", typeof(System.Int32), true, true, false, false, (int)ProductModelProductDescriptionCultureFieldIndex.ProductModelId, 0, 0, 10); } - /// Inits ProductPhotoEntity's FieldInfo objects - private void InitProductPhotoEntityInfos() + + /// Inits ProductPhotoEntity's info objects + private void InitProductPhotoEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductPhotoFieldIndex), "ProductPhotoEntity"); this.AddElementFieldInfo("ProductPhotoEntity", "LargePhoto", typeof(System.Byte[]), false, false, false, true, (int)ProductPhotoFieldIndex.LargePhoto, 2147483647, 0, 0); @@ -551,8 +580,9 @@ private void InitProductPhotoEntityInfos() this.AddElementFieldInfo("ProductPhotoEntity", "ThumbNailPhoto", typeof(System.Byte[]), false, false, false, true, (int)ProductPhotoFieldIndex.ThumbNailPhoto, 2147483647, 0, 0); this.AddElementFieldInfo("ProductPhotoEntity", "ThumbnailPhotoFileName", typeof(System.String), false, false, false, true, (int)ProductPhotoFieldIndex.ThumbnailPhotoFileName, 50, 0, 0); } - /// Inits ProductProductPhotoEntity's FieldInfo objects - private void InitProductProductPhotoEntityInfos() + + /// Inits ProductProductPhotoEntity's info objects + private void InitProductProductPhotoEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductProductPhotoFieldIndex), "ProductProductPhotoEntity"); this.AddElementFieldInfo("ProductProductPhotoEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ProductProductPhotoFieldIndex.ModifiedDate, 0, 0, 0); @@ -560,8 +590,9 @@ private void InitProductProductPhotoEntityInfos() this.AddElementFieldInfo("ProductProductPhotoEntity", "ProductId", typeof(System.Int32), true, true, false, false, (int)ProductProductPhotoFieldIndex.ProductId, 0, 0, 10); this.AddElementFieldInfo("ProductProductPhotoEntity", "ProductPhotoId", typeof(System.Int32), true, true, false, false, (int)ProductProductPhotoFieldIndex.ProductPhotoId, 0, 0, 10); } - /// Inits ProductReviewEntity's FieldInfo objects - private void InitProductReviewEntityInfos() + + /// Inits ProductReviewEntity's info objects + private void InitProductReviewEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductReviewFieldIndex), "ProductReviewEntity"); this.AddElementFieldInfo("ProductReviewEntity", "Comments", typeof(System.String), false, false, false, true, (int)ProductReviewFieldIndex.Comments, 3850, 0, 0); @@ -573,8 +604,9 @@ private void InitProductReviewEntityInfos() this.AddElementFieldInfo("ProductReviewEntity", "ReviewDate", typeof(System.DateTime), false, false, false, false, (int)ProductReviewFieldIndex.ReviewDate, 0, 0, 0); this.AddElementFieldInfo("ProductReviewEntity", "ReviewerName", typeof(System.String), false, false, false, false, (int)ProductReviewFieldIndex.ReviewerName, 50, 0, 0); } - /// Inits ProductSubcategoryEntity's FieldInfo objects - private void InitProductSubcategoryEntityInfos() + + /// Inits ProductSubcategoryEntity's info objects + private void InitProductSubcategoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductSubcategoryFieldIndex), "ProductSubcategoryEntity"); this.AddElementFieldInfo("ProductSubcategoryEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ProductSubcategoryFieldIndex.ModifiedDate, 0, 0, 0); @@ -583,8 +615,9 @@ private void InitProductSubcategoryEntityInfos() this.AddElementFieldInfo("ProductSubcategoryEntity", "ProductSubcategoryId", typeof(System.Int32), true, false, true, false, (int)ProductSubcategoryFieldIndex.ProductSubcategoryId, 0, 0, 10); this.AddElementFieldInfo("ProductSubcategoryEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)ProductSubcategoryFieldIndex.Rowguid, 0, 0, 0); } - /// Inits ProductVendorEntity's FieldInfo objects - private void InitProductVendorEntityInfos() + + /// Inits ProductVendorEntity's info objects + private void InitProductVendorEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ProductVendorFieldIndex), "ProductVendorEntity"); this.AddElementFieldInfo("ProductVendorEntity", "AverageLeadTime", typeof(System.Int32), false, false, false, false, (int)ProductVendorFieldIndex.AverageLeadTime, 0, 0, 10); @@ -599,8 +632,9 @@ private void InitProductVendorEntityInfos() this.AddElementFieldInfo("ProductVendorEntity", "UnitMeasureCode", typeof(System.String), false, true, false, false, (int)ProductVendorFieldIndex.UnitMeasureCode, 3, 0, 0); this.AddElementFieldInfo("ProductVendorEntity", "VendorId", typeof(System.Int32), true, true, false, false, (int)ProductVendorFieldIndex.VendorId, 0, 0, 10); } - /// Inits PurchaseOrderDetailEntity's FieldInfo objects - private void InitPurchaseOrderDetailEntityInfos() + + /// Inits PurchaseOrderDetailEntity's info objects + private void InitPurchaseOrderDetailEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(PurchaseOrderDetailFieldIndex), "PurchaseOrderDetailEntity"); this.AddElementFieldInfo("PurchaseOrderDetailEntity", "DueDate", typeof(System.DateTime), false, false, false, false, (int)PurchaseOrderDetailFieldIndex.DueDate, 0, 0, 0); @@ -615,8 +649,9 @@ private void InitPurchaseOrderDetailEntityInfos() this.AddElementFieldInfo("PurchaseOrderDetailEntity", "StockedQty", typeof(System.Decimal), false, false, true, false, (int)PurchaseOrderDetailFieldIndex.StockedQty, 0, 2, 9); this.AddElementFieldInfo("PurchaseOrderDetailEntity", "UnitPrice", typeof(System.Decimal), false, false, false, false, (int)PurchaseOrderDetailFieldIndex.UnitPrice, 0, 4, 19); } - /// Inits PurchaseOrderHeaderEntity's FieldInfo objects - private void InitPurchaseOrderHeaderEntityInfos() + + /// Inits PurchaseOrderHeaderEntity's info objects + private void InitPurchaseOrderHeaderEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(PurchaseOrderHeaderFieldIndex), "PurchaseOrderHeaderEntity"); this.AddElementFieldInfo("PurchaseOrderHeaderEntity", "EmployeeId", typeof(System.Int32), false, true, false, false, (int)PurchaseOrderHeaderFieldIndex.EmployeeId, 0, 0, 10); @@ -633,8 +668,9 @@ private void InitPurchaseOrderHeaderEntityInfos() this.AddElementFieldInfo("PurchaseOrderHeaderEntity", "TotalDue", typeof(System.Decimal), false, false, true, false, (int)PurchaseOrderHeaderFieldIndex.TotalDue, 0, 4, 19); this.AddElementFieldInfo("PurchaseOrderHeaderEntity", "VendorId", typeof(System.Int32), false, true, false, false, (int)PurchaseOrderHeaderFieldIndex.VendorId, 0, 0, 10); } - /// Inits SalesOrderDetailEntity's FieldInfo objects - private void InitSalesOrderDetailEntityInfos() + + /// Inits SalesOrderDetailEntity's info objects + private void InitSalesOrderDetailEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesOrderDetailFieldIndex), "SalesOrderDetailEntity"); this.AddElementFieldInfo("SalesOrderDetailEntity", "CarrierTrackingNumber", typeof(System.String), false, false, false, true, (int)SalesOrderDetailFieldIndex.CarrierTrackingNumber, 25, 0, 0); @@ -649,8 +685,9 @@ private void InitSalesOrderDetailEntityInfos() this.AddElementFieldInfo("SalesOrderDetailEntity", "UnitPrice", typeof(System.Decimal), false, false, false, false, (int)SalesOrderDetailFieldIndex.UnitPrice, 0, 4, 19); this.AddElementFieldInfo("SalesOrderDetailEntity", "UnitPriceDiscount", typeof(System.Decimal), false, false, false, false, (int)SalesOrderDetailFieldIndex.UnitPriceDiscount, 0, 4, 19); } - /// Inits SalesOrderHeaderEntity's FieldInfo objects - private void InitSalesOrderHeaderEntityInfos() + + /// Inits SalesOrderHeaderEntity's info objects + private void InitSalesOrderHeaderEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesOrderHeaderFieldIndex), "SalesOrderHeaderEntity"); this.AddElementFieldInfo("SalesOrderHeaderEntity", "AccountNumber", typeof(System.String), false, false, false, true, (int)SalesOrderHeaderFieldIndex.AccountNumber, 15, 0, 0); @@ -680,16 +717,18 @@ private void InitSalesOrderHeaderEntityInfos() this.AddElementFieldInfo("SalesOrderHeaderEntity", "TerritoryId", typeof(Nullable), false, true, false, true, (int)SalesOrderHeaderFieldIndex.TerritoryId, 0, 0, 10); this.AddElementFieldInfo("SalesOrderHeaderEntity", "TotalDue", typeof(System.Decimal), false, false, true, false, (int)SalesOrderHeaderFieldIndex.TotalDue, 0, 4, 19); } - /// Inits SalesOrderHeaderSalesReasonEntity's FieldInfo objects - private void InitSalesOrderHeaderSalesReasonEntityInfos() + + /// Inits SalesOrderHeaderSalesReasonEntity's info objects + private void InitSalesOrderHeaderSalesReasonEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesOrderHeaderSalesReasonFieldIndex), "SalesOrderHeaderSalesReasonEntity"); this.AddElementFieldInfo("SalesOrderHeaderSalesReasonEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)SalesOrderHeaderSalesReasonFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("SalesOrderHeaderSalesReasonEntity", "SalesOrderId", typeof(System.Int32), true, true, false, false, (int)SalesOrderHeaderSalesReasonFieldIndex.SalesOrderId, 0, 0, 10); this.AddElementFieldInfo("SalesOrderHeaderSalesReasonEntity", "SalesReasonId", typeof(System.Int32), true, true, false, false, (int)SalesOrderHeaderSalesReasonFieldIndex.SalesReasonId, 0, 0, 10); } - /// Inits SalesPersonEntity's FieldInfo objects - private void InitSalesPersonEntityInfos() + + /// Inits SalesPersonEntity's info objects + private void InitSalesPersonEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesPersonFieldIndex), "SalesPersonEntity"); this.AddElementFieldInfo("SalesPersonEntity", "Bonus", typeof(System.Decimal), false, false, false, false, (int)SalesPersonFieldIndex.Bonus, 0, 4, 19); @@ -702,8 +741,9 @@ private void InitSalesPersonEntityInfos() this.AddElementFieldInfo("SalesPersonEntity", "SalesYtd", typeof(System.Decimal), false, false, false, false, (int)SalesPersonFieldIndex.SalesYtd, 0, 4, 19); this.AddElementFieldInfo("SalesPersonEntity", "TerritoryId", typeof(Nullable), false, true, false, true, (int)SalesPersonFieldIndex.TerritoryId, 0, 0, 10); } - /// Inits SalesPersonQuotaHistoryEntity's FieldInfo objects - private void InitSalesPersonQuotaHistoryEntityInfos() + + /// Inits SalesPersonQuotaHistoryEntity's info objects + private void InitSalesPersonQuotaHistoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesPersonQuotaHistoryFieldIndex), "SalesPersonQuotaHistoryEntity"); this.AddElementFieldInfo("SalesPersonQuotaHistoryEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)SalesPersonQuotaHistoryFieldIndex.ModifiedDate, 0, 0, 0); @@ -712,8 +752,9 @@ private void InitSalesPersonQuotaHistoryEntityInfos() this.AddElementFieldInfo("SalesPersonQuotaHistoryEntity", "SalesPersonId", typeof(System.Int32), true, true, false, false, (int)SalesPersonQuotaHistoryFieldIndex.SalesPersonId, 0, 0, 10); this.AddElementFieldInfo("SalesPersonQuotaHistoryEntity", "SalesQuota", typeof(System.Decimal), false, false, false, false, (int)SalesPersonQuotaHistoryFieldIndex.SalesQuota, 0, 4, 19); } - /// Inits SalesReasonEntity's FieldInfo objects - private void InitSalesReasonEntityInfos() + + /// Inits SalesReasonEntity's info objects + private void InitSalesReasonEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesReasonFieldIndex), "SalesReasonEntity"); this.AddElementFieldInfo("SalesReasonEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)SalesReasonFieldIndex.ModifiedDate, 0, 0, 0); @@ -721,8 +762,9 @@ private void InitSalesReasonEntityInfos() this.AddElementFieldInfo("SalesReasonEntity", "ReasonType", typeof(System.String), false, false, false, false, (int)SalesReasonFieldIndex.ReasonType, 50, 0, 0); this.AddElementFieldInfo("SalesReasonEntity", "SalesReasonId", typeof(System.Int32), true, false, true, false, (int)SalesReasonFieldIndex.SalesReasonId, 0, 0, 10); } - /// Inits SalesTaxRateEntity's FieldInfo objects - private void InitSalesTaxRateEntityInfos() + + /// Inits SalesTaxRateEntity's info objects + private void InitSalesTaxRateEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesTaxRateFieldIndex), "SalesTaxRateEntity"); this.AddElementFieldInfo("SalesTaxRateEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)SalesTaxRateFieldIndex.ModifiedDate, 0, 0, 0); @@ -733,8 +775,9 @@ private void InitSalesTaxRateEntityInfos() this.AddElementFieldInfo("SalesTaxRateEntity", "TaxRate", typeof(System.Decimal), false, false, false, false, (int)SalesTaxRateFieldIndex.TaxRate, 0, 4, 10); this.AddElementFieldInfo("SalesTaxRateEntity", "TaxType", typeof(System.Byte), false, false, false, false, (int)SalesTaxRateFieldIndex.TaxType, 0, 0, 3); } - /// Inits SalesTerritoryEntity's FieldInfo objects - private void InitSalesTerritoryEntityInfos() + + /// Inits SalesTerritoryEntity's info objects + private void InitSalesTerritoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesTerritoryFieldIndex), "SalesTerritoryEntity"); this.AddElementFieldInfo("SalesTerritoryEntity", "CostLastYear", typeof(System.Decimal), false, false, false, false, (int)SalesTerritoryFieldIndex.CostLastYear, 0, 4, 19); @@ -748,8 +791,9 @@ private void InitSalesTerritoryEntityInfos() this.AddElementFieldInfo("SalesTerritoryEntity", "SalesYtd", typeof(System.Decimal), false, false, false, false, (int)SalesTerritoryFieldIndex.SalesYtd, 0, 4, 19); this.AddElementFieldInfo("SalesTerritoryEntity", "TerritoryId", typeof(System.Int32), true, false, true, false, (int)SalesTerritoryFieldIndex.TerritoryId, 0, 0, 10); } - /// Inits SalesTerritoryHistoryEntity's FieldInfo objects - private void InitSalesTerritoryHistoryEntityInfos() + + /// Inits SalesTerritoryHistoryEntity's info objects + private void InitSalesTerritoryHistoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SalesTerritoryHistoryFieldIndex), "SalesTerritoryHistoryEntity"); this.AddElementFieldInfo("SalesTerritoryHistoryEntity", "EndDate", typeof(Nullable), false, false, false, true, (int)SalesTerritoryHistoryFieldIndex.EndDate, 0, 0, 0); @@ -759,16 +803,18 @@ private void InitSalesTerritoryHistoryEntityInfos() this.AddElementFieldInfo("SalesTerritoryHistoryEntity", "StartDate", typeof(System.DateTime), true, false, false, false, (int)SalesTerritoryHistoryFieldIndex.StartDate, 0, 0, 0); this.AddElementFieldInfo("SalesTerritoryHistoryEntity", "TerritoryId", typeof(System.Int32), true, true, false, false, (int)SalesTerritoryHistoryFieldIndex.TerritoryId, 0, 0, 10); } - /// Inits ScrapReasonEntity's FieldInfo objects - private void InitScrapReasonEntityInfos() + + /// Inits ScrapReasonEntity's info objects + private void InitScrapReasonEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ScrapReasonFieldIndex), "ScrapReasonEntity"); this.AddElementFieldInfo("ScrapReasonEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ScrapReasonFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("ScrapReasonEntity", "Name", typeof(System.String), false, false, false, false, (int)ScrapReasonFieldIndex.Name, 50, 0, 0); this.AddElementFieldInfo("ScrapReasonEntity", "ScrapReasonId", typeof(System.Int16), true, false, true, false, (int)ScrapReasonFieldIndex.ScrapReasonId, 0, 0, 5); } - /// Inits ShiftEntity's FieldInfo objects - private void InitShiftEntityInfos() + + /// Inits ShiftEntity's info objects + private void InitShiftEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ShiftFieldIndex), "ShiftEntity"); this.AddElementFieldInfo("ShiftEntity", "EndTime", typeof(System.TimeSpan), false, false, false, false, (int)ShiftFieldIndex.EndTime, 0, 0, 0); @@ -777,8 +823,9 @@ private void InitShiftEntityInfos() this.AddElementFieldInfo("ShiftEntity", "ShiftId", typeof(System.Byte), true, false, true, false, (int)ShiftFieldIndex.ShiftId, 0, 0, 3); this.AddElementFieldInfo("ShiftEntity", "StartTime", typeof(System.TimeSpan), false, false, false, false, (int)ShiftFieldIndex.StartTime, 0, 0, 0); } - /// Inits ShipMethodEntity's FieldInfo objects - private void InitShipMethodEntityInfos() + + /// Inits ShipMethodEntity's info objects + private void InitShipMethodEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ShipMethodFieldIndex), "ShipMethodEntity"); this.AddElementFieldInfo("ShipMethodEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)ShipMethodFieldIndex.ModifiedDate, 0, 0, 0); @@ -788,8 +835,9 @@ private void InitShipMethodEntityInfos() this.AddElementFieldInfo("ShipMethodEntity", "ShipMethodId", typeof(System.Int32), true, false, true, false, (int)ShipMethodFieldIndex.ShipMethodId, 0, 0, 10); this.AddElementFieldInfo("ShipMethodEntity", "ShipRate", typeof(System.Decimal), false, false, false, false, (int)ShipMethodFieldIndex.ShipRate, 0, 4, 19); } - /// Inits ShoppingCartItemEntity's FieldInfo objects - private void InitShoppingCartItemEntityInfos() + + /// Inits ShoppingCartItemEntity's info objects + private void InitShoppingCartItemEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(ShoppingCartItemFieldIndex), "ShoppingCartItemEntity"); this.AddElementFieldInfo("ShoppingCartItemEntity", "DateCreated", typeof(System.DateTime), false, false, false, false, (int)ShoppingCartItemFieldIndex.DateCreated, 0, 0, 0); @@ -799,8 +847,9 @@ private void InitShoppingCartItemEntityInfos() this.AddElementFieldInfo("ShoppingCartItemEntity", "ShoppingCartId", typeof(System.String), false, false, false, false, (int)ShoppingCartItemFieldIndex.ShoppingCartId, 50, 0, 0); this.AddElementFieldInfo("ShoppingCartItemEntity", "ShoppingCartItemId", typeof(System.Int32), true, false, true, false, (int)ShoppingCartItemFieldIndex.ShoppingCartItemId, 0, 0, 10); } - /// Inits SpecialOfferEntity's FieldInfo objects - private void InitSpecialOfferEntityInfos() + + /// Inits SpecialOfferEntity's info objects + private void InitSpecialOfferEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SpecialOfferFieldIndex), "SpecialOfferEntity"); this.AddElementFieldInfo("SpecialOfferEntity", "Category", typeof(System.String), false, false, false, false, (int)SpecialOfferFieldIndex.Category, 50, 0, 0); @@ -815,8 +864,9 @@ private void InitSpecialOfferEntityInfos() this.AddElementFieldInfo("SpecialOfferEntity", "StartDate", typeof(System.DateTime), false, false, false, false, (int)SpecialOfferFieldIndex.StartDate, 0, 0, 0); this.AddElementFieldInfo("SpecialOfferEntity", "Type", typeof(System.String), false, false, false, false, (int)SpecialOfferFieldIndex.Type, 50, 0, 0); } - /// Inits SpecialOfferProductEntity's FieldInfo objects - private void InitSpecialOfferProductEntityInfos() + + /// Inits SpecialOfferProductEntity's info objects + private void InitSpecialOfferProductEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(SpecialOfferProductFieldIndex), "SpecialOfferProductEntity"); this.AddElementFieldInfo("SpecialOfferProductEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)SpecialOfferProductFieldIndex.ModifiedDate, 0, 0, 0); @@ -824,8 +874,9 @@ private void InitSpecialOfferProductEntityInfos() this.AddElementFieldInfo("SpecialOfferProductEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)SpecialOfferProductFieldIndex.Rowguid, 0, 0, 0); this.AddElementFieldInfo("SpecialOfferProductEntity", "SpecialOfferId", typeof(System.Int32), true, true, false, false, (int)SpecialOfferProductFieldIndex.SpecialOfferId, 0, 0, 10); } - /// Inits StateProvinceEntity's FieldInfo objects - private void InitStateProvinceEntityInfos() + + /// Inits StateProvinceEntity's info objects + private void InitStateProvinceEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(StateProvinceFieldIndex), "StateProvinceEntity"); this.AddElementFieldInfo("StateProvinceEntity", "CountryRegionCode", typeof(System.String), false, true, false, false, (int)StateProvinceFieldIndex.CountryRegionCode, 3, 0, 0); @@ -837,8 +888,9 @@ private void InitStateProvinceEntityInfos() this.AddElementFieldInfo("StateProvinceEntity", "StateProvinceId", typeof(System.Int32), true, false, true, false, (int)StateProvinceFieldIndex.StateProvinceId, 0, 0, 10); this.AddElementFieldInfo("StateProvinceEntity", "TerritoryId", typeof(System.Int32), false, true, false, false, (int)StateProvinceFieldIndex.TerritoryId, 0, 0, 10); } - /// Inits StoreEntity's FieldInfo objects - private void InitStoreEntityInfos() + + /// Inits StoreEntity's info objects + private void InitStoreEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(StoreFieldIndex), "StoreEntity"); this.AddElementFieldInfo("StoreEntity", "CustomerId", typeof(System.Int32), true, true, false, false, (int)StoreFieldIndex.CustomerId, 0, 0, 10); @@ -848,8 +900,9 @@ private void InitStoreEntityInfos() this.AddElementFieldInfo("StoreEntity", "Rowguid", typeof(System.Guid), false, false, false, false, (int)StoreFieldIndex.Rowguid, 0, 0, 0); this.AddElementFieldInfo("StoreEntity", "SalesPersonId", typeof(Nullable), false, true, false, true, (int)StoreFieldIndex.SalesPersonId, 0, 0, 10); } - /// Inits TransactionHistoryEntity's FieldInfo objects - private void InitTransactionHistoryEntityInfos() + + /// Inits TransactionHistoryEntity's info objects + private void InitTransactionHistoryEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(TransactionHistoryFieldIndex), "TransactionHistoryEntity"); this.AddElementFieldInfo("TransactionHistoryEntity", "ActualCost", typeof(System.Decimal), false, false, false, false, (int)TransactionHistoryFieldIndex.ActualCost, 0, 4, 19); @@ -862,8 +915,9 @@ private void InitTransactionHistoryEntityInfos() this.AddElementFieldInfo("TransactionHistoryEntity", "TransactionId", typeof(System.Int32), true, false, true, false, (int)TransactionHistoryFieldIndex.TransactionId, 0, 0, 10); this.AddElementFieldInfo("TransactionHistoryEntity", "TransactionType", typeof(System.String), false, false, false, false, (int)TransactionHistoryFieldIndex.TransactionType, 1, 0, 0); } - /// Inits TransactionHistoryArchiveEntity's FieldInfo objects - private void InitTransactionHistoryArchiveEntityInfos() + + /// Inits TransactionHistoryArchiveEntity's info objects + private void InitTransactionHistoryArchiveEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(TransactionHistoryArchiveFieldIndex), "TransactionHistoryArchiveEntity"); this.AddElementFieldInfo("TransactionHistoryArchiveEntity", "ActualCost", typeof(System.Decimal), false, false, false, false, (int)TransactionHistoryArchiveFieldIndex.ActualCost, 0, 4, 19); @@ -876,16 +930,18 @@ private void InitTransactionHistoryArchiveEntityInfos() this.AddElementFieldInfo("TransactionHistoryArchiveEntity", "TransactionId", typeof(System.Int32), true, false, false, false, (int)TransactionHistoryArchiveFieldIndex.TransactionId, 0, 0, 10); this.AddElementFieldInfo("TransactionHistoryArchiveEntity", "TransactionType", typeof(System.String), false, false, false, false, (int)TransactionHistoryArchiveFieldIndex.TransactionType, 1, 0, 0); } - /// Inits UnitMeasureEntity's FieldInfo objects - private void InitUnitMeasureEntityInfos() + + /// Inits UnitMeasureEntity's info objects + private void InitUnitMeasureEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(UnitMeasureFieldIndex), "UnitMeasureEntity"); this.AddElementFieldInfo("UnitMeasureEntity", "ModifiedDate", typeof(System.DateTime), false, false, false, false, (int)UnitMeasureFieldIndex.ModifiedDate, 0, 0, 0); this.AddElementFieldInfo("UnitMeasureEntity", "Name", typeof(System.String), false, false, false, false, (int)UnitMeasureFieldIndex.Name, 50, 0, 0); this.AddElementFieldInfo("UnitMeasureEntity", "UnitMeasureCode", typeof(System.String), true, false, false, false, (int)UnitMeasureFieldIndex.UnitMeasureCode, 3, 0, 0); } - /// Inits VendorEntity's FieldInfo objects - private void InitVendorEntityInfos() + + /// Inits VendorEntity's info objects + private void InitVendorEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(VendorFieldIndex), "VendorEntity"); this.AddElementFieldInfo("VendorEntity", "AccountNumber", typeof(System.String), false, false, false, false, (int)VendorFieldIndex.AccountNumber, 15, 0, 0); @@ -897,8 +953,9 @@ private void InitVendorEntityInfos() this.AddElementFieldInfo("VendorEntity", "PurchasingWebServiceUrl", typeof(System.String), false, false, false, true, (int)VendorFieldIndex.PurchasingWebServiceUrl, 1024, 0, 0); this.AddElementFieldInfo("VendorEntity", "VendorId", typeof(System.Int32), true, true, true, false, (int)VendorFieldIndex.VendorId, 0, 0, 10); } - /// Inits WorkOrderEntity's FieldInfo objects - private void InitWorkOrderEntityInfos() + + /// Inits WorkOrderEntity's info objects + private void InitWorkOrderEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(WorkOrderFieldIndex), "WorkOrderEntity"); this.AddElementFieldInfo("WorkOrderEntity", "DueDate", typeof(System.DateTime), false, false, false, false, (int)WorkOrderFieldIndex.DueDate, 0, 0, 0); @@ -912,8 +969,9 @@ private void InitWorkOrderEntityInfos() this.AddElementFieldInfo("WorkOrderEntity", "StockedQty", typeof(System.Int32), false, false, true, false, (int)WorkOrderFieldIndex.StockedQty, 0, 0, 10); this.AddElementFieldInfo("WorkOrderEntity", "WorkOrderId", typeof(System.Int32), true, false, true, false, (int)WorkOrderFieldIndex.WorkOrderId, 0, 0, 10); } - /// Inits WorkOrderRoutingEntity's FieldInfo objects - private void InitWorkOrderRoutingEntityInfos() + + /// Inits WorkOrderRoutingEntity's info objects + private void InitWorkOrderRoutingEntityInfo() { this.AddFieldIndexEnumForElementName(typeof(WorkOrderRoutingFieldIndex), "WorkOrderRoutingEntity"); this.AddElementFieldInfo("WorkOrderRoutingEntity", "ActualCost", typeof(Nullable), false, false, false, true, (int)WorkOrderRoutingFieldIndex.ActualCost, 0, 4, 19); @@ -930,8 +988,8 @@ private void InitWorkOrderRoutingEntityInfos() this.AddElementFieldInfo("WorkOrderRoutingEntity", "WorkOrderId", typeof(System.Int32), true, true, false, false, (int)WorkOrderRoutingFieldIndex.WorkOrderId, 0, 0, 10); } - /// Inits View's FieldInfo objects - private void InitSohTypedViewInfos() + /// Inits SohView's info objects + private void InitSohTypedViewInfo() { this.AddFieldIndexEnumForElementName(typeof(SohFieldIndex), "SohTypedView"); this.AddElementFieldInfo("SohTypedView", "SalesOrderId", typeof(System.Int32), false, false, true, false, (int)SohFieldIndex.SalesOrderId, 0, 0, 10); @@ -961,8 +1019,9 @@ private void InitSohTypedViewInfos() this.AddElementFieldInfo("SohTypedView", "Rowguid", typeof(System.Guid), false, false, true, false, (int)SohFieldIndex.Rowguid, 0, 0, 0); this.AddElementFieldInfo("SohTypedView", "ModifiedDate", typeof(System.DateTime), false, false, true, false, (int)SohFieldIndex.ModifiedDate, 0, 0, 0); } - /// Inits View's FieldInfo objects - private void InitSohLinqPocoTypedViewInfos() + + /// Inits SohLinqPocoView's info objects + private void InitSohLinqPocoTypedViewInfo() { this.AddFieldIndexEnumForElementName(typeof(SohLinqPocoFieldIndex), "SohLinqPocoTypedView"); this.AddElementFieldInfo("SohLinqPocoTypedView", "SalesOrderId", typeof(System.Int32), false, false, true, false, (int)SohLinqPocoFieldIndex.SalesOrderId, 0, 0, 10); @@ -992,8 +1051,9 @@ private void InitSohLinqPocoTypedViewInfos() this.AddElementFieldInfo("SohLinqPocoTypedView", "Rowguid", typeof(System.Guid), false, false, true, false, (int)SohLinqPocoFieldIndex.Rowguid, 0, 0, 0); this.AddElementFieldInfo("SohLinqPocoTypedView", "ModifiedDate", typeof(System.DateTime), false, false, true, false, (int)SohLinqPocoFieldIndex.ModifiedDate, 0, 0, 0); } - /// Inits View's FieldInfo objects - private void InitSohQuerySpecPocoTypedViewInfos() + + /// Inits SohQuerySpecPocoView's info objects + private void InitSohQuerySpecPocoTypedViewInfo() { this.AddFieldIndexEnumForElementName(typeof(SohQuerySpecPocoFieldIndex), "SohQuerySpecPocoTypedView"); this.AddElementFieldInfo("SohQuerySpecPocoTypedView", "SalesOrderId", typeof(System.Int32), false, false, true, false, (int)SohQuerySpecPocoFieldIndex.SalesOrderId, 0, 0, 10); @@ -1022,10 +1082,6 @@ private void InitSohQuerySpecPocoTypedViewInfos() this.AddElementFieldInfo("SohQuerySpecPocoTypedView", "Comment", typeof(System.String), false, false, true, false, (int)SohQuerySpecPocoFieldIndex.Comment, 128, 0, 0); this.AddElementFieldInfo("SohQuerySpecPocoTypedView", "Rowguid", typeof(System.Guid), false, false, true, false, (int)SohQuerySpecPocoFieldIndex.Rowguid, 0, 0, 0); this.AddElementFieldInfo("SohQuerySpecPocoTypedView", "ModifiedDate", typeof(System.DateTime), false, false, true, false, (int)SohQuerySpecPocoFieldIndex.ModifiedDate, 0, 0, 0); - } + } } -} - - - - +} \ No newline at end of file diff --git a/LLBLGen54/DatabaseGeneric/HelperClasses/ResultsetFields.cs b/LLBLGen54/DatabaseGeneric/HelperClasses/ResultsetFields.cs new file mode 100644 index 00000000..c6bf76c2 --- /dev/null +++ b/LLBLGen54/DatabaseGeneric/HelperClasses/ResultsetFields.cs @@ -0,0 +1,30 @@ +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. +////////////////////////////////////////////////////////////// +// Code is generated on: +// Code is generated using templates: SD.TemplateBindings.SharedTemplates +// Templates vendor: Solutions Design. +////////////////////////////////////////////////////////////// +using System; +using System.Runtime.Serialization; +using SD.LLBLGen.Pro.ORMSupportClasses; + +namespace AdventureWorks.Dal.Adapter.v54.HelperClasses +{ + /// Helper class which will eases the creation of custom made resultsets. Usable in typed lists and dynamic lists created using the dynamic query engine. + [Serializable] + public partial class ResultsetFields : EntityFields2 + { + /// CTor + public ResultsetFields(int amountFields) : base(amountFields, ModelInfoProviderSingleton.GetInstance(), null) { } + + /// Deserialization constructor + /// Info. + /// Context. + protected ResultsetFields(SerializationInfo info, StreamingContext context) : base(info.GetInt32("_amountFields"), ModelInfoProviderSingleton.GetInstance(), null) + { + PerformDeserializationInitialization(info); + } + + } +} diff --git a/LLBLGen53/DatabaseGeneric/HelperClasses/TypeDefaultValue.cs b/LLBLGen54/DatabaseGeneric/HelperClasses/TypeDefaultValue.cs similarity index 66% rename from LLBLGen53/DatabaseGeneric/HelperClasses/TypeDefaultValue.cs rename to LLBLGen54/DatabaseGeneric/HelperClasses/TypeDefaultValue.cs index 6b4a445d..9f9d0695 100644 --- a/LLBLGen53/DatabaseGeneric/HelperClasses/TypeDefaultValue.cs +++ b/LLBLGen54/DatabaseGeneric/HelperClasses/TypeDefaultValue.cs @@ -1,52 +1,25 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. -// Templates version: ////////////////////////////////////////////////////////////// using System; - using SD.LLBLGen.Pro.ORMSupportClasses; -namespace AdventureWorks.Dal.Adapter.v53.HelperClasses +namespace AdventureWorks.Dal.Adapter.v54.HelperClasses { - /// - /// Class for the returning of a default value when a type is given. These - /// Default values are used for EntityFields which have a NULL value in the database. - /// In Business Logic it's impractical to work with NULL values. If you want different values - /// as default values for NULL values for a given type, alter the DefaultValue method below. - /// If you want to keep your values when regenerating the code, make this file read-only, or bind a different - /// template to the template ID: SD_TypeDefaultValueIncludeTemplate, or alter the template file currently - /// bound to that template ID. - /// + /// Class for the returning of a default value when a type is given. These Default values are used for EntityFields which have a NULL value in the database. [Serializable] public partial class TypeDefaultValue : ITypeDefaultValue { - /// - /// Ctor - /// - public TypeDefaultValue() - { - } - - - /// - /// Returns a default value for the type specified - /// + /// Returns a default value for the type specified /// The type which default value should be returned. /// The default value for the type specified. - public object DefaultValue(System.Type defaultValueType) - { - return TypeDefaultValue.GetDefaultValue(defaultValueType); - } - + public object DefaultValue(System.Type defaultValueType) { return TypeDefaultValue.GetDefaultValue(defaultValueType); } - /// - /// Returns a default value for the type specified - /// + /// Returns a default value for the type specified /// The type which default value should be returned. /// The default value for the type specified. public static object GetDefaultValue(System.Type defaultValueType) @@ -121,10 +94,7 @@ public static object GetDefaultValue(System.Type defaultValueType) return valueToReturn; } - - #region Included Code - #endregion } } diff --git a/LLBLGen53/DatabaseGeneric/TypedViewClasses/SohLinqPocoRow.cs b/LLBLGen54/DatabaseGeneric/TypedViewClasses/SohLinqPocoRow.cs similarity index 90% rename from LLBLGen53/DatabaseGeneric/TypedViewClasses/SohLinqPocoRow.cs rename to LLBLGen54/DatabaseGeneric/TypedViewClasses/SohLinqPocoRow.cs index 867b243d..5420e083 100644 --- a/LLBLGen53/DatabaseGeneric/TypedViewClasses/SohLinqPocoRow.cs +++ b/LLBLGen54/DatabaseGeneric/TypedViewClasses/SohLinqPocoRow.cs @@ -1,7 +1,6 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro v5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. @@ -9,18 +8,14 @@ using System; using System.ComponentModel; -namespace AdventureWorks.Dal.Adapter.v53.TypedViewClasses +namespace AdventureWorks.Dal.Adapter.v54.TypedViewClasses { /// Class which represents a row in the typed view 'SohLinqPoco'. - /// This class is a result class for a query, which is produced with the method . - /// Custom Properties:
- ///
+ /// This class is a result class for a query, which is produced with the property . [Serializable] public partial class SohLinqPocoRow { - #region Extensibility Method Definitions partial void OnCreated(); - #endregion /// Initializes a new instance of the class. public SohLinqPocoRow() @@ -28,7 +23,6 @@ public SohLinqPocoRow() OnCreated(); } - #region Class Property Declarations /// Gets or sets the AccountNumber field. public System.String AccountNumber { get; set; } /// Gets or sets the BillToAddressId field. @@ -81,7 +75,6 @@ public SohLinqPocoRow() public Nullable TerritoryId { get; set; } /// Gets or sets the TotalDue field. public System.Decimal TotalDue { get; set; } - #endregion } } diff --git a/LLBLGen53/DatabaseGeneric/TypedViewClasses/SohQuerySpecPocoRow.cs b/LLBLGen54/DatabaseGeneric/TypedViewClasses/SohQuerySpecPocoRow.cs similarity index 89% rename from LLBLGen53/DatabaseGeneric/TypedViewClasses/SohQuerySpecPocoRow.cs rename to LLBLGen54/DatabaseGeneric/TypedViewClasses/SohQuerySpecPocoRow.cs index f0b90f3d..68835836 100644 --- a/LLBLGen53/DatabaseGeneric/TypedViewClasses/SohQuerySpecPocoRow.cs +++ b/LLBLGen54/DatabaseGeneric/TypedViewClasses/SohQuerySpecPocoRow.cs @@ -1,7 +1,6 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro v5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. @@ -9,18 +8,14 @@ using System; using System.ComponentModel; -namespace AdventureWorks.Dal.Adapter.v53.TypedViewClasses +namespace AdventureWorks.Dal.Adapter.v54.TypedViewClasses { /// Class which represents a row in the typed view 'SohQuerySpecPoco'. - /// This class is a result class for a query, which is produced with the method . - /// Custom Properties:
- ///
+ /// This class is a result class for a query, which is produced with the property . [Serializable] public partial class SohQuerySpecPocoRow { - #region Extensibility Method Definitions partial void OnCreated(); - #endregion /// Initializes a new instance of the class. public SohQuerySpecPocoRow() @@ -28,7 +23,6 @@ public SohQuerySpecPocoRow() OnCreated(); } - #region Class Property Declarations /// Gets or sets the AccountNumber field. public System.String AccountNumber { get; set; } /// Gets or sets the BillToAddressId field. @@ -81,7 +75,6 @@ public SohQuerySpecPocoRow() public Nullable TerritoryId { get; set; } /// Gets or sets the TotalDue field. public System.Decimal TotalDue { get; set; } - #endregion } } diff --git a/LLBLGen53/DatabaseGeneric/TypedViewClasses/SohTypedView.cs b/LLBLGen54/DatabaseGeneric/TypedViewClasses/SohTypedView.cs similarity index 96% rename from LLBLGen53/DatabaseGeneric/TypedViewClasses/SohTypedView.cs rename to LLBLGen54/DatabaseGeneric/TypedViewClasses/SohTypedView.cs index 040f7148..76e8a284 100644 --- a/LLBLGen53/DatabaseGeneric/TypedViewClasses/SohTypedView.cs +++ b/LLBLGen54/DatabaseGeneric/TypedViewClasses/SohTypedView.cs @@ -1,11 +1,9 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. -// Templates version: ////////////////////////////////////////////////////////////// using System; using System.ComponentModel; @@ -13,26 +11,22 @@ using System.Collections; using System.Collections.Specialized; using System.Runtime.Serialization; -using AdventureWorks.Dal.Adapter.v53; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; +using AdventureWorks.Dal.Adapter.v54; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; using SD.LLBLGen.Pro.ORMSupportClasses; -namespace AdventureWorks.Dal.Adapter.v53.TypedViewClasses +namespace AdventureWorks.Dal.Adapter.v54.TypedViewClasses { // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces // __LLBLGENPRO_USER_CODE_REGION_END - /// Typed datatable for the view 'Soh'.

- [Serializable, System.ComponentModel.DesignerCategory("Code")] - [ToolboxItem(true)] - [DesignTimeVisible(true)] + [Serializable, System.ComponentModel.DesignerCategory("Code"), ToolboxItem(true), DesignTimeVisible(true)] public partial class SohTypedView : TypedViewBase, ITypedView2 // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfacesView // __LLBLGENPRO_USER_CODE_REGION_END { - #region Class Member Declarations private DataColumn _columnSalesOrderId; private DataColumn _columnRevisionNumber; private DataColumn _columnOrderDate; @@ -64,14 +58,7 @@ public partial class SohTypedView : TypedViewBase, ITypedView2 // __LLBLGENPRO_USER_CODE_REGION_END private static Hashtable _customProperties; private static Hashtable _fieldsCustomProperties; - #endregion - - #region Class Constants - /// - /// The amount of fields in the resultset. - /// private const int AmountOfFields = 26; - #endregion /// Static CTor for setting up custom property hashtables. static SohTypedView() @@ -84,7 +71,7 @@ public SohTypedView():base("Soh") { InitClass(); } -#if !CF + /// Protected constructor for deserialization. /// /// @@ -95,7 +82,7 @@ protected SohTypedView(SerializationInfo info, StreamingContext context):base(in InitMembers(); } } -#endif + /// Gets the IEntityFields2 collection of fields of this typed view. /// Ready to use IEntityFields2 collection object. public virtual IEntityFields2 GetFieldsInfo() @@ -103,9 +90,7 @@ public virtual IEntityFields2 GetFieldsInfo() return _fields; } - /// Creates a new typed row during the build of the datatable during a Fill session by a dataadapter. - /// supplied row builder to pass to the typed row - /// the new typed datarow + /// protected override DataRow NewRowFromBuilder(DataRowBuilder rowBuilder) { return new SohRow(rowBuilder); @@ -171,9 +156,7 @@ private static void SetupCustomPropertyHashtables() _fieldsCustomProperties.Add("ModifiedDate", fieldHashtable); } - /// - /// Initialize the datastructures. - /// + /// Initialize the datastructures. protected override void InitClass() { TableName = "Soh"; @@ -203,7 +186,7 @@ protected override void InitClass() _columnComment = GeneralUtils.CreateTypedDataTableColumn("Comment", @"Comment", typeof(System.String), this.Columns); _columnRowguid = GeneralUtils.CreateTypedDataTableColumn("Rowguid", @"Rowguid", typeof(System.Guid), this.Columns); _columnModifiedDate = GeneralUtils.CreateTypedDataTableColumn("ModifiedDate", @"ModifiedDate", typeof(System.DateTime), this.Columns); - _fields = EntityFieldsFactory.CreateTypedViewEntityFieldsObject(TypedViewType.SohTypedView); + _fields = ModelInfoProviderSingleton.GetInstance().GetTypedViewFields("SohTypedView"); // __LLBLGENPRO_USER_CODE_REGION_START AdditionalFields // be sure to call _fields.Expand(number of new fields) first. @@ -240,29 +223,26 @@ private void InitMembers() _columnComment = this.Columns["Comment"]; _columnRowguid = this.Columns["Rowguid"]; _columnModifiedDate = this.Columns["ModifiedDate"]; - _fields = EntityFieldsFactory.CreateTypedViewEntityFieldsObject(TypedViewType.SohTypedView); + _fields = ModelInfoProviderSingleton.GetInstance().GetTypedViewFields("SohTypedView"); // __LLBLGENPRO_USER_CODE_REGION_START InitMembers // __LLBLGENPRO_USER_CODE_REGION_END } - /// Clones this instance. - /// A clone of this instance + /// public override DataTable Clone() { SohTypedView cloneToReturn = ((SohTypedView)(base.Clone())); cloneToReturn.InitMembers(); return cloneToReturn; } -#if !CF + /// Creates a new instance of the DataTable class. /// a new instance of a datatable with this schema. protected override DataTable CreateInstance() { return new SohTypedView(); } -#endif - #region Class Property Declarations /// The custom properties for this TypedView type. /// The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime. public static Hashtable CustomProperties @@ -451,17 +431,10 @@ internal DataColumn ModifiedDateColumn // __LLBLGENPRO_USER_CODE_REGION_START AdditionalColumnProperties // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - #region Custom TypedView code - // __LLBLGENPRO_USER_CODE_REGION_START CustomTypedViewCode // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - #region Included Code - - #endregion } /// Typed datarow for the typed datatable Soh @@ -469,9 +442,7 @@ public partial class SohRow : DataRow // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfacesRow // __LLBLGENPRO_USER_CODE_REGION_END { - #region Class Member Declarations private SohTypedView _parent; - #endregion /// CTor /// Row builder object to use when building this row @@ -480,8 +451,6 @@ protected internal SohRow(DataRowBuilder rowBuilder) : base(rowBuilder) _parent = ((SohTypedView)(this.Table)); } - #region Class Property Declarations - /// Gets / sets the value of the TypedView field SalesOrderId

/// Mapped on view field: "SalesOrderHeader"."SalesOrderID"
/// View field characteristics (type, precision, scale, length): Int, 10, 0, 0
@@ -1027,16 +996,10 @@ public void SetModifiedDateNull() { this[_parent.ModifiedDateColumn] = System.Convert.DBNull; } - #endregion - - #region Custom Typed View Row Code - + + // __LLBLGENPRO_USER_CODE_REGION_START CustomTypedViewRowCode // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included Row Code - #endregion } } diff --git a/LLBLGen53/DatabaseSpecific/ActionProcedures.cs b/LLBLGen54/DatabaseSpecific/ActionProcedures.cs similarity index 73% rename from LLBLGen53/DatabaseSpecific/ActionProcedures.cs rename to LLBLGen54/DatabaseSpecific/ActionProcedures.cs index 5e752d5c..072a3ad4 100644 --- a/LLBLGen53/DatabaseSpecific/ActionProcedures.cs +++ b/LLBLGen54/DatabaseSpecific/ActionProcedures.cs @@ -1,17 +1,15 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. -// Templates version: ////////////////////////////////////////////////////////////// using System; using System.Data; using SD.LLBLGen.Pro.ORMSupportClasses; -namespace AdventureWorks.Dal.Adapter.v53.DatabaseSpecific +namespace AdventureWorks.Dal.Adapter.v54.DatabaseSpecific { /// Class which contains the static logic to execute action stored procedures in the database. public static partial class ActionProcedures @@ -19,10 +17,5 @@ public static partial class ActionProcedures - - - #region Included Code - - #endregion } } diff --git a/LLBLGen53/AdventureWorks.Dal.Adapter.v53DBSpecific.csproj b/LLBLGen54/DatabaseSpecific/AdventureWorks.Dal.Adapter.v54DBSpecific.csproj similarity index 71% rename from LLBLGen53/AdventureWorks.Dal.Adapter.v53DBSpecific.csproj rename to LLBLGen54/DatabaseSpecific/AdventureWorks.Dal.Adapter.v54DBSpecific.csproj index 36dae7c8..33ca6f31 100644 --- a/LLBLGen53/AdventureWorks.Dal.Adapter.v53DBSpecific.csproj +++ b/LLBLGen54/DatabaseSpecific/AdventureWorks.Dal.Adapter.v54DBSpecific.csproj @@ -8,8 +8,8 @@ {3AF5906A-7F38-4D12-893B-BFF557ACD27A} Library Properties - AdventureWorks.Dal.Adapter.v53.DatabaseSpecific - AdventureWorks.Dal.Adapter.v53DBSpecific + AdventureWorks.Dal.Adapter.v54.DatabaseSpecific + AdventureWorks.Dal.Adapter.v54DBSpecific v4.6.2 512 @@ -34,14 +34,13 @@ False - ..\ReferencedAssemblies\Microsoft.SqlServer.Types.dll + ..\..\ReferencedAssemblies\Microsoft.SqlServer.Types.dll - - ..\packages\SD.LLBLGen.Pro.DQE.SqlServer.5.3.3-hotfix-20180129\lib\net452\SD.LLBLGen.Pro.DQE.SqlServer.dll + + ..\..\ReferencedAssemblies\SD.LLBLGen.Pro.DQE.SqlServer.dll - - False - ..\packages\SD.LLBLGen.Pro.ORMSupportClasses.5.3.3-hotfix-20180129\lib\net452\SD.LLBLGen.Pro.ORMSupportClasses.dll + + ..\..\ReferencedAssemblies\SD.LLBLGen.Pro.ORMSupportClasses.dll @@ -52,25 +51,24 @@ - + LLBLGen Pro - + LLBLGen Pro - + LLBLGen Pro - + LLBLGen Pro - + LLBLGen Pro - + LLBLGen Pro - diff --git a/LLBLGen53/DatabaseSpecific/App.config b/LLBLGen54/DatabaseSpecific/App.config similarity index 100% rename from LLBLGen53/DatabaseSpecific/App.config rename to LLBLGen54/DatabaseSpecific/App.config diff --git a/LLBLGen53/DatabaseSpecific/AssemblyInfo.cs b/LLBLGen54/DatabaseSpecific/AssemblyInfo.cs similarity index 100% rename from LLBLGen53/DatabaseSpecific/AssemblyInfo.cs rename to LLBLGen54/DatabaseSpecific/AssemblyInfo.cs diff --git a/LLBLGen53/DatabaseSpecific/DataAccessAdapter.cs b/LLBLGen54/DatabaseSpecific/DataAccessAdapter.cs similarity index 94% rename from LLBLGen53/DatabaseSpecific/DataAccessAdapter.cs rename to LLBLGen54/DatabaseSpecific/DataAccessAdapter.cs index 669dfe65..975a9724 100644 --- a/LLBLGen53/DatabaseSpecific/DataAccessAdapter.cs +++ b/LLBLGen54/DatabaseSpecific/DataAccessAdapter.cs @@ -1,24 +1,16 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. -// Templates version: ////////////////////////////////////////////////////////////// using System; -using System.Collections; -using System.Data; -using System.Data.Common; -using System.Configuration; using SD.LLBLGen.Pro.ORMSupportClasses; using SD.LLBLGen.Pro.DQE.SqlServer; - -namespace AdventureWorks.Dal.Adapter.v53.DatabaseSpecific -{ - +namespace AdventureWorks.Dal.Adapter.v54.DatabaseSpecific +{ // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces // __LLBLGENPRO_USER_CODE_REGION_END /// Data access adapter class, which controls the complete database interaction with the database for all objects. @@ -27,35 +19,25 @@ namespace AdventureWorks.Dal.Adapter.v53.DatabaseSpecific /// in another thread a new connection and a new transaction or want to open a new connection. public partial class DataAccessAdapter : DataAccessAdapterBase { - #region Public static members /// The name of the key in the *.config file of the executing application which contains the connection string. /// Default: the value set in the LLBLGen Pro project properties public static string ConnectionStringKeyName="AdventureWorks.ConnectionString.SQL Server (SqlClient)"; - #endregion /// CTor - public DataAccessAdapter() : this(ReadConnectionStringFromConfig(), false, null, null) - { - } + public DataAccessAdapter() : this(ReadConnectionStringFromConfig(), false, null, null) { } /// CTor /// when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage. - public DataAccessAdapter(bool keepConnectionOpen) : this(ReadConnectionStringFromConfig(), keepConnectionOpen, null, null) - { - } + public DataAccessAdapter(bool keepConnectionOpen) : this(ReadConnectionStringFromConfig(), keepConnectionOpen, null, null) { } /// CTor /// The connection string to use when connecting to the database. - public DataAccessAdapter(string connectionString) : this(connectionString, false, null, null) - { - } + public DataAccessAdapter(string connectionString) : this(connectionString, false, null, null) { } /// CTor /// The connection string to use when connecting to the database. /// when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage. - public DataAccessAdapter(string connectionString, bool keepConnectionOpen) : this(connectionString, keepConnectionOpen, null, null) - { - } + public DataAccessAdapter(string connectionString, bool keepConnectionOpen) : this(connectionString, keepConnectionOpen, null, null) { } /// CTor. /// The connection string to use when connecting to the database. @@ -150,14 +132,8 @@ public Nullable CompatibilityLevel } - #region Custom DataAccessAdapter code. - // __LLBLGENPRO_USER_CODE_REGION_START CustomDataAccessAdapterCode // __LLBLGENPRO_USER_CODE_REGION_END - #endregion - - #region Included Code - #endregion } } diff --git a/LLBLGen53/DatabaseSpecific/PersistenceInfoProvider.cs b/LLBLGen54/DatabaseSpecific/PersistenceInfoProvider.cs similarity index 99% rename from LLBLGen53/DatabaseSpecific/PersistenceInfoProvider.cs rename to LLBLGen54/DatabaseSpecific/PersistenceInfoProvider.cs index dd7b984f..2f4abe54 100644 --- a/LLBLGen53/DatabaseSpecific/PersistenceInfoProvider.cs +++ b/LLBLGen54/DatabaseSpecific/PersistenceInfoProvider.cs @@ -1,37 +1,26 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro v5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. ////////////////////////////////////////////////////////////// using System; -using System.Collections; -using System.Data; using SD.LLBLGen.Pro.ORMSupportClasses; -namespace AdventureWorks.Dal.Adapter.v53.DatabaseSpecific +namespace AdventureWorks.Dal.Adapter.v54.DatabaseSpecific { /// Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved. - /// It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe. internal static class PersistenceInfoProviderSingleton { - #region Class Member Declarations private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore(); - #endregion /// Dummy static constructor to make sure threadsafe initialization is performed. - static PersistenceInfoProviderSingleton() - { - } + static PersistenceInfoProviderSingleton() { } /// Gets the singleton instance of the PersistenceInfoProviderCore /// Instance of the PersistenceInfoProvider. - public static IPersistenceInfoProvider GetInstance() - { - return _providerInstance; - } + public static IPersistenceInfoProvider GetInstance() { return _providerInstance; } } /// Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper. @@ -1026,7 +1015,6 @@ private void InitSohTypedViewMappings() this.AddElementFieldMapping("SohTypedView", "ModifiedDate", "ModifiedDate", false, "DateTime", 0, 0, 0, false, string.Empty, null, typeof(System.DateTime), 25); } - /// Inits SohLinqPocoView's mappings private void InitSohLinqPocoTypedViewMappings() { @@ -1059,7 +1047,6 @@ private void InitSohLinqPocoTypedViewMappings() this.AddElementFieldMapping("SohLinqPocoTypedView", "ModifiedDate", "ModifiedDate", false, "DateTime", 0, 0, 0, false, string.Empty, null, typeof(System.DateTime), 25); } - /// Inits SohQuerySpecPocoView's mappings private void InitSohQuerySpecPocoTypedViewMappings() { @@ -1091,6 +1078,5 @@ private void InitSohQuerySpecPocoTypedViewMappings() this.AddElementFieldMapping("SohQuerySpecPocoTypedView", "Rowguid", "rowguid", false, "UniqueIdentifier", 0, 0, 0, false, string.Empty, null, typeof(System.Guid), 24); this.AddElementFieldMapping("SohQuerySpecPocoTypedView", "ModifiedDate", "ModifiedDate", false, "DateTime", 0, 0, 0, false, string.Empty, null, typeof(System.DateTime), 25); } - } } diff --git a/LLBLGen53/DatabaseSpecific/RetrievalProcedures.cs b/LLBLGen54/DatabaseSpecific/RetrievalProcedures.cs similarity index 76% rename from LLBLGen53/DatabaseSpecific/RetrievalProcedures.cs rename to LLBLGen54/DatabaseSpecific/RetrievalProcedures.cs index 4ebbb20e..33fe17c7 100644 --- a/LLBLGen53/DatabaseSpecific/RetrievalProcedures.cs +++ b/LLBLGen54/DatabaseSpecific/RetrievalProcedures.cs @@ -1,11 +1,9 @@ -/////////////////////////////////////////////////////////////// -// This is generated code. +////////////////////////////////////////////////////////////// +// This code was generated by LLBLGen Pro 5.4. ////////////////////////////////////////////////////////////// -// Code is generated using LLBLGen Pro version: 5.3 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. -// Templates version: ////////////////////////////////////////////////////////////// using System; using System.Data; @@ -13,7 +11,7 @@ using SD.LLBLGen.Pro.ORMSupportClasses; using SD.LLBLGen.Pro.QuerySpec.Adapter; -namespace AdventureWorks.Dal.Adapter.v53.DatabaseSpecific +namespace AdventureWorks.Dal.Adapter.v54.DatabaseSpecific { /// Class which contains the static logic to execute retrieval stored procedures in the database. public static partial class RetrievalProcedures @@ -21,9 +19,5 @@ public static partial class RetrievalProcedures - - #region Included Code - - #endregion } } diff --git a/LLBLGen53/packages.config b/LLBLGen54/packages.config similarity index 100% rename from LLBLGen53/packages.config rename to LLBLGen54/packages.config diff --git a/RawBencher.sln b/RawBencher.sln index 5c5720f8..28265ac3 100644 --- a/RawBencher.sln +++ b/RawBencher.sln @@ -19,11 +19,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFCore20.Bencher.Model", "E EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFCore20.Bencher.Persistence", "EFCore2.0\Persistence\EFCore20.Bencher.Persistence.csproj", "{8740C7BD-7007-4ADB-877C-DF1469DF6E2A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdventureWorks.Dal.Adapter.v53", "LLBLGen53\AdventureWorks.Dal.Adapter.v53.csproj", "{E293317E-71F0-41C0-B004-BB30D5E04B47}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RawBencher", "RawBencher\RawBencher.csproj", "{A4AA317A-6958-4D0C-B2EE-026005FD2C2E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdventureWorks.Dal.Adapter.v53DBSpecific", "LLBLGen53\AdventureWorks.Dal.Adapter.v53DBSpecific.csproj", "{3AF5906A-7F38-4D12-893B-BFF557ACD27A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdventureWorks.Dal.Adapter.v54", "LLBLGen54\DatabaseGeneric\AdventureWorks.Dal.Adapter.v54.csproj", "{E293317E-71F0-41C0-B004-BB30D5E04B47}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RawBencher", "RawBencher\RawBencher.csproj", "{A4AA317A-6958-4D0C-B2EE-026005FD2C2E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdventureWorks.Dal.Adapter.v54DBSpecific", "LLBLGen54\DatabaseSpecific\AdventureWorks.Dal.Adapter.v54DBSpecific.csproj", "{3AF5906A-7F38-4D12-893B-BFF557ACD27A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -121,6 +121,18 @@ Global {8740C7BD-7007-4ADB-877C-DF1469DF6E2A}.Release|Any CPU.Build.0 = Release|Any CPU {8740C7BD-7007-4ADB-877C-DF1469DF6E2A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {8740C7BD-7007-4ADB-877C-DF1469DF6E2A}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|.NET.ActiveCfg = Debug|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|.NET.Build.0 = Debug|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|.NET.ActiveCfg = Release|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|.NET.Build.0 = Release|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Any CPU.Build.0 = Release|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Mixed Platforms.Build.0 = Release|Any CPU {E293317E-71F0-41C0-B004-BB30D5E04B47}.Debug|.NET.ActiveCfg = Debug|Any CPU {E293317E-71F0-41C0-B004-BB30D5E04B47}.Debug|.NET.Build.0 = Debug|Any CPU {E293317E-71F0-41C0-B004-BB30D5E04B47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -145,18 +157,6 @@ Global {3AF5906A-7F38-4D12-893B-BFF557ACD27A}.Release|Any CPU.Build.0 = Release|Any CPU {3AF5906A-7F38-4D12-893B-BFF557ACD27A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {3AF5906A-7F38-4D12-893B-BFF557ACD27A}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|.NET.ActiveCfg = Debug|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|.NET.Build.0 = Debug|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|.NET.ActiveCfg = Release|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|.NET.Build.0 = Release|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Any CPU.Build.0 = Release|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {A4AA317A-6958-4D0C-B2EE-026005FD2C2E}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/RawBencher/Benchers/LLBLGenProNoChangeTrackingBencher.cs b/RawBencher/Benchers/LLBLGenProNoChangeTrackingBencher.cs index 7889324a..78fe2a45 100644 --- a/RawBencher/Benchers/LLBLGenProNoChangeTrackingBencher.cs +++ b/RawBencher/Benchers/LLBLGenProNoChangeTrackingBencher.cs @@ -3,9 +3,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; -using AdventureWorks.Dal.Adapter.v53.TypedViewClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.TypedViewClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; using SD.LLBLGen.Pro.ORMSupportClasses; namespace RawBencher.Benchers diff --git a/RawBencher/Benchers/LLBLGenProNoChangeTrackingLinqPocoBencher.cs b/RawBencher/Benchers/LLBLGenProNoChangeTrackingLinqPocoBencher.cs index 7ed6ad53..49210cc5 100644 --- a/RawBencher/Benchers/LLBLGenProNoChangeTrackingLinqPocoBencher.cs +++ b/RawBencher/Benchers/LLBLGenProNoChangeTrackingLinqPocoBencher.cs @@ -3,10 +3,10 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; -using AdventureWorks.Dal.Adapter.v53.TypedViewClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.Linq; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.TypedViewClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.Linq; using SD.LLBLGen.Pro.ORMSupportClasses; namespace RawBencher.Benchers diff --git a/RawBencher/Benchers/LLBLGenProNoChangeTrackingQuerySpecPocoBencher.cs b/RawBencher/Benchers/LLBLGenProNoChangeTrackingQuerySpecPocoBencher.cs index 14ed7f61..78dc823f 100644 --- a/RawBencher/Benchers/LLBLGenProNoChangeTrackingQuerySpecPocoBencher.cs +++ b/RawBencher/Benchers/LLBLGenProNoChangeTrackingQuerySpecPocoBencher.cs @@ -3,10 +3,10 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; -using AdventureWorks.Dal.Adapter.v53.TypedViewClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.TypedViewClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; using SD.LLBLGen.Pro.ORMSupportClasses; using SD.LLBLGen.Pro.QuerySpec; using SD.LLBLGen.Pro.QuerySpec.Adapter; diff --git a/RawBencher/Benchers/LLBLGenProNoChangeTrackingRawSQLPocoBencher.cs b/RawBencher/Benchers/LLBLGenProNoChangeTrackingRawSQLPocoBencher.cs index 713c4e52..6e14ec37 100644 --- a/RawBencher/Benchers/LLBLGenProNoChangeTrackingRawSQLPocoBencher.cs +++ b/RawBencher/Benchers/LLBLGenProNoChangeTrackingRawSQLPocoBencher.cs @@ -3,10 +3,10 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; -using AdventureWorks.Dal.Adapter.v53.TypedViewClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.TypedViewClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; using SD.LLBLGen.Pro.ORMSupportClasses; using SD.LLBLGen.Pro.QuerySpec; using SD.LLBLGen.Pro.QuerySpec.Adapter; diff --git a/RawBencher/Benchers/LLBLGenProNormalBencher.cs b/RawBencher/Benchers/LLBLGenProNormalBencher.cs index 8d538f62..9459703d 100644 --- a/RawBencher/Benchers/LLBLGenProNormalBencher.cs +++ b/RawBencher/Benchers/LLBLGenProNormalBencher.cs @@ -3,10 +3,10 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; -using AdventureWorks.Dal.Adapter.v53.EntityClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.EntityClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; using LinqToDB; using SD.LLBLGen.Pro.ORMSupportClasses; using SD.LLBLGen.Pro.QuerySpec; diff --git a/RawBencher/Benchers/LLBLGenProResultsetCachingBencher.cs b/RawBencher/Benchers/LLBLGenProResultsetCachingBencher.cs index 04e27389..81c48326 100644 --- a/RawBencher/Benchers/LLBLGenProResultsetCachingBencher.cs +++ b/RawBencher/Benchers/LLBLGenProResultsetCachingBencher.cs @@ -3,10 +3,10 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; -using AdventureWorks.Dal.Adapter.v53.EntityClasses; -using AdventureWorks.Dal.Adapter.v53.FactoryClasses; -using AdventureWorks.Dal.Adapter.v53.HelperClasses; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.EntityClasses; +using AdventureWorks.Dal.Adapter.v54.FactoryClasses; +using AdventureWorks.Dal.Adapter.v54.HelperClasses; using SD.LLBLGen.Pro.ORMSupportClasses; using SD.LLBLGen.Pro.QuerySpec; using SD.LLBLGen.Pro.QuerySpec.Adapter; diff --git a/RawBencher/OriginalController.cs b/RawBencher/OriginalController.cs index 4ee6537b..c388b00f 100644 --- a/RawBencher/OriginalController.cs +++ b/RawBencher/OriginalController.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Reflection; using System.Threading; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; using Dapper; using RawBencher.Benchers; using SD.LLBLGen.Pro.ORMSupportClasses; diff --git a/RawBencher/Program.cs b/RawBencher/Program.cs index f47758f6..ea69965e 100644 --- a/RawBencher/Program.cs +++ b/RawBencher/Program.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using AdventureWorks.Dal.Adapter.v53.DatabaseSpecific; +using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; using BenchmarkDotNet.Running; using RawBencher.BenchmarkDotNet; diff --git a/RawBencher/RawBencher.csproj b/RawBencher/RawBencher.csproj index 7fd670f6..b5f93933 100644 --- a/RawBencher/RawBencher.csproj +++ b/RawBencher/RawBencher.csproj @@ -160,8 +160,8 @@ ..\packages\Remotion.Linq.EagerFetching.2.1.0\lib\net45\Remotion.Linq.EagerFetching.dll - - ..\packages\SD.LLBLGen.Pro.ORMSupportClasses.5.3.3-hotfix-20180129\lib\net452\SD.LLBLGen.Pro.ORMSupportClasses.dll + + ..\ReferencedAssemblies\SD.LLBLGen.Pro.ORMSupportClasses.dll ..\packages\ServiceStack.Common.5.0.2\lib\net45\ServiceStack.Common.dll @@ -324,13 +324,13 @@ {06c162e5-0476-40f4-a705-8b5c265bfb68} LINQ2DB.Bencher - + {e293317e-71f0-41c0-b004-bb30d5e04b47} - AdventureWorks.Dal.Adapter.v53 + AdventureWorks.Dal.Adapter.v54 - + {3af5906a-7f38-4d12-893b-bff557acd27a} - AdventureWorks.Dal.Adapter.v53DBSpecific + AdventureWorks.Dal.Adapter.v54DBSpecific {45daeb56-b84d-4d7a-bf22-293f1ce07dbb} diff --git a/ReferencedAssemblies/SD.LLBLGen.Pro.DQE.SqlServer.dll b/ReferencedAssemblies/SD.LLBLGen.Pro.DQE.SqlServer.dll new file mode 100644 index 0000000000000000000000000000000000000000..69d8bb5013affcc8613e39a986512e33bb00f274 GIT binary patch literal 44544 zcmeIb3wT^r)i=J+nVB<}B$G_iOfF5@DZNcINl34x4YZ_5+6LODZPJ#OLYX9!WN4C; zo|#YrQWHU>a*>K6MN#ew%4<=Pi=uLsqA2*vEBGRE5pQ@w)K|;R|8K2*&diy~G?d5p zdH&D$Jzv`F*?aA^*Is+=wbx#IojoTTc3v$ULI@{*|Mf2+?!zbjoXY9c$vCS0GavAa zZ+M@Yb)T~SsaahE@kD6E(EE+(P^c$5Jgg@}-La4{Ivk1*hgv&2LqmFRtiGVYH^(Hs zsZEIWibFhc%O|e3dV5Kn5Xw^;gt!$DkA(iuBlryA_a*!aQN(#w@=XAZ68Z@#LI8gB z4+7&l=c9y5|I?plkwEyl6?8i&^O6vcx+s(VqlkQfzWuNejoDRGl|w1k8Oww6Ivaj{ zGIo9v<#%pDf;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66Eq#`<`-5ye-L6T4Dx6v4}ocIn;c?lRwhxNA6;T(Wf0 zuB>-UWWHuzqE>4{A(^~ zWQzrG`U_wDxADgDVf&GP7pws%e;W{4Ry;gP#NX0;Nr(aXXx7hwYYDR3L?_}N)^oFV z#5OjfOyOmUfY8r_&OhUCRMOkQT_Wxbq&`=1t$e?=G%O|nAFcRRK$Y&6(D%zITtERh z3O3Ns9P$xxoTo?*efd#-yH17<89^L&J^>U3+@(X{lPTTGIP(4!rArVbfDG^+@F?2K z8!8k9q8JR!3-~&|uOMfCPtN*s2Su&q7d+@OcL<}}(aSv&qItZsw7$%eYm_k1 z_S7TU?MF3kYl7#_4qq7xj}XK`O| z&I3i@=}w$RSOp|Vx|Z24TjP$UZ;f!X6wDXJtV!l{+m*ta$7$p8QV literal 0 HcmV?d00001 diff --git a/ReferencedAssemblies/SD.LLBLGen.Pro.ORMSupportClasses.dll b/ReferencedAssemblies/SD.LLBLGen.Pro.ORMSupportClasses.dll new file mode 100644 index 0000000000000000000000000000000000000000..532c2490a7819de42c6b228369b0d45057321d75 GIT binary patch literal 1656320 zcmeFadAM9fwg0`(-n(}XXGqSFKA9jPkg)0Q6Oy11A~MM!^PnPwGKmA@hVBHFW5)=N zj0%DZ%GD_7b=K>3K%8*8qDY(&70|0*2mGnmc|ha)`L5c#d-oY~;_L5u-hbZnBwf?0 zRjXF5s#;aGs`hcGzuF5t&kOngkAHaHM{)Icu>J1%XA8+g%kCQTK2*MMw~zK6d*5zP zect)4<(D>-=Qhu|c=@x=x#W^$UH+Z1gd{sHw`L^znj5(f;__8L86HCZ_6TY0PovQTjZ_J;&#Se-XYzfON5`C z%eQ*tvtO{0@cW;T)=PDT?)=|!s9N1@HJ_zO(U#G8Ah5Z=gK4hS&1YYf04Q2LXf|Aj zO@li$m(9Fi5?}cfZN69Vp7)8eclT}cyt2i1fA*mMTe`tneb4dZXZCqf(CqWPOXEFv z@ghHH;}2_|H@YVD4kRbR;UIYsuu3!(CcoU>i=rTz@V#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